]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/
authorqiyao <qiyao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2010 04:03:10 +0000 (04:03 +0000)
committerqiyao <qiyao@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Oct 2010 04:03:10 +0000 (04:03 +0000)
        PR target/45447
        * config/arm/arm.c (arm_build_builtin_va_list): Assign
        va_list_name to TYPE_STUB_DECL (va_list_type).

gcc/testsuite/

        PR target/45447
        * gcc.target/arm/pr45447.c: New test.

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

gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr45447.c [new file with mode: 0644]

index 5c0d576f402972c7f3e06f59616c13081851373b..ed8f3767c94c55413e15635fea7c6072d6fa668f 100644 (file)
@@ -1,3 +1,9 @@
+2010-10-14  Yao Qi  <yao@codesourcery.com>
+
+       PR target/45447
+       * config/arm/arm.c (arm_build_builtin_va_list): Assign
+       va_list_name to TYPE_STUB_DECL (va_list_type).
+
 2010-10-14  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/45621
index 5307948cc1d8c35eb8134850806b50450e360038..3bcd1a9cb2c035f66e9ad7a66188f15c81cb117e 100644 (file)
@@ -1218,6 +1218,7 @@ arm_build_builtin_va_list (void)
                             va_list_type);
   DECL_ARTIFICIAL (va_list_name) = 1;
   TYPE_NAME (va_list_type) = va_list_name;
+  TYPE_STUB_DECL (va_list_type) = va_list_name;
   /* Create the __ap field.  */
   ap_field = build_decl (BUILTINS_LOCATION,
                         FIELD_DECL, 
index 6f8e1fdf9da94839f3704ce15dc18036301a8b08..116c676855baa03139e2aaf7a4fcf12507e12db4 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-14  Yao Qi  <yao@codesourcery.com>
+
+       PR target/45447
+       * gcc.target/arm/pr45447.c: New test.
+
 2010-10-14  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/45621
diff --git a/gcc/testsuite/gcc.target/arm/pr45447.c b/gcc/testsuite/gcc.target/arm/pr45447.c
new file mode 100644 (file)
index 0000000..cb4a442
--- /dev/null
@@ -0,0 +1,3 @@
+/* { dg-do compile } */
+/* { dg-options "-g -femit-struct-debug-baseonly" } */
+typedef __builtin_va_list x;