]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR debug/45447 (ICE with `-g -femit-struct-debug-baseonly')
authorYao Qi <yao@codesourcery.com>
Mon, 27 Dec 2010 12:45:02 +0000 (12:45 +0000)
committerYao Qi <qiyao@gcc.gnu.org>
Mon, 27 Dec 2010 12:45:02 +0000 (12:45 +0000)
Backport from mainline:
gcc/
        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.

From-SVN: r168270

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

index 64afb5c7396cd76ed75652f34c2213c5b71b2836..a60b9b8c3b778a4286e9540151a4ee06b7179d40 100644 (file)
@@ -1,3 +1,12 @@
+2010-12-27  Yao Qi  <yao@codesourcery.com>
+
+       Backport from mainline:
+       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-12-23  Sebastian Pop  <sebastian.pop@amd.com>
            Richard Guenther  <rguenther@suse.de>
 
index c65f59e93d87a27d661033761caf69e54cc6988b..144cf7913ef5ad05baf549f5975575a46a7e8485 100644 (file)
@@ -1114,6 +1114,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 76ce267d9b09b4934f9cd93fc1e166721652bd9a..28e16bfce464e21d11fa2918361a53859492c0e9 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-27  Yao Qi  <yao@codesourcery.com>
+
+       Backport from mainline:
+       2010-10-14  Yao Qi  <yao@codesourcery.com>
+
+       PR target/45447
+       * gcc.target/arm/pr45447.c: New test.
+
 2010-12-24  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/opt13_pkg.ad[sb]: Fix line ending.
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;