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


> > 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


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