]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/65351 (libiberty's pic version contains non-pic code on m32 darwin;...
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Apr 2015 09:57:46 +0000 (11:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Apr 2015 09:57:46 +0000 (11:57 +0200)
PR target/65351
config/
* picflag.m4: Append -mno-dynamic-no-pic for Darwin.
libiberty/
* configure: Regenerate.
libada/
* configure: Regenerate.
libgcc/
* configure: Regenerate.
gcc/
* configure: Regenerate.

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r221891

config/ChangeLog
config/picflag.m4
gcc/ChangeLog
gcc/configure
libada/ChangeLog
libada/configure
libgcc/ChangeLog
libgcc/configure
libiberty/ChangeLog
libiberty/configure

index 960cd5d3999fe6959915476aa26dee7836f1ab28..08b9c8d8bf311e0dd492d1e141ec32d1db9aef8d 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-07  Jakub Jelinek  <jakub@redhat.com>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/65351
+       * picflag.m4: Append -mno-dynamic-no-pic for Darwin.
+
 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
 
        PR bootstrap/65537
index 3bcdbf1de307fb1e918238d6e94f4ccfdc780819..836523d67c965168571b668f4959b5e2242f3694 100644 (file)
@@ -9,7 +9,9 @@ case "${$2}" in
     *-*-darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
-       $1=-fno-common
+       # Cancel any earlier -mdynamic-no-pic, as that makes
+       # the code not suitable for shared libraries.
+       $1='-fno-common -mno-dynamic-no-pic'
        ;;
     alpha*-dec-osf5*)
        # PIC is the default.
index c060283c73f655ba08cba56f9b12c0a6908b640f..7f3d4a326da714fcf37e87b2ab553e7c3759c722 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-07  Jakub Jelinek  <jakub@redhat.com>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/65351
+       * configure: Regenerate.
+
 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/65614
index 20dbce6973671493e0ceb3cd7ba0c07a62a07bce..ed948285282cc110742941f05bcc34f7823a2342 100755 (executable)
@@ -4788,7 +4788,9 @@ case "${target}" in
     *-*-darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
-       PICFLAG_FOR_TARGET=-fno-common
+       # Cancel any earlier -mdynamic-no-pic, as that makes
+       # the code not suitable for shared libraries.
+       PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic'
        ;;
     alpha*-dec-osf5*)
        # PIC is the default.
@@ -18147,7 +18149,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18150 "configure"
+#line 18152 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -18253,7 +18255,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18256 "configure"
+#line 18258 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 6aa56fba6653b9825c9cf42949c4203b1cb1ead0..5f3a40aa8899c85c37548cb0bd9d445b9682e6cd 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-07  Jakub Jelinek  <jakub@redhat.com>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/65351
+       * configure: Regenerate.
+
 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
 
        Update copyright years.
index 55d63fa1374432be3b96ba86698e18d1b3779223..1e169758d0b63da392b5a36634b8ffa9e0c9e187 100755 (executable)
@@ -2826,7 +2826,9 @@ case "${host}" in
     *-*-darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
-       PICFLAG=-fno-common
+       # Cancel any earlier -mdynamic-no-pic, as that makes
+       # the code not suitable for shared libraries.
+       PICFLAG='-fno-common -mno-dynamic-no-pic'
        ;;
     alpha*-dec-osf5*)
        # PIC is the default.
index 959b36e0f610b6a3dea359de757175977ca5cd09..6856ff2a3264310e157d1001884484bcd2964669 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-07  Jakub Jelinek  <jakub@redhat.com>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/65351
+       * configure: Regenerate.
+
 2015-03-25  Chung-Lin Tang  <cltang@codesourcery.com>
 
        * config.host (nios2-*-linux*): Remove 'extra_parts' setting.
index 9d567f9d48c4ad0db74c0066d2ef2ac8f2f392fb..54e8712b49e81cee6f92c9fb2e42d6d56fd13742 100644 (file)
@@ -2305,7 +2305,9 @@ case "${host}" in
     *-*-darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
-       PICFLAG=-fno-common
+       # Cancel any earlier -mdynamic-no-pic, as that makes
+       # the code not suitable for shared libraries.
+       PICFLAG='-fno-common -mno-dynamic-no-pic'
        ;;
     alpha*-dec-osf5*)
        # PIC is the default.
index 22e3f8504b3aedd6663b460c50d31f98366d0f43..b71f4922962319110c377e5a9e66a3154fc0109b 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-07  Jakub Jelinek  <jakub@redhat.com>
+           Iain Sandoe  <iain@codesourcery.com>
+
+       PR target/65351
+       * configure: Regenerate.
+
 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
 
        * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
index 2007ecc76b1f6055f6523864c3cdf0ebcaf0bbda..eaed56e3e1bbc02fe52c283e6e64d80f5602efa2 100755 (executable)
@@ -4887,7 +4887,9 @@ case "${host}" in
     *-*-darwin*)
        # PIC is the default on this platform
        # Common symbols not allowed in MH_DYLIB files
-       PICFLAG=-fno-common
+       # Cancel any earlier -mdynamic-no-pic, as that makes
+       # the code not suitable for shared libraries.
+       PICFLAG='-fno-common -mno-dynamic-no-pic'
        ;;
     alpha*-dec-osf5*)
        # PIC is the default.