libiberty: demangler crash with missing :? or fold expression component.
[external/binutils.git] / libiberty / configure
index bde78ff..5c4dda5 100755 (executable)
@@ -4398,7 +4398,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_libiberty_warn_cflags=
 save_CFLAGS="$CFLAGS"
 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
-                         -Wstrict-prototypes; do
+                         -Wstrict-prototypes \
+                         -Wshadow=local; do
   # Do the check with the no- prefix removed since gcc silently
   # accepts any -Wno-* option on purpose
   case $real_option in
@@ -5145,8 +5146,7 @@ case "${host}" in
        PICFLAG=-fpic
        ;;
     # FIXME: Simplify to sh*-*-netbsd*?
-    sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
-      sh64-*-netbsd* | sh64l*-*-netbsd*)
+    sh-*-netbsdelf* | shl*-*-netbsdelf*)
        PICFLAG=-fpic
        ;;
     # Default to -fPIC unless specified otherwise.