aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2010-06-11 08:19:21 +0000
committerDodji Seketeli <dodji@gcc.gnu.org>2010-06-11 10:19:21 +0200
commitb66a8c5da87a3dd092752d9edf55d61589149aed (patch)
tree7309ad07df126de3eedd49e3b58da1eaf8d296b5 /gcc/dwarf2out.c
parent10d291f61fd76bd4bea77e2a3be0142ea574b656 (diff)
downloadgcc-b66a8c5da87a3dd092752d9edf55d61589149aed.zip
gcc-b66a8c5da87a3dd092752d9edf55d61589149aed.tar.gz
gcc-b66a8c5da87a3dd092752d9edf55d61589149aed.tar.bz2
Fix MIPS bootstrap
gcc/ChangeLog: Fix bootstap on mips * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot be naming typedefs. gcc/testsuite/ChangeLog: Fix MIPS bootstrap * g++.dg/other/typedef4.C: New test. From-SVN: r160599
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 6cbe8dc..e35a780 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -19891,6 +19891,7 @@ is_naming_typedef_decl (const_tree decl)
if (decl == NULL_TREE
|| TREE_CODE (decl) != TYPE_DECL
|| !is_tagged_type (TREE_TYPE (decl))
+ || DECL_IS_BUILTIN (decl)
|| is_redundant_typedef (decl)
/* It looks like Ada produces TYPE_DECLs that are very similar
to C++ naming typedefs but that have different