This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: link_warning fix


Roland McGrath writes:

> > 	* include/libc-symbols.h (__as_app_line, __as_noapp): New macros.
> > 	(link_warning): Emit #APP line to turn comment recognition on, and
> > 	turn it off afterwards.
> 
> I am confused as to why this should be necessary.
> GCC has always emitted "#APP" and "#NO_APP" around the asm text.

Yes, and the purpose of the __as_noapp macro is precisely to get gcc
into emitting "#NO_APP".

It is necessary in the first place because #APP is turned on through a
strange sectionname in

    static const char <variable> __attribute__ ((section ("<sectionname>")));

for which gcc does not emit #NO_APP automatically by itself.

Bruno


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