public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/9244: NetBSD sys/cdefs.h needs a fixincludes hack
@ 2003-01-09 14:16 rearnsha
0 siblings, 0 replies; 2+ messages in thread
From: rearnsha @ 2003-01-09 14:16 UTC (permalink / raw)
To: gcc-gnats; +Cc: thorpej
>Number: 9244
>Category: other
>Synopsis: NetBSD sys/cdefs.h needs a fixincludes hack
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 09 06:16:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Richard Earnshaw
>Release: unknown-1.0
>Organization:
>Environment:
any NetBSD target for any relase other than -current. Any release of GCC with the new C++ parser.
>Description:
The new C++ parser rejects the (invalid) construct
extern "C" {
// decls
}; // Bogus semicolon
But this is the way that __END_DECLS in sys/cdefs.h is defined on existing NetBSD installations. (Current has now been fixed.)
>How-To-Repeat:
Try to build any C++ program that includes stdio.h with the new compiler on NetBSD
>Fix:
Add a fixincludes rule to fix this case up. The file is sys/cdefs.h and the macro __END_DECLS is defined to '};' rather than just '}'
Note that the definition of __END_DECLS as an empty define must not be affected; this is needed for C.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: other/9244: NetBSD sys/cdefs.h needs a fixincludes hack
@ 2003-01-10 10:16 rearnsha
0 siblings, 0 replies; 2+ messages in thread
From: rearnsha @ 2003-01-10 10:16 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, rearnsha, thorpej
Synopsis: NetBSD sys/cdefs.h needs a fixincludes hack
State-Changed-From-To: open->analyzed
State-Changed-By: rearnsha
State-Changed-When: Fri Jan 10 02:16:46 2003
State-Changed-Why:
I've raised this to high. It's effectively a regression by the trunk compiler.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9244
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-10 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-09 14:16 other/9244: NetBSD sys/cdefs.h needs a fixincludes hack rearnsha
2003-01-10 10:16 rearnsha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).