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]

PATCH: PR target/39477: Incorrect document for regparm attribute


Dynamic linker in glibc only saves EAX, EDX and ECX, not all registers.
OK for trunk and 4.3?

Thanks.


H.J.
----
2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/39477
	* doc/extend.texi: Correct register behavior for regparm on
	Intel 386.

--- gcc/doc/extend.texi.pr39477	2009-03-16 10:21:25.000000000 -0700
+++ gcc/doc/extend.texi	2009-03-16 17:40:01.000000000 -0700
@@ -2795,7 +2795,7 @@ default).  Lazy binding will send the fi
 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
+safe since the loaders there save EAX, EDX and ECX.  (Lazy binding can be
 disabled with the linker or the loader if desired, to avoid the
 problem.)
 


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