This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR target/39477: Incorrect document for regparm attribute
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ubizjak at gmail dot com
- Date: Mon, 16 Mar 2009 17:44:47 -0700
- Subject: PATCH: PR target/39477: Incorrect document for regparm attribute
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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.)