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: trimming excess errors from -Werror


> 
> libstdc++ configure is already probing to see if the target 
> supports the 
> use of this flag without errors. It thinks AIX and cygwin can 
> use this 
> flag without errors or warnings, which is clearly wrong.
> 
> So, something needs to be fixed.
> 
> Can you try
> 
> int i;
> 
> with "-Werror -ffunction-sections -fdata-sections" and see if 
> you get an 
> error with g++?

With GNU C++ version 4.3.0 20070513 (experimental) (i686-pc-mingw32dw2)
No error.  i is put in its own section .data$i
> 
> if not, can you try
> 
> int i;
> void bar() { }
> 
> with the same flags and see if you get the error?
> 
No error.  bar is put in .text$_Z3barv

Danny



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