This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Control dependence vs. builtin_unreachable


On Sat, Jan 5, 2013 at 9:10 PM, Steven Bosscher wrote:
> Bootstrapped&tested on powerpc64-unknown-linux-gnu.

And to be clear, bootstrapped with this patch on top:
Index: system.h
===================================================================
--- system.h    (revision 194924)
+++ system.h    (working copy)
@@ -698,7 +698,7 @@

 /* Use gcc_unreachable() to mark unreachable locations (like an
    unreachable default case of a switch.  Do not use gcc_assert(0).  */
-#if (GCC_VERSION >= 4005) && !ENABLE_ASSERT_CHECKING
+#if (GCC_VERSION >= 4005) //&& !ENABLE_ASSERT_CHECKING
 #define gcc_unreachable() __builtin_unreachable()
 #else
 #define gcc_unreachable() (fancy_abort (__FILE__, __LINE__, __FUNCTION__))

Otherwise, __builtin_unreachable would be almost unused and
bootstrap+test wouldn't prove much :-)

Ciao!
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]