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
This commit is contained in:
Dodji Seketeli 2010-06-11 08:19:21 +00:00 committed by Dodji Seketeli
parent 10d291f61f
commit b66a8c5da8
4 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-06-10 Dodji Seketeli <dodji@redhat.com>
Fix bootstap on mips
* dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
be naming typedefs.
2010-06-11 Kai Tietz <kai.tietz@onevision.com>
* system.h (helper_const_non_const_cast): New inline for

View File

@ -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

View File

@ -1,3 +1,8 @@
2010-06-10 Dodji Seketeli <dodji@redhat.com>
Fix MIPS bootstrap
* g++.dg/other/typedef4.C: New test.
2010-06-10 Janus Weil <janus@gcc.gnu.org>
PR fortran/44207

View File

@ -0,0 +1,7 @@
// { dg-options "-g" }
// { dg-do compile }
// On some platforms like MIPS, __builtin_va_list is a
// RECORD_TYPE. Make sure we don't wrongly try to generate debug info
// for its TYPE_DECL and crash.
typedef __builtin_va_list foo;