aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2016-08-13 18:08:15 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2016-08-13 18:08:15 +0000
commitdffe3cc511f8c616fc8fc05816d865264bffbeb3 (patch)
tree7c02c9d6248a58b93c31716bbfdf76982ffd6aa4 /fixincludes/inclhack.def
parent30c8821b37f20d584c0c11618d5d1787d44961c8 (diff)
downloadgcc-dffe3cc511f8c616fc8fc05816d865264bffbeb3.zip
gcc-dffe3cc511f8c616fc8fc05816d865264bffbeb3.tar.gz
gcc-dffe3cc511f8c616fc8fc05816d865264bffbeb3.tar.bz2
inclhack.def (hpux_longjmp): New fix.
* inclhack.def (hpux_longjmp): New fix. * fixincl.x: Regenerate. * tests/base/setjmp.h: New test file. From-SVN: r239446
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 2f75880..690c567 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2642,6 +2642,21 @@ fix = {
};
/*
+ * Add noreturn attribute to longjmp declarations in hpux <setjmp.h>
+ */
+fix = {
+ hackname = hpux_longjmp;
+ mach = "*-hp-hpux*";
+ files = setjmp.h;
+ select = "^[ \t]*extern[ \t]+void.*longjmp[ \t]+__\\(\\(.*int\\)\\)";
+
+ c_fix = format;
+ c_fix_arg = "%0 __attribute__ ((__noreturn__))";
+
+ test_text = 'extern void longjmp __((jmp_buf, int));';
+};
+
+/*
* Fix hpux10.20 <sys/time.h> to avoid invalid forward decl
*/
fix = {