[BZ #5246] Conditionalize use of PTR_DEMANGLE.
authorThomas Schwinge <thomas@codesourcery.com>
Sun, 4 Nov 2012 20:46:30 +0000 (21:46 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 4 Nov 2012 20:46:30 +0000 (21:46 +0100)
ChangeLog
NEWS
csu/libc-start.c
sysdeps/mach/hurd/i386/____longjmp_chk.S

index 9b5b8f79bafdeb13948266ffa1eb41e8f1f9e372..594a7d6b139c4a03a7f19992f7c6c829aec77e92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
+       PTR_DEMANGLE.
+
+       [BZ #5246]
+       * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
+       PTR_DEMANGLE.
+
 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #14797]
diff --git a/NEWS b/NEWS
index a6d757f153bc6c9e5646ff7da163948f952d7257..41f4574c08e3dc0813e238b7873c7eba1d14febc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,16 +9,16 @@ Version 2.17
 
 * The following bugs are resolved with this release:
 
-  1349, 3439, 3479, 5044, 5298, 5400, 6530, 6778, 6808, 9685, 9914, 10014,
-  10038, 10631, 11438, 11607, 11638, 12140, 13412, 13542, 13601, 13629,
-  13679, 13696, 13717, 13741, 13939, 13966, 14042, 14047, 14090, 14150,
-  14151, 14152, 14154, 14157, 14166, 14173, 14195, 14237, 14251, 14252,
-  14283, 14298, 14303, 14307, 14328, 14331, 14336, 14337, 14347, 14349,
-  14376, 14417, 14459, 14476, 14477, 14505, 14510, 14516, 14518, 14519,
-  14530, 14532, 14538, 14543, 14544, 14545, 14557, 14562, 14568, 14576,
-  14579, 14583, 14587, 14595, 14602, 14610, 14621, 14638, 14645, 14648,
-  14652, 14660, 14661, 14669, 14683, 14694, 14716, 14743, 14767, 14783,
-  14784, 14785, 14796, 14797.
+  1349, 3439, 3479, 5044, 5246, 5298, 5400, 6530, 6778, 6808, 9685, 9914,
+  10014, 10038, 10631, 11438, 11607, 11638, 12140, 13412, 13542, 13601,
+  13629, 13679, 13696, 13717, 13741, 13939, 13966, 14042, 14047, 14090,
+  14150, 14151, 14152, 14154, 14157, 14166, 14173, 14195, 14237, 14251,
+  14252, 14283, 14298, 14303, 14307, 14328, 14331, 14336, 14337, 14347,
+  14349, 14376, 14417, 14459, 14476, 14477, 14505, 14510, 14516, 14518,
+  14519, 14530, 14532, 14538, 14543, 14544, 14545, 14557, 14562, 14568,
+  14576, 14579, 14583, 14587, 14595, 14602, 14610, 14621, 14638, 14645,
+  14648, 14652, 14660, 14661, 14669, 14683, 14694, 14716, 14743, 14767,
+  14783, 14784, 14785, 14796, 14797.
 
 * Support for STT_GNU_IFUNC symbols added for s390 and s390x.
   Optimized versions of memcpy, memset, and memcmp added for System z10 and
index e335b64d15b544a6154080ce29d745d41b7abfd8..e890535e334291c728154cc273d48f6da3639d77 100644 (file)
@@ -272,7 +272,9 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
       result = 0;
 # ifdef SHARED
       unsigned int *ptr = __libc_pthread_functions.ptr_nthreads;
+#  ifdef PTR_DEMANGLE
       PTR_DEMANGLE (ptr);
+#  endif
 # else
       extern unsigned int __nptl_nthreads __attribute ((weak));
       unsigned int *const ptr = &__nptl_nthreads;
index f499fbd1e713af4d6b8fb41645e7c18c4f475acd..39282d3174d381b0050539ef4567f1b12d2c0e77 100644 (file)
@@ -52,8 +52,10 @@ ENTRY (____longjmp_chk)
        /* Get the stack pointer.  */
        movl    (JB_SP*4)(%ecx), %edi
        cfi_undefined(%edi)
+#ifdef PTR_DEMANGLE
        PTR_DEMANGLE (%edx)
        PTR_DEMANGLE (%edi)
+#endif
 
        cmpl    %edi, %esp
        /* Jumping to a higher-address frame is always allowed.  */