Disable GCC 5 optimization when PROF is defined
commit23c4baa21484191be48a3335c8ab5e2f534a3799
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Oct 2015 16:07:46 +0000 (21 09:07 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Oct 2015 16:07:46 +0000 (21 09:07 -0700)
treee53eebca5f1f95d9baaeb672ca9a95f7cf3785b9
parentd8f7fcacd728a18a9d5cef1cc4f81432278e27c8
Disable GCC 5 optimization when PROF is defined

Since asm ("ebp") can't be used to put the 6th argument in %ebp for
syscall when compiling for profiling, we disable GCC 5 optimization
when PROF is defined.

* sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
New.  Defined for GCC 5 and above when not compiling for
profiling.
Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
ChangeLog
sysdeps/unix/sysv/linux/i386/sysdep.h