Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-01-19 13:38:34 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-01-19 13:38:34 +0400
commit5e66ab78527827cf951c6593f35cd5a7b0c8f489 (patch)
tree5d3d8178d4290bcb6f5ae3c00d2cc37fbcdc775b
parent3228065cea900c130df22ad8a307e7bb11cadd23 (diff)
* libc/include/setjmp.h (longjmp): Mark "noreturn" when building with
GCC.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/setjmp.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 988d0e67c..ac2eb488a 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-19 Corinna Vinschen <vinschen@redhat.com>
+
+ * libc/include/setjmp.h (longjmp): Mark "noreturn" when building with
+ GCC.
+
2014-01-17 Corinna Vinschen <vinschen@redhat.com>
* libc/include/pwd.h: Use __foo_VISIBLE macros from sys/cdefs.h.
diff --git a/newlib/libc/include/setjmp.h b/newlib/libc/include/setjmp.h
index c958d9042..39843124e 100644
--- a/newlib/libc/include/setjmp.h
+++ b/newlib/libc/include/setjmp.h
@@ -11,7 +11,11 @@
_BEGIN_STD_C
-void _EXFUN(longjmp,(jmp_buf __jmpb, int __retval));
+#ifdef __GNUC__
+#else
+void _EXFUN(longjmp,(jmp_buf __jmpb, int __retval))
+ __attribute__ ((__noreturn__));
+#endif
int _EXFUN(setjmp,(jmp_buf __jmpb));
_END_STD_C