aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2017-02-11 21:11:44 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2017-02-11 21:11:44 +0000
commit7d3235372abf6e7e63bb846dec5b44e8efdb8cc0 (patch)
tree5f7fb9d62fb8e1cb261fd76c96588d0e0f366fa5 /fixincludes/inclhack.def
parent99ebfe90756a3bd3c94828c56a102f886b919673 (diff)
downloadgcc-7d3235372abf6e7e63bb846dec5b44e8efdb8cc0.zip
gcc-7d3235372abf6e7e63bb846dec5b44e8efdb8cc0.tar.gz
gcc-7d3235372abf6e7e63bb846dec5b44e8efdb8cc0.tar.bz2
alloca.h: New file.
* tests/base/alloca.h: New file. * inclhack.def (hppa_hpux11_alloca): New fix. * fixincl.x: Regenerate. From-SVN: r245364
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def18
1 files changed, 18 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 03a267b..fd12062 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2275,6 +2275,24 @@ fix = {
};
/*
+ * The HP-UX stddef.h is replaced by gcc's. It doesn't include sys/stdsyms.h.
+ * As a result, we need to include sys/stdsyms.h in alloca.h.
+ */
+fix = {
+ hackname = hppa_hpux11_alloca;
+ mach = "hppa*-*-hpux11*";
+ files = alloca.h;
+ select = "#ifndef _STDDEF_INCLUDED";
+ c_fix = format;
+ c_fix_arg = "#ifndef _SYS_STDSYMS_INCLUDED\n"
+ "# include <sys/stdsyms.h>\n"
+ "#endif /* _SYS_STDSYMS_INCLUDED */\n\n"
+ "%0";
+
+ test_text = "#ifndef _STDDEF_INCLUDED";
+};
+
+/*
* Make sure hpux defines abs in header.
*/
fix = {