PATCH: [4.1 Regression]: java compiler generates wrong code on ia64

H. J. Lu hjl@lucon.org
Mon Apr 18 02:02:00 GMT 2005


On Sun, Apr 17, 2005 at 12:21:19PM -0700, Mark Mitchell wrote:
> H. J. Lu wrote:
> >Linkonce and weak functions are never local. 
> 
> > /* Only create aliases for local functions.  */
> >-  if (DECL_EXTERNAL (method))
> 
> If this code is testing for whether a function has internal linkage, 
> then the conditional should be "if (!TREE_PUBLIC (method))".  Your patch 
> is certainly not correct.
> 

default_binds_local_p_1 checks both. I am not sure exactly what
make_local_function_alias is trying to do. Is it for performance
or for correctness?

H.J.



More information about the Java-patches mailing list