Commit db04386f by Jason Merrill Committed by Jason Merrill

pt.c (tsubst_copy): Hush warning.

	* pt.c (tsubst_copy): Hush warning.
	* rtti.c (get_tinfo_fn): Also set DECL_IGNORED_P.

From-SVN: r21700
parent af79bb86
1998-08-13 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (tsubst_copy): Hush warning.
* rtti.c (get_tinfo_fn): Also set DECL_IGNORED_P.
1998-08-12 Mark Mitchell <mark@markmitchell.com> 1998-08-12 Mark Mitchell <mark@markmitchell.com>
* pt.c (print_template_context): Don't abort when instantiating a * pt.c (print_template_context): Don't abort when instantiating a
......
...@@ -5649,7 +5649,7 @@ tsubst_copy (t, args, in_decl) ...@@ -5649,7 +5649,7 @@ tsubst_copy (t, args, in_decl)
should find it again here during instantiation. */ should find it again here during instantiation. */
my_friendly_abort (0); my_friendly_abort (0);
} }
break; return t;
case FIELD_DECL: case FIELD_DECL:
if (DECL_CONTEXT (t)) if (DECL_CONTEXT (t))
......
...@@ -371,12 +371,14 @@ get_tinfo_fn (type) ...@@ -371,12 +371,14 @@ get_tinfo_fn (type)
/* We set DECL_CONTEXT for the benefit of backend stuff that wants to /* We set DECL_CONTEXT for the benefit of backend stuff that wants to
know what type this artificial function is associated with. dllexport know what type this artificial function is associated with. dllexport
handling, for instance. This is a kludge, and the DECL_NO_STATIC_CHAIN handling, for instance. This is a kludge, and the
bit is necessary to keep local classes from breaking. */ DECL_NO_STATIC_CHAIN bit is necessary to keep local classes from
breaking. The DECL_IGNORED_P bit keeps dwarf2 from breaking. */
if (IS_AGGR_TYPE (type)) if (IS_AGGR_TYPE (type))
{ {
DECL_CONTEXT (d) = type; DECL_CONTEXT (d) = type;
DECL_NO_STATIC_CHAIN (d) = 1; DECL_NO_STATIC_CHAIN (d) = 1;
DECL_IGNORED_P (d) = 1;
} }
pushdecl_top_level (d); pushdecl_top_level (d);
......
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