This is the mail archive of the gcc-bugs@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]

Re: gcc -M bug.


On Mon, Jul 17, 2000 at 01:11:29PM -0700, Zack Weinberg wrote:
> On Mon, Jul 17, 2000 at 12:52:23PM -0700, H . J . Lu wrote:
> > Now with gcc -M,
> > 
> > # /work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/xgcc -B/work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/  -M -I.  -ansi -pedantic-errors t.cc
> > # 1 "t.cc"
> > #pragma weak foo
> > # 1 "t.cc"
> > 
> > 
> > # 3 "t.h" 1 3
> > # 33 "/work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/include/exception" 1 3
> > #pragma interface "exception"
> > # 33 "/work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/include/exception" 3
> > t.o: t.cc t.h \
> >   /work/build/gnu/bin/gcc-3.0-libstdc++v3/gcc/include/exception
> > 
> > Has the meaning of -M been changed? Why those extra stuff?
> 
> That's a bug - a harmless one, since # is Make's comment character,
> but still.
> 
> Please try this patch.
> 

It doesn't work:

#pragma weak foo
#pragma system_header


The one I sent you a patch works for me.


H.J.

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