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 Fri, May 24, 2002 at 11:44:18AM +0100, Joseph S. Myers wrote:

 > 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.)

Yah, I'll change the NetBSD <stdio.h> to do this as a quick work-around,
and do the weak symbol change later..

The problem with a fixinclude is that the problem occurs when building
GCC with the native system compiler.  In this case, that happens to be
an older version of GCC (2.95.3), but this problem certainly could pop
up on other host systems.

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

Yah, I'll see if I can shuffle stuff around a little to work around this.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>


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