Filipe Cabecinhas
2008-Jun-05 10:15 UTC
[LLVMdev] unrecognized command line option "-Wno-long-double"
Hi, LLVM-gcc can't recognize this option, don't know why, because the gcc in Mac OS X (quite old, compared to 4.2) can recognize it. - Filipe Cabecinhas
Duncan Sands
2008-Jun-05 11:33 UTC
[LLVMdev] unrecognized command line option "-Wno-long-double"
Hi Filipe,> LLVM-gcc can't recognize this option, don't know why, because the gcc > in Mac OS X (quite old, compared to 4.2) can recognize it.mainline gcc-4.2 doesn't recognize this option as far as I can see. Since llvm-gcc is based on gcc-4.2, it has inherited this behaviour from it. Ciao, Duncan.
Mike Stump
2008-Jun-05 18:12 UTC
[LLVMdev] unrecognized command line option "-Wno-long-double"
On Jun 5, 2008, at 3:15 AM, Filipe Cabecinhas wrote:> LLVM-gcc can't recognize this option, don't know why, because the gcc > in Mac OS X (quite old, compared to 4.2) can recognize it.The option is no longer needed and hasn't been for quite some time. Just remove it.
Dale Johannesen
2008-Jun-05 18:27 UTC
[LLVMdev] unrecognized command line option "-Wno-long-double"
On Jun 5, 2008, at 4:33 AM, Duncan Sands wrote:> Hi Filipe, > >> LLVM-gcc can't recognize this option, don't know why, because the gcc >> in Mac OS X (quite old, compared to 4.2) can recognize it. > > mainline gcc-4.2 doesn't recognize this option as far as I can see. > Since > llvm-gcc is based on gcc-4.2, it has inherited this behaviour from it.Not exactly. -Wno-long-double was always an Apple thing, not in FSF. Here is the history: In the earliest Apple releases of gcc (around 2000) long double was implemented the same as double, which is C standard conformant but not very useful; however, it was always planned to implement "real" long double later. Thus, those releases warned about any use of long double: "size may change in a future release". As always with warnings, somebody wanted a way to turn it off, and -Wno-long-double was added to do so. In due course the size of long double was incompatibly changed, removing the need for the warning: the current gcc-4.0 does not warn on long double, but continues to accept the flag, which doesn't do anything. Going forward, gcc-4.2 will remove the flag as well, and llvm-gcc-4.2 is already there. So the best thing is not to use it. There is no reason to.
Filipe Cabecinhas
2008-Jun-05 18:39 UTC
[LLVMdev] unrecognized command line option "-Wno-long-double"
Hi, On 5 Jun, 2008, at 19:12, Mike Stump wrote:> The option is no longer needed and hasn't been for quite some time. > Just remove it.So, even in gcc 4.0.1 (the current for Mac OS X), it doesn't do anything? Thanks for the reply, - Filipe Cabecinhas
Seemingly Similar Threads
- [LLVMdev] unrecognized command line option "-Wno-long-double"
- [LLVMdev] unrecognized command line option "-Wno-long-double"
- [LLVMdev] unrecognized command line option "-Wno-long-double"
- [LLVMdev] Extending llvm-mc to whole executables/libraries
- [LLVMdev] Extending llvm-mc to whole executables/libraries