This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41313] g++.dg/tree-prof/partition1.C compilation and execution test failures on *-apple-darwin*
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2009 05:34:06 -0000
- Subject: [Bug c++/41313] g++.dg/tree-prof/partition1.C compilation and execution test failures on *-apple-darwin*
- References: <bug-41313-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from howarth at nitro dot med dot uc dot edu 2009-10-02 05:34 -------
The following change achieves the same test results as in Comment 24...
--- /Users/howarth/gcc/gcc/opts.c 2009-09-28 19:33:18.000000000 -0400
+++ opts.c 2009-10-02 01:30:48.000000000 -0400
@@ -1038,11 +1038,14 @@
turn off the partitioning optimization. */
if (flag_exceptions && flag_reorder_blocks_and_partition
+#if !defined(__MACH__)
&& (USING_SJLJ_EXCEPTIONS
-#ifdef TARGET_UNWIND_INFO
+#if defined(TARGET_UNWIND_INFO)
|| 1
#endif
- ))
+ )
+#endif
+ )
{
inform (input_location,
"-freorder-blocks-and-partition does not work with exceptions on
this architecture");
@@ -1055,11 +1058,14 @@
if (flag_unwind_tables && ! targetm.unwind_tables_default
&& flag_reorder_blocks_and_partition
+#if !defined(__MACH__)
&& (USING_SJLJ_EXCEPTIONS
-#ifdef TARGET_UNWIND_INFO
+#if defined(TARGET_UNWIND_INFO)
|| 1
#endif
- ))
+ )
+#endif
+ )
{
inform (input_location,
"-freorder-blocks-and-partition does not support unwind info on
this architecture");
@@ -1074,11 +1080,14 @@
if (flag_reorder_blocks_and_partition
&& (!targetm.have_named_sections
|| (flag_unwind_tables && targetm.unwind_tables_default
+#if !defined(__MACH__)
&& (USING_SJLJ_EXCEPTIONS
-#ifdef TARGET_UNWIND_INFO
+#if defined(TARGET_UNWIND_INFO)
|| 1
#endif
- ))))
+ )
+#endif
+ )))
{
inform (input_location,
"-freorder-blocks-and-partition does not work on this
architecture");
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41313