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] Put warning into documentation of attribute "regparm"


On Sat, May 17, 2003 at 09:03:32AM +1000, Kevin Ryde wrote:
> Beware that on some ELF systems this attribute is unsuitable for
> global functions in shared libraries with lazy binding (which is the
> default).  Lazy binding will send the first call via resolving code in
> the loader, which might assume EAX, EDX and ECX can be clobbered, as
> per the standard calling conventions.  Solaris 8 is affected by this.
> GNU systems with GLIBC 2.1 or higher, and FreeBSD, are believed to be
> safe since the loaders there save all registers.  (Lazy binding can be
> disabled with the linker or the loader if desired, to avoid the
> problem.)

This wording is ok with me, if someone wants to help him
get it into proper texi form and committed.


r~


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