OSDN Git Service

PR target/9468
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 2010 21:45:22 +0000 (21:45 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 2010 21:45:22 +0000 (21:45 +0000)
* configure.ac: Ignore --with-dwarf2 option on 32-bit hppa*-*-hpux*.
* configure: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167013 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 00bf1c0..70b8027 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR target/9468
+       * configure.ac: Ignore --with-dwarf2 option on 32-bit hppa*-*-hpux*.
+       * configure: Rebuild.
+
 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
 
        * system.h (strerror): Poison.
index ec4ba8e..5d89ebb 100755 (executable)
@@ -6990,7 +6990,25 @@ fi
 
 # Check whether --with-dwarf2 was given.
 if test "${with_dwarf2+set}" = set; then :
-  withval=$with_dwarf2; dwarf2="$with_dwarf2"
+  withval=$with_dwarf2;
+  case $target in
+    hppa*-*-hpux*)
+      case $target in
+       hppa*64*-*-*)
+          dwarf2="$with_dwarf2"
+         ;;
+       *)
+         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 debug format is not supported for this target, ignored" >&5
+$as_echo "$as_me: WARNING: dwarf2 debug format is not supported for this target, ignored" >&2;}
+         dwarf2=no
+         ;;
+      esac
+      ;;
+    *)
+      dwarf2="$with_dwarf2"
+      ;;
+  esac
+
 else
   dwarf2=no
 fi
@@ -17286,7 +17304,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 17289 "configure"
+#line 17307 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -17392,7 +17410,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 17395 "configure"
+#line 17413 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 0eb2d8b..18997be 100644 (file)
@@ -683,7 +683,24 @@ objc_boehm_gc='')
 
 AC_ARG_WITH(dwarf2,
 [  --with-dwarf2           force the default debug format to be DWARF 2],
-dwarf2="$with_dwarf2",
+[
+  case $target in
+    hppa*-*-hpux*)
+      case $target in
+       hppa*64*-*-*)
+          dwarf2="$with_dwarf2"
+         ;;
+       *)
+         AC_MSG_WARN([dwarf2 debug format is not supported for this target, ignored])
+         dwarf2=no
+         ;;
+      esac
+      ;;
+    *)
+      dwarf2="$with_dwarf2"
+      ;;
+  esac
+],
 dwarf2=no)
 
 AC_ARG_ENABLE(shared,