This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR37363: PR36090 and PR36182 all over again
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: gcc at gcc dot gnu dot org, edelsohn at gnu dot org
- Date: Sat, 06 Sep 2008 10:33:57 +0200
- Subject: Re: PR37363: PR36090 and PR36182 all over again
- References: <200809051325.m85DPQSX003180@ignucius.se.axis.com>
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.
Paolo