aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2010-11-21 21:45:22 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2010-11-21 21:45:22 +0000
commit091f0901de696066fc178f99d54a638331312433 (patch)
tree362e6bc74f8efd6037c6371fc476959b4fcc0670
parent60fcb1eecae65c11ad4bf3544f4efced470cb828 (diff)
downloadgcc-091f0901de696066fc178f99d54a638331312433.zip
gcc-091f0901de696066fc178f99d54a638331312433.tar.gz
gcc-091f0901de696066fc178f99d54a638331312433.tar.bz2
re PR target/9468 ([HP-UX] 3.2.1 ICE building libgcc muldi3.o when dwarf2 is enabled)
PR target/9468 * configure.ac: Ignore --with-dwarf2 option on 32-bit hppa*-*-hpux*. * configure: Rebuild. From-SVN: r167013
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure24
-rw-r--r--gcc/configure.ac19
3 files changed, 45 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 00bf1c0..70b8027 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/configure b/gcc/configure
index ec4ba8e..5d89ebb 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -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
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 0eb2d8b..18997be 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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,