Re: trimming excess errors from -Werror

2007-05-17 Thread Benjamin Kosnik
And also error when I add "-g" Excellent, thanks for the feedback. I believe that the modified configure test will solve this issue, and will be monitoring gcc-testresults for confirmation. best, benjamin

RE: trimming excess errors from -Werror

2007-05-16 Thread Danny Smith
> > 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 But error when I add "-g" to

Re: trimming excess errors from -Werror

2007-05-16 Thread Benjamin Kosnik
Weird. Does -std=c++0x or -std=gnu++0x make a difference? I'm trying to figure out why I see this warning/error for things like 17_intro/headers/all_c++200x_compatibility.cc but not always. -benjamin

RE: trimming excess errors from -Werror

2007-05-16 Thread Danny Smith
> > 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 "-W

Re: trimming excess errors from -Werror

2007-05-16 Thread Tim Prince
[EMAIL PROTECTED] wrote: cc1plus: warnings being treated as errors /cygdrive/e/gnu/gcc-4.3-20070511/libstdc++-v3/testsuite/17_int ro/headers/all_c++200x_compatibility.cc:1: error: -ffunction-sections may affect debugging on some targets This is actually a useful warning, since -ffunction-sec

Re: trimming excess errors from -Werror

2007-05-16 Thread Benjamin Kosnik
This is actually a useful warning, since -ffunction-sections not only affects debugging but also adds unnecessary size to executables on PE-COFF targets (and others where ld does not support --gc-sections). One way to avoid is to add --enable-cxx-flags='-fno-function-sections -fno-data-sections

RE: trimming excess errors from -Werror

2007-05-16 Thread Danny Smith
> > cc1plus: warnings being treated as errors > > /cygdrive/e/gnu/gcc-4.3-20070511/libstdc++-v3/testsuite/17_int > ro/headers/all_c++200x_compatibility.cc:1: > error: -ffunction-sections may affect debugging on some targets > This is actually a useful warning, since -ffunction-sections not on