This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR target/39477: Incorrect document for regparm attribute
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, ubizjak at gmail dot com
- Date: Tue, 17 Mar 2009 06:09:02 -0700
- Subject: Re: PATCH: PR target/39477: Incorrect document for regparm attribute
- References: <20090317004447.GA8572@lucon.org>
On Mon, Mar 16, 2009 at 5:44 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> 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.)
>
I am checking in this patch to trunk and 4.3 as an obvious fix.
--
H.J.