This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/10252: __builtin_constant_p() returns TRUE for non-constant expression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]