summaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 18:43:16 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 18:43:16 +0000
commit5fb066e6f3badc6d848f46091821d5b90eb628c3 (patch)
treea42051c89a8248de5f2c5fe584116500e53c315b /fixincludes/inclhack.def
parent53c0a4e9f3e41ce8560b1c54800c3c6721758212 (diff)
downloadgcc-5fb066e6f3badc6d848f46091821d5b90eb628c3.tar.gz
PR libgcj/28190
* inclhack.def (irix_stdint_c99): New fix. * fixincl.x: Regenerate. * tests/base/stdint.h: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126377 138bc75d-0d04-0410-961f-82ee72b054a4
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 dbdabb25c5f..f7f9888969f 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2211,6 +2211,24 @@ fix = {
};
/*
+ * IRIX 6.5 <stdint.h> only works with ISO C99 and errors out
+ * otherwise.
+ */
+fix = {
+ hackname = irix_stdint_c99;
+ files = stdint.h;
+ select = "(#ifndef __c99\n)(#error This header file is to be used only for c99 mode compilations)";
+
+ mach = "mips-sgi-irix6.5";
+ c_fix = format;
+ c_fix_arg = "#if 0\n"
+ "%2";
+ test_text =
+ "#ifndef __c99\n#error This header file is to be used only for c99 mode compilations\n#else";
+};
+
+
+/*
* IRIX 5.x's stdio.h and IRIX 6.5's internal/stdio_core.h declare
* some functions that take a va_list as
* taking char *. However, GCC uses void * for va_list, so