This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java: mark calls to external fndecls DECL_EXTERNAL


We weren't marking calls to external fndecls DECL_EXTERNAL, and this
was causing build failures on PPC64.

Andrew.


2007-01-29  Andrew Haley  <aph@redhat.com>

        * class.c (add_method_1): Mark fndecl as external unless we are
        compiling it into this object file.

Index: class.c
===================================================================
--- class.c     (revision 121108)
+++ class.c     (working copy)
@@ -733,6 +733,10 @@
       METHOD_NATIVE (fndecl) = 1;
       DECL_EXTERNAL (fndecl) = 1;
     }
+  else
+    /* FNDECL is external unless we are compiling it into this object
+       file.  */
+    DECL_EXTERNAL (fndecl) = CLASS_FROM_CURRENTLY_COMPILED_P (this_class) == 0;
   if (access_flags & ACC_STATIC) 
     METHOD_STATIC (fndecl) = DECL_INLINE (fndecl) = 1;
   if (access_flags & ACC_FINAL) 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]