This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix PR 32897 (invalid constants generated by find_reloads_toplev)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org, richard at codesourcery dot com
- Date: Tue, 14 Aug 2007 23:45:43 -0700
- Subject: Re: RFA: Fix PR 32897 (invalid constants generated by find_reloads_toplev)
- References: <877ioncqt7.fsf@firetop.home> <87r6m66yra.fsf@firetop.home>
Richard Sandiford wrote:
> Ping^2
>> gcc/
>> PR middle-end/32897
>> * reload.c (find_reloads): Check that the memory returned by
>> find_reloads_toplev was not the result of forcing a constant
>> to memory.
>> (find_reloads_toplev): Always use simplify_gen_subreg to get
>> the subreg of a constant. If the result is also a constant,
>> but not a legitimate one, force it into the constant pool
>> and reload its address.
>>
>> gcc/testsuite/
>> * gcc.dg/torture/pr32897.c: New test.
OK if no objections within 24 hours.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713