summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-12 00:04:11 +0000
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-12 00:04:11 +0000
commit33a67b8d3c243c109439c0142c76ecaf0d7a3643 (patch)
tree67abdc573d603f4a692a953e4990ab6169717192 /gcc/system.h
parentd2b48f0c58acd993a34ce2ab25166ef727a12cce (diff)
downloadgcc-33a67b8d3c243c109439c0142c76ecaf0d7a3643.tar.gz
2009-06-11 David Daney <ddaney@caviumnetworks.com>
* system.h (gcc_assert, gcc_unreachable): Revert accidental commit in r148403. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148404 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 3bb61ce8490..51d9c995c3c 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -576,20 +576,14 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
#if ENABLE_ASSERT_CHECKING
#define gcc_assert(EXPR) \
((void)(!(EXPR) ? fancy_abort (__FILE__, __LINE__, __FUNCTION__), 0 : 0))
-#elif (__GNUC__ == 4) && (__GNUC_MINOR__) && 0
-#define gcc_assert(EXPR) do { if (EXPR) __builtin_unreachable (); } while (0)
#else
/* Include EXPR, so that unused variable warnings do not occur. */
#define gcc_assert(EXPR) ((void)(0 && (EXPR)))
#endif
-#if !ENABLE_ASSERT_CHECKING && (__GNUC__ == 4) && (__GNUC_MINOR__) && 0
-#define gcc_unreachable() __builtin_unreachable ()
-#else
/* Use gcc_unreachable() to mark unreachable locations (like an
unreachable default case of a switch. Do not use gcc_assert(0). */
#define gcc_unreachable() (fancy_abort (__FILE__, __LINE__, __FUNCTION__))
-#endif
/* Provide a fake boolean type. We make no attempt to use the
C99 _Bool, as it may not be available in the bootstrap compiler,