optimization/10252: __builtin_constant_p() returns TRUE for non-constant expression
Alan Modra
amodra@bigpond.net.au
Fri Mar 28 08:46:00 GMT 2003
The following reply was made to PR optimization/10252; it has been noted by GNATS.
From: Alan Modra <amodra@bigpond.net.au>
To: davidm@hpl.hp.com
Cc: gcc-gnats@gcc.gnu.org, rth@redhat.com
Subject: Re: optimization/10252: __builtin_constant_p() returns TRUE for non-constant expression
Date: Fri, 28 Mar 2003 19:02:05 +1030
Same thing happens on powerpc64-linux. __bad_stuff will never be
executed, so looks like dead code elimination isn't working properly.
14: 38 00 00 00 li r0,0
18: 2f 80 00 00 cmpwi cr7,r0,0
1c: 40 9e 00 14 bne- cr7,30 <.foo+0x30>
[snip]
30: 48 00 00 01 bl 30 <.foo+0x30>
30: R_PPC64_REL24 .__bad_stuff
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Gcc-prs
mailing list