Commit d46c570d by Andrew Pinski Committed by Jakub Jelinek

method.c: add prototype for make_alias_for_thunk.

	* method.c: add prototype for make_alias_for_thunk.
	(thunk_labelno, make_alias_for_thunk): only define
	if ASM_OUTPUT_DEF is defined.

From-SVN: r68405
parent 9eb6e1d3
2003-06-23 Andrew Pinski <pinskia@physics.uc.edu>
* method.c: add prototype for make_alias_for_thunk.
(thunk_labelno, make_alias_for_thunk): only define
if ASM_OUTPUT_DEF is defined.
2003-06-23 Jakub Jelinek <jakub@redhat.com> 2003-06-23 Jakub Jelinek <jakub@redhat.com>
* method.c (thunk_labelno): New variable. * method.c (thunk_labelno): New variable.
......
...@@ -62,6 +62,9 @@ static tree synthesize_exception_spec (tree, tree (*) (tree, void *), void *); ...@@ -62,6 +62,9 @@ static tree synthesize_exception_spec (tree, tree (*) (tree, void *), void *);
static tree locate_dtor (tree, void *); static tree locate_dtor (tree, void *);
static tree locate_ctor (tree, void *); static tree locate_ctor (tree, void *);
static tree locate_copy (tree, void *); static tree locate_copy (tree, void *);
#ifdef ASM_OUTPUT_DEF
static tree make_alias_for_thunk (tree);
#endif
/* Called once to initialize method.c. */ /* Called once to initialize method.c. */
...@@ -351,6 +354,7 @@ thunk_adjust (tree ptr, bool this_adjusting, ...@@ -351,6 +354,7 @@ thunk_adjust (tree ptr, bool this_adjusting,
return ptr; return ptr;
} }
#ifdef ASM_OUTPUT_DEF
static GTY (()) int thunk_labelno; static GTY (()) int thunk_labelno;
/* Create a static alias to function. */ /* Create a static alias to function. */
...@@ -397,6 +401,7 @@ make_alias_for_thunk (tree function) ...@@ -397,6 +401,7 @@ make_alias_for_thunk (tree function)
assemble_alias (alias, DECL_ASSEMBLER_NAME (function)); assemble_alias (alias, DECL_ASSEMBLER_NAME (function));
return alias; return alias;
} }
#endif
/* Emit the definition of a C++ multiple inheritance or covariant /* Emit the definition of a C++ multiple inheritance or covariant
return vtable thunk. If EMIT_P is nonzero, the thunk is emitted return vtable thunk. If EMIT_P is nonzero, the thunk is emitted
......
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