This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

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


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.


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