]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove ARM __GNUC_PREREQ(4,4) conditionals.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 14 Nov 2014 18:39:33 +0000 (18:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 14 Nov 2014 18:39:33 +0000 (18:39 +0000)
This patch removes conditionals in ARM code on __GNUC_PREREQ(4,4),
which were already obsolete even before the move from 4.4 to 4.6 as
minimum GCC version for building glibc.

Tested for ARM that installed shared libraries are unchanged by this
patch.

* sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
Make definition conditional only on [PROF].
[PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
definition.
[__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
[!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.

ChangeLog
sysdeps/arm/sysdep.h

index a5f2fac863ba05255dfae08a41089ec3b5eb242e..f84b92e940171499fb4d262f975cdf78ff4dca8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
+       Make definition conditional only on [PROF].
+       [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
+       definition.
+       [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
+       [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
+
        * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
        !__GNUC__].
        * include/signal.h (__sigpause): Move declaration above call to
index 8614b4a0581df440dc02eaa5fd762944bc7412c9..9225293e32ba54782eae34ce00228f70d2f1246d 100644 (file)
 
 /* If compiled for profiling, call `mcount' at the start of each function.  */
 #ifdef PROF
-/* Call __gnu_mcount_nc if GCC >= 4.4.  */
-#if __GNUC_PREREQ(4,4)
+/* Call __gnu_mcount_nc (GCC >= 4.4).  */
 #define CALL_MCOUNT                                    \
        push    {lr};                                   \
        cfi_adjust_cfa_offset (4);                      \
        bl      PLTJMP(mcount);                         \
        cfi_adjust_cfa_offset (-4);                     \
        cfi_restore (lr)
-#else /* else call _mcount */
-#define CALL_MCOUNT                                    \
-       push    {lr};                                   \
-       cfi_adjust_cfa_offset (4);                      \
-       cfi_rel_offset (lr, 0);                         \
-       bl      PLTJMP(mcount);                         \
-       pops    {lr};                                   \
-       cfi_adjust_cfa_offset (-4);                     \
-       cfi_restore (lr)
-#endif
 #else
 #define CALL_MCOUNT            /* Do nothing.  */
 #endif
    on this system, the asm identifier `syscall_error' intrudes on the
    C name space.  Make sure we use an innocuous name.  */
 #define        syscall_error   __syscall_error
-#if __GNUC_PREREQ(4,4)
 #define mcount         __gnu_mcount_nc
-#else
-#define mcount         _mcount
-#endif
 
 /* Tag_ABI_align8_preserved: This code preserves 8-byte
    alignment in any callee.  */