method.c: add prototype for make_alias_for_thunk.
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 24 Jun 2003 05:44:45 +0000 (05:44 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Jun 2003 05:44:45 +0000 (07:44 +0200)
* 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

gcc/cp/ChangeLog
gcc/cp/method.c

index ee9027446b8bde85f170c768ba0e1c618935c37c..b99ae52664928a84c1944badf60ff8878543fb40 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * method.c (thunk_labelno): New variable.
index 9e00fff70c0c65fdc53f502ce30ee6ae5a45ce9a..3c9ab9116ac4a193723f2f616b06f6638011ce1e 100644 (file)
@@ -62,6 +62,9 @@ static tree synthesize_exception_spec (tree, tree (*) (tree, void *), void *);
 static tree locate_dtor (tree, void *);
 static tree locate_ctor (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.  */
 
@@ -351,6 +354,7 @@ thunk_adjust (tree ptr, bool this_adjusting,
   return ptr;
 }
 
+#ifdef ASM_OUTPUT_DEF
 static GTY (()) int thunk_labelno;
 
 /* Create a static alias to function.  */
@@ -397,6 +401,7 @@ make_alias_for_thunk (tree function)
     assemble_alias (alias, DECL_ASSEMBLER_NAME (function));
   return alias;
 }
+#endif
 
 /* Emit the definition of a C++ multiple inheritance or covariant
    return vtable thunk.  If EMIT_P is nonzero, the thunk is emitted