Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
- Subject: Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
- From: Wim Lewis <email@hidden>
- Date: Mon, 13 Mar 2006 12:29:55 -0800
Interestingly, you get *different* incorrect results depending on
whether -mdynamic-no-pic is specified (in addition to the necessary -
fasm-blocks). If you specify -Wall, then gcc complains that you
haven't initialized 'f' --- so it's clearly interpreting the line
"float f = 2F;" in some unexpected way.
% gcc-4.0 -x c -arch i386 -pipe -fasm-blocks -Os -Wall -mdynamic-no-
pic -S t.c
t.c: In function ‘spork’:
t.c:6: warning: ‘f’ is used uninitialized in this function
% cat t.c
float spork (void) {
float f = 2F;
return f;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden