summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 18:22:39 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 18:22:39 +0000
commit522649bb70b2c3887113bca8fd7a1ed6ce979e1e (patch)
tree35a36012e2786a4d508c08f34fb89d9e42cd5c10 /gcc/dwarf2out.c
parent83458610bef672da35282ed371bfb858f408b290 (diff)
downloadgcc-522649bb70b2c3887113bca8fd7a1ed6ce979e1e.tar.gz
* dwarf2out.c (gen_typedef_die): Abort if we get identical
TREE_TYPE and DECL_ORIGINAL_TYPE on a typedef. * typeck.c (common_type): If we're just returning one of our arguments, don't strip typedef types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 01911a03790..6b04b777505 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -9276,7 +9276,11 @@ gen_typedef_die (decl, context_die)
if (DECL_ORIGINAL_TYPE (decl))
{
type = DECL_ORIGINAL_TYPE (decl);
- equate_type_number_to_die (TREE_TYPE (decl), type_die);
+
+ if (type == TREE_TYPE (decl))
+ abort ();
+ else
+ equate_type_number_to_die (TREE_TYPE (decl), type_die);
}
else
type = TREE_TYPE (decl);