This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/10252: __builtin_constant_p() returns TRUE for non-constant expression
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 28 Mar 2003 08:36:01 -0000
- Subject: Re: optimization/10252: __builtin_constant_p() returns TRUE for non-constant expression
- Reply-to: Alan Modra <amodra at bigpond dot net dot au>
The following reply was made to PR optimization/10252; it has been noted by GNATS.
From: Alan Modra <amodra at bigpond dot net dot au>
To: davidm at hpl dot hp dot com
Cc: gcc-gnats at gcc dot gnu dot org, rth at redhat dot 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