This is the mail archive of the gcc@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: dse2 remove wrong insn


On 12/09/2011 03:05 PM, BELBACHIR Selim wrote:
> int main() {
>   int x; 
>   float af;
>   ff(&x);
>   af = f2(1.0f);
>   return *((int *)(&af));
> }

Please try this again, but with a union rather than a pointer
cast.  I don't think this code is legal C.

Andrew.


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