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 08:21:54 +1200
- Subject: RE: trimming excess errors from -Werror
> > 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 above
> >
> > 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
And also error when I add "-g"
Danny