This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR target/78213] Do not ICE on non-empty -fself-test
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bernd Schmidt <bschmidt at redhat dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, David Malcolm <dmalcolm at redhat dot com>
- Date: Mon, 14 Nov 2016 14:20:13 +0100
- Subject: Re: [PR target/78213] Do not ICE on non-empty -fself-test
- Authentication-results: sourceware.org; auth=none
- References: <9158b0e8-f6b7-8a71-4d78-6f1b174a8405@redhat.com> <8e94bcf0-a529-476e-23c4-fea00445599b@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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) = 1;
> >
> >Setting REG_POINTER on the virtual incoming args, causes /f to be
> >printed on some RTL dumps, causing the -fself-test machinery to fail at
> >matching the expected value.
>
> How about always running init_emit and testing for the correct output?
You mean only if -fself-test, right?
Jakub