From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10461 invoked by alias); 31 Jan 2015 22:28:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10393 invoked by uid 48); 31 Jan 2015 22:28:36 -0000 From: "howarth at bromo dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/64883] FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin14 Date: Sat, 31 Jan 2015 22:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at bromo dot med.uc.edu X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg03659.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64883 --- Comment #11 from howarth at bromo dot med.uc.edu --- What is so dangerous about just using... Index: fixincludes/inclhack.def =================================================================== --- fixincludes/inclhack.def (revision 220306) +++ fixincludes/inclhack.def (working copy) @@ -1266,6 +1266,18 @@ fix = { }; /* + * sys/cdef.sh on Darwin should use reserved name __noreturn__ + * rather than noreturn. + */ +fix = { + hackname = darwin_noreturn; + mach = "*-*-darwin*"; + files = sys/cdefs.h; + sed = "s/__attribute__((noreturn))/__attribute__((__noreturn__))/g"; + test_text = "__attribute__((noreturn))"; +}; + +/* * __private_extern__ doesn't exist in FSF GCC. Even if it did, * why would you ever put it in a system header file? */ ...instead? It seems a whole lot simpler.