]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 5 Mar 2003 09:00:43 +0000 (09:00 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 5 Mar 2003 09:00:43 +0000 (09:00 +0000)
'gcc-3_2-branch'.

From-SVN: r63834

gcc/fixinc/tests/base/internal/sgimacros.h [new file with mode: 0644]
gcc/fixinc/tests/base/internal/wchar_core.h [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/20030305-1.c [new file with mode: 0644]

diff --git a/gcc/fixinc/tests/base/internal/sgimacros.h b/gcc/fixinc/tests/base/internal/sgimacros.h
new file mode 100644 (file)
index 0000000..a491e86
--- /dev/null
@@ -0,0 +1,17 @@
+/*  DO NOT EDIT THIS FILE.
+
+    It has been auto-edited by fixincludes from:
+
+       "fixinc/tests/inc/internal/sgimacros.h"
+
+    This had to be done to correct non-standard usages in the
+    original, manufacturer supplied header file.  */
+
+
+
+#if defined( IRIX___RESTRICT_CHECK )
+#ifdef __c99
+#  ifndef __cplusplus
+#  define __restrict restrict
+#  endif
+#endif  /* IRIX___RESTRICT_CHECK */
diff --git a/gcc/fixinc/tests/base/internal/wchar_core.h b/gcc/fixinc/tests/base/internal/wchar_core.h
new file mode 100644 (file)
index 0000000..5b358a3
--- /dev/null
@@ -0,0 +1,15 @@
+/*  DO NOT EDIT THIS FILE.
+
+    It has been auto-edited by fixincludes from:
+
+       "fixinc/tests/inc/internal/wchar_core.h"
+
+    This had to be done to correct non-standard usages in the
+    original, manufacturer supplied header file.  */
+
+
+
+#if defined( IRIX_WCSFTIME_CHECK )
+#if _NO_XOPEN5 && !defined(__c99)
+extern size_t          wcsftime(wchar_t *, __SGI_LIBC_NAMESPACE_QUALIFIER size_t, const char *, const struct tm *);
+#endif  /* IRIX_WCSFTIME_CHECK */
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030305-1.c b/gcc/testsuite/gcc.c-torture/compile/20030305-1.c
new file mode 100644 (file)
index 0000000..2f60819
--- /dev/null
@@ -0,0 +1,18 @@
+/* PR c/9799 */
+/* Verify that GCC doesn't crash on excess elements
+   in initializer for a flexible array member.  */
+
+typedef struct {
+    int aaa;
+} s1_t;
+
+typedef struct {
+    int bbb;
+    s1_t s1_array[];
+} s2_t;
+
+static s2_t s2_array[]= {
+    { 1, 4 },
+    { 2, 5 },
+    { 3, 6 }
+};