Fix reload1.c warning for some targets

Richard Sandiford richard.sandiford@arm.com
Thu Sep 10 19:33:00 GMT 2015


Jeff Law <law@redhat.com> writes:
> On 09/03/2015 02:39 AM, Richard Sandiford wrote:
>> so for now how about just turning -Wmaybe-uninitialized into
>> a warning for this function?  The patch will mean that it becomes
>> a warning even if someone turns off warnings on the command line,
>> but I don't think that's important.
>>
>> Bootstrapped and regression-tested on x86_64-linux-gnu.  Also tested
>> with a cross-compiler to sparc-linux-gnu (which also triggered the
>> warning for me).  Tested that clang could still compile the file.
>> OK to install?
>>
>>
>> gcc/
>> 	* reload1.c (elimination_costs_in_insn): Locally turn
>> 	-Wmaybe-uninitialized into a warning.
> I can live with this.  Though I'd appreciate it if someone could reduce 
> the sparcv9 testcase and create a bug to track it too.

Applied, thanks.

Richard



More information about the Gcc-patches mailing list