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: target/1538: cannot compile with #include <sys/varargs.h>



The "standard" to which you refer is for *USERLAND* code only.  When you
compile kernel code for Solaris, you are not supposed to use this header
since it might introduce other (conflicting) symbols.  The Solaris DDI
specifies the use of <sys/varargs.h> for builing devices drivers and other
kernel code.

It would be very nice if gcc knew that on Solaris <sys/varargs.h> is
basically the same as <stdarg.h> and fixincludes automagically took care
of this.  Which is why I filed the request.

I don't consider the item "closed" in the sense that it is resolved.
It may be that the gcc team isn't interested in assisting Solaris kernel
developers -- but the answer "use the standard" is wrong -- the "standard"
simply doesn't apply here (i.e. to the Solaris kernel).

	-- Garrett

> Synopsis: cannot compile with #include <sys/varargs.h>
> 
> State-Changed-From-To: open->closed
> State-Changed-By: rth
> State-Changed-When: Thu Mar 28 23:59:24 2002
> State-Changed-Why:
>     Use <stdarg.h> which is what the standard specifies.
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr
> =1538


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