• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC for i386 allows 'invalid suffix "f" on integer constant'


  • Subject: Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
  • From: Dirk Stegemann <email@hidden>
  • Date: Thu, 19 Jan 2006 19:59:13 +0200

Hi,

Am 19.01.2006 um 19:27 schrieb Eric Albert:

On Jan 19, 2006, at 9:18 AM, Dirk Stegemann wrote:

int main (int argc, char * const argv[]) {

    float f = 2f;
    return 0;
}
[...]
The same code compiled using GCC 4.0 to generate i386 code doesn't even give a warning.

This doesn't compile for me with gcc for Intel. Which version of gcc are you using? Type 'gcc -v' from the command line to see the compiler version.

This is on my PowerBook G4, running Mac OS X 10.4.4, with Xcode 2.2.1 installed.
I tested by creating a new project, type "C++ Tool".


[tbook:~] me% gcc --v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5250.obj~12/src/configure -- disable-checking -enable-werror --prefix=/usr --mandir=/share/man -- enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 -- build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5250)



BTW, the same compiler behaviour a colleague observed on the Developer Transition System running 8F1111 with Xcode 2.2.


Best regards,
Dirk Stegemann



_______________________________________________
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


References: 
 >GCC for i386 allows 'invalid suffix "f" on integer constant' (From: Dirk Stegemann <email@hidden>)
 >Re: GCC for i386 allows 'invalid suffix "f" on integer constant' (From: Eric Albert <email@hidden>)

  • Prev by Date: Relaxing gcc type comparison ?
  • Next by Date: Re: TraceEventByName
  • Previous by thread: Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
  • Next by thread: Re: GCC for i386 allows 'invalid suffix "f" on integer constant'
  • Index(es):
    • Date
    • Thread