From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Received: (qmail 30184 invoked by uid 71); 9 Jan 2003 14:16:06 -0000 Resent-Date: 9 Jan 2003 14:16:06 -0000 Resent-Message-ID: <20030109141606.30182.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, thorpej@netbsd.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, rearnsha@arm.com Received: (qmail 24349 invoked by uid 61); 9 Jan 2003 14:06:15 -0000 Message-Id: <20030109140615.24348.qmail@sources.redhat.com> Date: Thu, 09 Jan 2003 14:16:00 -0000 From: rearnsha@arm.com Reply-To: rearnsha@arm.com To: gcc-gnats@gcc.gnu.org Cc: thorpej@netbsd.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: thorpej@netbsd.org Subject: other/9244: NetBSD sys/cdefs.h needs a fixincludes hack X-SW-Source: 2003-01/txt/msg00601.txt.bz2 List-Id: >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: