Built-in attribute table and host header files polluting it

Joseph S. Myers jsm28@cam.ac.uk
Fri May 24 03:44:00 GMT 2002


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



More information about the Gcc-bugs mailing list