This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: trimming excess errors from -Werror
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: 'Benjamin Kosnik' <bkoz at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 17 May 2007 07:27:32 +1200
- Subject: 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