Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-22 Thread Bernd Schmidt
On 11/16/2016 11:45 AM, Aldy Hernandez wrote: I would prefer Jakub's suggestion of running in finish_options(). I suspect we'll want both. Selftests should really run in an environment that's as close as possible to what would normally be going on in the compiler. I assume there are other

Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-17 Thread Aldy Hernandez
On 11/14/2016 08:18 AM, Bernd Schmidt wrote: On 11/11/2016 06:10 PM, Aldy Hernandez wrote: The problem in this PR is that -fself-test is being run on a non empty source file. This causes init_emit() to run, which sets: REG_POINTER (virtual_incoming_args_rtx) = 1; Setting REG_POINTER on th

Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-14 Thread Bernd Schmidt
On 11/14/2016 02:20 PM, Jakub Jelinek wrote: On Mon, Nov 14, 2016 at 02:18:02PM +0100, Bernd Schmidt wrote: On 11/11/2016 06:10 PM, Aldy Hernandez wrote: The problem in this PR is that -fself-test is being run on a non empty source file. This causes init_emit() to run, which sets: REG_POIN

Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-14 Thread Jakub Jelinek
On Mon, Nov 14, 2016 at 02:18:02PM +0100, Bernd Schmidt wrote: > On 11/11/2016 06:10 PM, Aldy Hernandez wrote: > >The problem in this PR is that -fself-test is being run on a non empty > >source file. This causes init_emit() to run, which sets: > > > >REG_POINTER (virtual_incoming_args_rtx) =

Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-14 Thread Bernd Schmidt
On 11/11/2016 06:10 PM, Aldy Hernandez wrote: The problem in this PR is that -fself-test is being run on a non empty source file. This causes init_emit() to run, which sets: REG_POINTER (virtual_incoming_args_rtx) = 1; Setting REG_POINTER on the virtual incoming args, causes /f to be print

Re: [PR target/78213] Do not ICE on non-empty -fself-test

2016-11-11 Thread Jakub Jelinek
On Fri, Nov 11, 2016 at 09:10:48AM -0800, Aldy Hernandez wrote: > The problem in this PR is that -fself-test is being run on a non empty > source file. This causes init_emit() to run, which sets: > > REG_POINTER (virtual_incoming_args_rtx) = 1; > > Setting REG_POINTER on the virtual incomi