V2 [PATCH] i386: Remove build support for GCC older than GCC 6
H.J. Lu
hjl.tools@gmail.com
Mon Apr 6 18:39:54 GMT 2020
On Mon, Apr 6, 2020 at 10:38 AM Adhemerval Zanella via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
>
>
> On 06/04/2020 11:49, H.J. Lu via Libc-alpha wrote:
>
> > diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
> > index 6671afe65e..cfa562ecb0 100644
> > --- a/sysdeps/unix/sysv/linux/i386/sysdep.h
> > +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
> > @@ -43,15 +43,6 @@
> > # endif
> > #endif
> >
> > -/* Since GCC 5 and above can properly spill %ebx with PIC when needed,
> > - we can inline syscalls with 6 arguments if GCC 5 or above is used
> > - to compile glibc. Disable GCC 5 optimization when compiling for
> > - profiling or when -fno-omit-frame-pointer is used since asm ("ebp")
> > - can't be used to put the 6th argument in %ebp for syscall. */
> > -#if __GNUC_PREREQ (5,0) && !defined PROF && CAN_USE_REGISTER_ASM_EBP
> > -# define OPTIMIZE_FOR_GCC_5
> > -#endif
> > -
>
> Unfortunately we can't remove the alternate syscall mechanism that is
> usd for GCC older than 5, since it is used for -Os and
> -fno-omit-frame-pointer (CAN_USE_REGISTER_ASM_EBP).
Here is the updated patch to remove __GNUC_PREREQ (5,0).
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-i386-Remove-build-support-for-GCC-older-than-GCC-6.patch
Type: application/x-patch
Size: 4466 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200406/c476f684/attachment.bin>
More information about the Libc-alpha
mailing list