From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6885 invoked by alias); 6 Oct 2009 00:52:03 -0000 Received: (qmail 6541 invoked by uid 48); 6 Oct 2009 00:51:52 -0000 Date: Tue, 06 Oct 2009 00:52:00 -0000 Message-ID: <20091006005152.6540.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/41313] r150553 causes g++.dg/tree-prof/partition1.C compilation and execution test failures on *-apple-darwin* In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" 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 X-SW-Source: 2009-10/txt/msg00446.txt.bz2 ------- Comment #35 from howarth at nitro dot med dot uc dot edu 2009-10-06 00:51 ------- Testing... Index: gcc/config/darwin.c =================================================================== --- gcc/config/darwin.c (revision 152480) +++ gcc/config/darwin.c (working copy) @@ -1454,7 +1454,7 @@ { char *lab; - if (! for_eh) + if ((! for_eh) || (darwin_macosx_version_min && strverscmp(darwin_macosx_version_min, "10.6") >= 0)) return; lab = concat (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)), ".eh", NULL); @@ -1697,6 +1697,19 @@ if (dwarf_strict < 0) dwarf_strict = 1; + if (!(darwin_macosx_version_min && strverscmp(darwin_macosx_version_min, "10.6") >= 0) && flag_reorder_blocks_and_partition) + { + if (flag_exceptions || + (flag_unwind_tables && !targetm.unwind_tables_default) || + (!targetm.have_named_sections || (flag_unwind_tables && targetm.unwind_tables_default))) + { + inform (input_location, + "-freorder-blocks-and-partition does not work with exceptions on this architecture"); + flag_reorder_blocks_and_partition = 0; + flag_reorder_blocks = 1; + } + } + if (flag_mkernel || flag_apple_kext) { /* -mkernel implies -fapple-kext for C++ */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41313