[Comitted] Fix powerpc-apple-darwin bootstrap

Andrew Pinski apinski@apple.com
Fri Aug 20 14:24:00 GMT 2004


Even though the regression tester has not complained about this yet, I 
know it will.

Committed as obvious.


Thanks,
Andrew Pinski


ChangeLog:
	* class.c (make_local_function_alias): Only make a new decl if we 
support
	alias attribute on all decls.


Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/class.c,v
retrieving revision 1.203
diff -u -p -r1.203 class.c
--- class.c     18 Aug 2004 17:57:03 -0000      1.203
+++ class.c     19 Aug 2004 03:06:44 -0000
@@ -1201,12 +1201,13 @@ get_access_flags_from_decl (tree decl)
  static GTY (()) int alias_labelno = 0;

  /* Create a private alias for METHOD. Using this alias instead of the 
method
-decl ensures that ncode entries in the method table point to the real 
function
-at runtime, not a PLT entry.  */
+   decl ensures that ncode entries in the method table point to the 
real function
+   at runtime, not a PLT entry.  */

  static tree
  make_local_function_alias (tree method)
  {
+#ifdef ASM_OUTPUT_DEF
    tree alias;
    const char *method_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME 
(method));
    char *name = alloca (strlen (method_name) + 1);
@@ -1234,6 +1235,9 @@ make_local_function_alias (tree method)
    if (!flag_syntax_only)
      assemble_alias (alias, DECL_ASSEMBLER_NAME (method));
    return alias;
+#else
+  return method;
+#endif
  }

  /** Make reflection data (_Jv_Field) for field FDECL. */



More information about the Java-patches mailing list