]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/35222 (EH output contains procedure label without P' selector)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 12 Mar 2008 00:56:34 +0000 (00:56 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 12 Mar 2008 00:56:34 +0000 (00:56 +0000)
PR target/35222
* configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
on hpux10.
* configure: Rebuilt.

From-SVN: r133131

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 86cdf281a0bcdf3390ce65ab2fc8ba7abc9b2462..bda46078084a7f5a4719e2c63a9aacdca0e67499 100644 (file)
@@ -1,3 +1,10 @@
+2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR target/35222
+       * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
+       on hpux10.
+       * configure: Rebuilt.
+
 2008-03-09  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        Backport from mainline:
index 8b2d1965f44637249928aea7d92cad420f0c4b45..d15637e546f708ad5002a975c0678add53571f70 100755 (executable)
@@ -12153,13 +12153,35 @@ objext='.o'
 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
 if test "${enable_sjlj_exceptions+set}" = set; then
   enableval="$enable_sjlj_exceptions"
+  case $target in
+  *-*-hpux10*)
+    if test $enableval != yes; then
+      { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
+echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
+      enableval=yes
+    fi
+    ;;
+esac
+force_sjlj_exceptions=yes
+else
+  case $target in
+  *-*-hpux10*)
+    force_sjlj_exceptions=yes
+    enableval=yes
+    ;;
+  *)
+    force_sjlj_exceptions=no
+    ;;
+esac
+fi;
+if test $force_sjlj_exceptions = yes; then
   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
 
 cat >>confdefs.h <<_ACEOF
 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
 _ACEOF
 
-fi;
+fi
 
 # For platforms with the unwind ABI which includes an unwind library,
 # libunwind, we can choose to use the system libunwind.
index fad4add09bd15f79ba3997539a018eaae4c549f8..c4ee27ae9619562ee2df487366d1d73b1138425d 100644 (file)
@@ -1212,9 +1212,29 @@ AC_SUBST(objext)
 AC_ARG_ENABLE(sjlj-exceptions,
 [  --enable-sjlj-exceptions
                           arrange to use setjmp/longjmp exception handling],
-[sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
-AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
-  [Define 0/1 to force the choice for exception handling model.])])
+[case $target in
+  *-*-hpux10*)
+    if test $enableval != yes; then
+      AC_MSG_WARN([dwarf2 exceptions not supported, sjlj exceptions forced])
+      enableval=yes
+    fi
+    ;;
+esac
+force_sjlj_exceptions=yes],
+[case $target in
+  *-*-hpux10*)
+    force_sjlj_exceptions=yes
+    enableval=yes
+    ;;
+  *)
+    force_sjlj_exceptions=no
+    ;;
+esac])
+if test $force_sjlj_exceptions = yes; then
+  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
+  AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
+    [Define 0/1 to force the choice for exception handling model.])
+fi
 
 # For platforms with the unwind ABI which includes an unwind library,
 # libunwind, we can choose to use the system libunwind.