This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Built-in attribute table and host header files polluting it
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>
- Cc: <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 24 May 2002 11:44:18 +0100 (BST)
- Subject: 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