This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix PR 60040
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: uweigand at de dot ibm dot com, gnu at amylaar dot uk
- Date: Thu, 7 Apr 2016 21:47:28 +0200
- Subject: Re: [Patch] Fix PR 60040
- Authentication-results: sourceware.org; auth=none
- References: <87h9fd1vqf dot fsf at atmel dot com>
On 04/07/2016 01:52 PM, Senthil Kumar Selvaraj wrote:
The below patch fixes PR 60040 by not halting with a hard error on
a spill failure, if reload knows that it has to run again anyway.
Some additional information as to how this situation creates a spill
failure would be useful. It's hard to tell whether this patch just
papers over a problem that can still trigger in other circumstances.
- spill_failure (chain->insn, rld[r].rclass);
- failure = 1;
- return;
+ if (!tentative)
+ {
+ spill_failure (chain->insn, rld[r].rclass);
+ failure = 1;
+ return;
+ }
}
The indentation looks all wrong.
Bernd