[PATCH] Re: Solaris2.7 failing all nested function tests

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun Jan 16 05:23:00 GMT 2000


 > From: Jakub Jelinek <jakub@redhat.com>
 > 
 > Non-executable stack is AFAIK for 64bit apps only, so it is wasteful to call
 > __enable_execute_stack from 32bit when it never helps.
 > What about this:
 > I've changed a little bit the actual TRANSFER_FROM_TRAMPOLINE macro, so that
 > there is no constructor and the routine which gets called once calls
 > getpagesize() as well, because that does not change. IMHO not every 64bit
 > application compiled by gcc on Solaris will use trampolines, so I wanted to
 > avoid the constructor being called even if trampolines will not be used.
 > 
 > 2000-01-14  Jakub Jelinek  <jakub@redhat.com>
 > 
 > 	* config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Define if
 > 	AS_SPARC64_FLAG is defined or we're compiling libgcc2 and are 64bit.
 > 	(TRANSFER_FROM_TRAMPOLINE): Don't define if building 32bit libgcc.a.
 > 	Optimize.
 > 	* config/sparc/sparc.c (sparc_initialize_trampoline): Avoid calling
 > 	__enable_execute_stack.


	Success.  Much thanks! :-)

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-patches mailing list