Patchwork Control dependence vs. builtin_unreachable

login
register
mail settings
Submitter Steven Bosscher
Date Jan. 6, 2013, 12:12 a.m.
Message ID <CABu31nOgwBNf6Jn5zr3z2008F9bHC1zXjbAK=Yrhz6WJStGcJA@mail.gmail.com>
Download mbox | patch
Permalink /patch/209708/
State New
Headers show

Comments

Steven Bosscher - Jan. 6, 2013, 12:12 a.m.
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:

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

Ciao!
Steven

Patch

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__))