mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 04:31:03 +00:00
i386: Disable check_consistency for GCC 5 and above [BZ #25788]
check_consistency should be disabled for GCC 5 and above since there is no fixed PIC register in GCC 5 and above. Check __GNUC_PREREQ (5,0) instead OPTIMIZE_FOR_GCC_5 since OPTIMIZE_FOR_GCC_5 is false with -fno-omit-frame-pointer.
This commit is contained in:
parent
f9ac84f92f
commit
f90a7e96df
@ -580,8 +580,9 @@ struct libc_do_syscall_args
|
|||||||
# define EXTRAVAR_5
|
# define EXTRAVAR_5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Consistency check for position-independent code. */
|
/* Consistency check for position-independent code. Disabled for GCC 5
|
||||||
#if defined __PIC__ && !defined OPTIMIZE_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() \
|
# define check_consistency() \
|
||||||
({ int __res; \
|
({ int __res; \
|
||||||
__asm__ __volatile__ \
|
__asm__ __volatile__ \
|
||||||
|
Loading…
Reference in New Issue
Block a user