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]
Other format: [Raw text]

Re: Built-in attribute table and host header files polluting it


On Thu, 23 May 2002, Jason R Thorpe wrote:

> Now, I'm not saying that what NetBSD's <stdio.h> is doing is right
> (in fact, I'm pretty sure it's wrong ... it should be just using
> a weak symbol there, but it's not for hysterical raisins).  But it

I suggest a fixinclude to change it to a function-like macro rather than
an object-like one.  (Though a weak symbol would be the ultimately correct
fix.)

> makes me wonder if the built-in attribute tables shouldn't be built
> in a more protected environment (separate file from c-common.c, with
> minimal host system include files pulled in) to avoid this sort of
> thing in the first place...

It might be possible to rearrange the macro definitions in
builtin-attrs.def so that concatenation applies to the unexpanded form.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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