summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-03-29 16:20:54 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-04-13 00:26:39 -0500
commitccd00917a2cb69b80714f9b9d028288ddac23e69 (patch)
tree27c891657b4e0dc35db3bf816bebc1c04bc6b946
parent08a82b3d60c36abdf28585e1b421f27431ef2452 (diff)
gcc 4.4 does not have __builtin_unreachable
For avr32 we still use gcc 4.4 compiler, so exlude the usage of __builtin_unreachable here.
-rw-r--r--ldso/include/dl-syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 4749d7abd..0acd2ba4a 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -51,7 +51,7 @@ extern int _dl_errno;
static __always_inline attribute_noreturn __cold void _dl_exit(int status)
{
INLINE_SYSCALL(_dl_exit, 1, status);
-#if defined __GNUC__
+#if defined __GNUC__ && !__GNUC_PREREQ (4, 4)
__builtin_unreachable(); /* shut up warning: 'noreturn' function does return*/
#else
while (1);