]> gcc.gnu.org Git - gcc.git/commitdiff
sync config/* from binutils
authorAlan Modra <amodra@gmail.com>
Wed, 7 Dec 2016 23:16:03 +0000 (09:46 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 7 Dec 2016 23:16:03 +0000 (09:46 +1030)
* elf.m4: Revert 2016-06-21 change.
* picflag.m4: Likewise.  Revert 2016-04-30 change too.
* override.m4 (AC_PROG_LEX): Import 2016-01-18 binutils fix
for PR binutils/19481.

From-SVN: r243417

config/ChangeLog
config/elf.m4
config/override.m4
config/picflag.m4

index a823d21626bb51edc8e2878497bdcbcab7cfa80a..35ddacf6d78a2fe8c7899c62cc58334eb6cf0807 100644 (file)
@@ -1,3 +1,10 @@
+2016-12-08  Alan Modra  <amodra@gmail.com>
+
+       * elf.m4: Revert 2016-06-21 change.
+       * picflag.m4: Likewise.  Revert 2016-04-30 change too.
+       * override.m4 (AC_PROG_LEX): Import 2016-01-18 binutils fix
+       for PR binutils/19481.
+
 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
 
        * bootstrap-asan.mk: Replace LSAN_OPTIONS=detect_leaks=0 with
index 5f5cd88da09f15e1986ae27ffcb6d0d20b36a808..1772a44318e817ea6917e584e7121ea6dd174bc9 100644 (file)
@@ -17,7 +17,7 @@ target_elf=no
 case $target in
   *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
   *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
-  alpha*-dec-osf* | hppa[[12]]*-*-hpux* | \
+  alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux* | \
   nvptx-*-none)
     target_elf=no
     ;;
index 52bd1c3d1b82469bf38c11dddf5fbec82878820f..b5ce6545ab69bb0b7bbfc0cc528b4eabad971111 100644 (file)
@@ -101,4 +101,16 @@ m4_define([_AC_CHECK_DECLS],
 
 ])
 
+dnl If flex/lex are not found, the top level configure sets LEX to
+dnl "/path_to/missing flex".  When AC_PROG_LEX tries to find the flex
+dnl output file, it calls $LEX to do so, but the current lightweight
+dnl "missing" won't create a file.  This results in an error.
+dnl Avoid calling the bulk of AC_PROG_LEX when $LEX is "missing".
+AC_DEFUN_ONCE([AC_PROG_LEX],
+[AC_CHECK_PROGS(LEX, flex lex, :)
+case "$LEX" in
+  :|*"missing "*) ;;
+  *) _AC_PROG_LEX_YYTEXT_DECL ;;
+esac])
+
 ])
index 614421d2a9490b9210b03a5ef4f13c266a892728..2f5b9721eb2fa8f6058beb9a15585612df49bb13 100644 (file)
@@ -27,6 +27,10 @@ case "${$2}" in
        ;;
     i[[34567]]86-*-mingw* | x86_64-*-mingw*)
        ;;
+    i[[34567]]86-*-interix[[3-9]]*)
+       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+       # Instead, we relocate shared libraries at runtime.
+       ;;
     i[[34567]]86-*-nto-qnx*)
        # QNX uses GNU C++, but need to define -shared option too, otherwise
        # it will coredump.
@@ -57,7 +61,8 @@ case "${$2}" in
        $1=-fpic
        ;;
     # FIXME: Simplify to sh*-*-netbsd*?
-    sh-*-netbsdelf* | shl*-*-netbsdelf*)
+    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
+      sh64-*-netbsd* | sh64l*-*-netbsd*)
        $1=-fpic
        ;;
     # Default to -fPIC unless specified otherwise.
This page took 0.065192 seconds and 5 git commands to generate.