Commit 970d6386 by Mark Mitchell Committed by Mark Mitchell

decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a TYPE_DECL.

	* decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
	TYPE_DECL.
	* typeck.c (commonparms): Remove obstack manipulations.

From-SVN: r34830
parent 9de09d73
2000-07-02 Mark Mitchell <mark@codesourcery.com>
* decl.c (duplicate_decls): Preserve DECL_ORIGINAL_TYPE for a
TYPE_DECL.
* typeck.c (commonparms): Remove obstack manipulations.
2000-07-01 Benjamin Chelf <chelf@codesourcery.com> 2000-07-01 Benjamin Chelf <chelf@codesourcery.com>
* Make-lang.in (cc1plus$(exeext)): Added c-semantics.o. * Make-lang.in (cc1plus$(exeext)): Added c-semantics.o.
......
...@@ -3487,6 +3487,8 @@ duplicate_decls (newdecl, olddecl) ...@@ -3487,6 +3487,8 @@ duplicate_decls (newdecl, olddecl)
CLASSTYPE_FRIEND_CLASSES (newtype) CLASSTYPE_FRIEND_CLASSES (newtype)
= CLASSTYPE_FRIEND_CLASSES (oldtype); = CLASSTYPE_FRIEND_CLASSES (oldtype);
} }
DECL_ORIGINAL_TYPE (newdecl) = DECL_ORIGINAL_TYPE (olddecl);
} }
/* Copy all the DECL_... slots specified in the new decl /* Copy all the DECL_... slots specified in the new decl
...@@ -8033,7 +8035,6 @@ destroy_local_var (decl) ...@@ -8033,7 +8035,6 @@ destroy_local_var (decl)
} }
/* Finish processing of a declaration; /* Finish processing of a declaration;
install its line number and initial value. install its line number and initial value.
If the length of an array type is not known before, If the length of an array type is not known before,
......
...@@ -263,7 +263,6 @@ commonparms (p1, p2) ...@@ -263,7 +263,6 @@ commonparms (p1, p2)
tree oldargs = p1, newargs, n; tree oldargs = p1, newargs, n;
int i, len; int i, len;
int any_change = 0; int any_change = 0;
char *first_obj = (char *) oballoc (0);
len = list_length (p1); len = list_length (p1);
newargs = tree_last (p1); newargs = tree_last (p1);
...@@ -312,10 +311,7 @@ commonparms (p1, p2) ...@@ -312,10 +311,7 @@ commonparms (p1, p2)
TREE_VALUE (n) = TREE_VALUE (p1); TREE_VALUE (n) = TREE_VALUE (p1);
} }
if (! any_change) if (! any_change)
{ return oldargs;
obfree (first_obj);
return oldargs;
}
return newargs; return newargs;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment