From 983a33fa7d50aa8bcff1e0f183388c74b1b5e213 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 15 Oct 2015 13:35:40 -0700 Subject: Add comments for GCC 5 requirement * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for GCC 5 requirement. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/i386/sysdep.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 77878ded96..6f103e8632 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-10-15 H.J. Lu + + * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for + GCC 5 requirement. + 2015-10-15 Joseph Myers * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 5324da6329..76db7b8ab9 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -227,6 +227,10 @@ extern int __syscall_error (int) attribute_hidden __attribute__ ((__regparm__ (1))); +/* 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. */ + #if !__GNUC_PREREQ (5,0) /* We need some help from the assembler to generate optimal code. We define some macros here which later will be used. */ -- cgit 1.4.1