aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2007-07-10 17:55:20 +0000
committerRainer Orth <ro@gcc.gnu.org>2007-07-10 17:55:20 +0000
commit62bfdc5307a6264b5e2f2262ddfbcc8b372fa1f7 (patch)
treef67f4c832cb7c38d7d59978f3823cf62695a6fab
parent2951f1ca7816f8a450e0b27288304d283cc86f35 (diff)
re PR libgcj/28190 (libjava bootstrap failure on IRIX 6.5: stdint.h misdetection)
PR libgcj/28190 * inclhack.def (irix_stdint_c99): New fix. * fixincl.x: Regenerate. * tests/base/stdint.h: New test. From-SVN: r126518
-rw-r--r--fixincludes/ChangeLog7
-rw-r--r--fixincludes/fixincl.x66
-rw-r--r--fixincludes/inclhack.def18
-rw-r--r--fixincludes/tests/base/stdint.h16
4 files changed, 96 insertions, 11 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index 6bbc4408d9c..133705c1676 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,10 @@
+2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ PR libgcj/28190
+ * inclhack.def (irix_stdint_c99): New fix.
+ * fixincl.x: Regenerate.
+ * tests/base/stdint.h: New test.
+
2007-05-13 Release Manager
* GCC 4.2.0 released.
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
index 413eb45ba32..4a636defbdf 100644
--- a/fixincludes/fixincl.x
+++ b/fixincludes/fixincl.x
@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
- * It has been AutoGen-ed Tuesday February 6, 2007 at 06:51:14 PM CET
+ * It has been AutoGen-ed Thursday July 5, 2007 at 08:11:22 PM MEST
* From the definitions inclhack.def
* and the template file fixincl
*/
-/* DO NOT CVS-MERGE THIS FILE, EITHER Di 6. Feb 18:51:14 CET 2007
+/* DO NOT CVS-MERGE THIS FILE, EITHER Thu Jul 5 20:11:22 MEST 2007
*
* You must regenerate it. Use the ./genfixes script.
*
@@ -15,7 +15,7 @@
* certain ANSI-incompatible system header files which are fixed to work
* correctly with ANSI C and placed in a directory that GNU C will search.
*
- * This file contains 203 fixup descriptions.
+ * This file contains 204 fixup descriptions.
*
* See README for more information.
*
@@ -26,8 +26,7 @@
*
* You may redistribute it and/or modify it under the terms of the
* GNU General Public License, as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * Foundation; either version 2, or (at your option) any later version.
*
* inclhack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -35,10 +34,10 @@
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with inclhack. If not, write to:
- * The Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor
- * Boston, MA 02110-1301, USA.
+ * along with inclhack. See the file "COPYING". If not,
+ * write to: The Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
*/
/* * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -3704,6 +3703,45 @@ typedef int socklen_t;\n\
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
+ * Description of Irix_Stdint_C99 fix
+ */
+tSCC zIrix_Stdint_C99Name[] =
+ "irix_stdint_c99";
+
+/*
+ * File name selection pattern
+ */
+tSCC zIrix_Stdint_C99List[] =
+ "|stdint.h|";
+/*
+ * Machine/OS name selection pattern
+ */
+tSCC* apzIrix_Stdint_C99Machs[] = {
+ "mips-sgi-irix6.5",
+ (const char*)NULL };
+
+/*
+ * content selection pattern - do fix if pattern found
+ */
+tSCC zIrix_Stdint_C99Select0[] =
+ "(#ifndef __c99\n\
+)(#error This header file is to be used only for c99 mode compilations)";
+
+#define IRIX_STDINT_C99_TEST_CT 1
+static tTestDesc aIrix_Stdint_C99Tests[] = {
+ { TT_EGREP, zIrix_Stdint_C99Select0, (regex_t*)NULL }, };
+
+/*
+ * Fix Command Arguments for Irix_Stdint_C99
+ */
+static const char* apzIrix_Stdint_C99Patch[] = {
+ "format",
+ "#if 0\n\
+%2",
+ (char*)NULL };
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
* Description of Irix_Stdio_Va_List fix
*/
tSCC zIrix_Stdio_Va_ListName[] =
@@ -8261,9 +8299,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
-#define REGEX_COUNT 245
+#define REGEX_COUNT 246
#define MACH_LIST_SIZE_LIMIT 261
-#define FIX_COUNT 203
+#define FIX_COUNT 204
/*
* Enumerate the fixes
@@ -8357,6 +8395,7 @@ typedef enum {
IRIX_ASM_APOSTROPHE_FIXIDX,
IRIX_LIMITS_CONST_FIXIDX,
IRIX_SOCKLEN_T_FIXIDX,
+ IRIX_STDINT_C99_FIXIDX,
IRIX_STDIO_VA_LIST_FIXIDX,
IRIX_WCSFTIME_FIXIDX,
ISC_FMOD_FIXIDX,
@@ -8915,6 +8954,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
IRIX_SOCKLEN_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aIrix_Socklen_TTests, apzIrix_Socklen_TPatch, 0 },
+ { zIrix_Stdint_C99Name, zIrix_Stdint_C99List,
+ apzIrix_Stdint_C99Machs,
+ IRIX_STDINT_C99_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+ aIrix_Stdint_C99Tests, apzIrix_Stdint_C99Patch, 0 },
+
{ zIrix_Stdio_Va_ListName, zIrix_Stdio_Va_ListList,
apzIrix_Stdio_Va_ListMachs,
IRIX_STDIO_VA_LIST_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 21d99092e87..6606b5995b0 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2096,6 +2096,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
diff --git a/fixincludes/tests/base/stdint.h b/fixincludes/tests/base/stdint.h
new file mode 100644
index 00000000000..369b0120118
--- /dev/null
+++ b/fixincludes/tests/base/stdint.h
@@ -0,0 +1,16 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/stdint.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( IRIX_STDINT_C99_CHECK )
+#if 0
+#error This header file is to be used only for c99 mode compilations
+#else
+#endif /* IRIX_STDINT_C99_CHECK */