OSDN Git Service

2003-12-05 Stuart Menefy <stuart.menefy@st.com>
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2003 15:48:37 +0000 (15:48 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Dec 2003 15:48:37 +0000 (15:48 +0000)
    J"orn Rennecke <joern.rennecke@superh.com>

PR target/13302
gcc:
* sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
testsuite:
* g++.dg/other/struct-va_list.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74334 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/struct-va_list.C [new file with mode: 0644]

index 66ba579..f9d6c8c 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-05  Stuart Menefy <stuart.menefy@st.com>
+            J"orn Rennecke <joern.rennecke@superh.com>
+
+       PR target/13302
+       * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
+
 2003-12-05  Roger Sayle  <roger@eyesopen.com>
 
        * dojump.c (do_jump): If the expression being compared against
index 186372f..0015f70 100644 (file)
@@ -5929,7 +5929,7 @@ sh_build_builtin_va_list (void)
       || TARGET_HITACHI || sh_cfun_attr_renesas_p ())
     return ptr_type_node;
 
-  record = make_node (RECORD_TYPE);
+  record = (*lang_hooks.types.make_type) (RECORD_TYPE);
 
   f_next_o = build_decl (FIELD_DECL, get_identifier ("__va_next_o"),
                         ptr_type_node);
index 376783e..2000b1c 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-05  Stuart Menefy <stuart.menefy@st.com>
+            J"orn Rennecke <joern.rennecke@superh.com>
+
+       PR target/13302
+       * g++.dg/other/struct-va_list.C: New test.
+
 2003-12-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/13166
diff --git a/gcc/testsuite/g++.dg/other/struct-va_list.C b/gcc/testsuite/g++.dg/other/struct-va_list.C
new file mode 100644 (file)
index 0000000..769b909
--- /dev/null
@@ -0,0 +1,8 @@
+// { dg-do compile }
+// PR target/13302
+
+#include <stdarg.h>
+
+struct NumArgState{
+    va_list ap;
+};