This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] A fix for PR40386
- From: Mikael Pettersson <mikpe at it dot uu dot se>
- To: Vladimir Makarov <vmakarov at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Jeffrey Law <law at redhat dot com>
- Date: Sun, 12 Sep 2010 12:32:37 +0200
- Subject: Re: [patch] A fix for PR40386
- References: <4C87E254.7080209@redhat.com>
Vladimir Makarov writes:
> The following patch fixes PR40386. The problem in details is
> described on http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40386.
>
> Is it ok to commit into trunk and gcc-4.4-branch?
>
> 2010-09-08 Vladimir Makarov <vmakarov@redhat.com>
>
> PR middle-end/40386
> * ira.c (pseudo_for_reload_consideration_p): Don't use
> flag_ira_share_spill_slots.
>
> 2010-09-08 Vladimir Makarov <vmakarov@redhat.com>
>
> PR middle-end/40386
> * gcc.c-torture/execute/{pr40386.c,pr40386.x}: New testcase.
The version checked into gcc-4_4-branch has a broken test case
which fails to compile due to redefinition errors. It looks like
a patch to add the test case was applied twice, causing the files
to contain duplicated text. Here's is what 4.4's pr40386.x looks
like right now:
> set additional_flags "-fno-ira-share-spill-slots"
> return 0
> set additional_flags "-fno-ira-share-spill-slots"
> return 0
pr40386.c has the same issue, which causes it to fail to compile.
/Mikael