summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-04 23:30:47 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2008-03-04 23:30:47 +0000
commitd4f869a65ec35762aa11c2f5dfefb432ab127e71 (patch)
tree10bca34846e5b90e8d43be8fd37ad78d0c931db6 /gcc/configure
parentea1a85df8621cbe8254e89f57f734ce76c95c498 (diff)
downloadgcc-d4f869a65ec35762aa11c2f5dfefb432ab127e71.tar.gz
PR target/35222
* configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions on hpux10. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132876 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure24
1 files changed, 23 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index ea8549a1226..454e71a974d 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -12200,13 +12200,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.