diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-04-07 06:44:37 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-04-07 06:44:37 -0700 |
commit | 93a0959ef261c92b5d9c337f1e4cb64bbe453a9a (patch) | |
tree | b8c00ba71001f784599d6596ad27c79544ad3489 /sysdeps/unix/sysv | |
parent | 10b2cdc3b3a9aab153e07bb7f8e1765dc3cd01fa (diff) | |
download | glibc-93a0959ef261c92b5d9c337f1e4cb64bbe453a9a.tar glibc-93a0959ef261c92b5d9c337f1e4cb64bbe453a9a.tar.gz glibc-93a0959ef261c92b5d9c337f1e4cb64bbe453a9a.tar.bz2 glibc-93a0959ef261c92b5d9c337f1e4cb64bbe453a9a.zip |
i386: Remove build support for GCC older than GCC 6
Since GCC 6.2 or later is required to build glibc, remove build support
for GCC older than GCC 6.
Testd with GCC 6.4 and GCC 9.3.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/sysdep.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 6671afe65e..f6847a67e3 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -48,7 +48,7 @@ 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 +#if !defined PROF && CAN_USE_REGISTER_ASM_EBP # define OPTIMIZE_FOR_GCC_5 #endif @@ -580,21 +580,6 @@ struct libc_do_syscall_args # define EXTRAVAR_5 #endif -/* Consistency check for position-independent code. Disabled for GCC 5 - and above since there is no fixed PIC register in GCC 5 and above. */ -#if defined __PIC__ && !__GNUC_PREREQ (5,0) -# define check_consistency() \ - ({ int __res; \ - __asm__ __volatile__ \ - (LOAD_PIC_REG_STR (cx) ";" \ - "subl %%ebx, %%ecx;" \ - "je 1f;" \ - "ud2;" \ - "1:\n" \ - : "=c" (__res)); \ - __res; }) -#endif - #endif /* __ASSEMBLER__ */ |