From 57835af67348efff463ed937d239cff01905915f Mon Sep 17 00:00:00 2001 From: mshawcroft Date: Tue, 4 Dec 2012 14:52:50 +0000 Subject: [PATCH] AArch64: Fix ICE due to missing TYPE_STUB_DECL on builtin va_list. 2012-12-04 Marcus Shawcroft * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set TYPE_STUB_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194147 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.c | 1 + gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/aarch64/121127.c | 4 ++++ 4 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.target/aarch64/121127.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 077191a..ba9f33e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-04 Marcus Shawcroft + + * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set + TYPE_STUB_DECL. + 2012-12-04 Andreas Krebbel * config/s390/s390.c (s390_select_ccmode): Enable using CC of diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index bd72321..445cd4f 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5061,6 +5061,7 @@ aarch64_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 fields. */ f_stack = build_decl (BUILTINS_LOCATION, diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b84a590..55fc13c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-12-04 Marcus Shawcroft + + * gcc.target/aarch64/121127.c: New test. + 2012-12-04 Jakub Jelinek PR testsuite/55587 diff --git a/gcc/testsuite/gcc.target/aarch64/121127.c b/gcc/testsuite/gcc.target/aarch64/121127.c new file mode 100644 index 0000000..a7dca09 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/121127.c @@ -0,0 +1,4 @@ +/* { dg-do compile } */ +/* { dg-options "-g -femit-struct-debug-baseonly" } */ + +typedef __builtin_va_list __gnuc_va_list; -- 2.7.4