PR37363: PR36090 and PR36182 all over again
Paolo Bonzini
bonzini@gnu.org
Sat Sep 6 08:45:00 GMT 2008
Paolo Bonzini wrote:
> Hans-Peter Nilsson wrote:
>>> Date: Fri, 5 Sep 2008 14:57:00 +0200
>>> From: Hans-Peter Nilsson <hp@axis.com>
>>> Maybe as part of a change from target macro to target hook, with
>>> LEGITIMATE_CONSTANT_P as a default would fit, even at this
>>> stage?
>> Sorry, I mean CONSTANT_P, not LEGITIMATE_CONSTANT_P. Or maybe a
>> new macro or hook
>
> What about replacing the problematic uses of gen_rtx_CONST with
> "plus_constant (x, 0)"? plus_constant knows when to make a CONST rtx.
>
> There are just a handful of places where this would be needed: instead
> of the check after the wrong comment in cse.c, and everywhere
> gen_rtx_CONST is used in simplify-rtx.c.
Here is a prototype patch, untested.
Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr37363.patch
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080906/4c6d7d7d/attachment.ksh>
More information about the Gcc
mailing list