This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Fix PR 32897 (invalid constants generated by find_reloads_toplev)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]