[kaffe] CVS kaffe (guilhem): Fix usage of sigaltstack on irix.

Kaffe CVS cvs-commits at kaffe.org
Tue Mar 22 07:41:51 PST 2005


PatchSet 5590 
Date: 2005/03/22 15:35:49
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fix usage of sigaltstack on irix.

Members: 
	ChangeLog:1.3763->1.3764 
	configure:1.438->1.439 
	configure.ac:1.128->1.129 
	config/config.h.in:1.138->1.139 
	config/mips/irix5/config.frag:INITIAL->1.3 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3763 kaffe/ChangeLog:1.3764
--- kaffe/ChangeLog:1.3763	Tue Mar 22 14:03:07 2005
+++ kaffe/ChangeLog	Tue Mar 22 15:35:49 2005
@@ -1,5 +1,14 @@
 2005-03-22  Guilhem Lavaux  <guilhem at kaffe.org>
 
+	* config/config.h.in, configure: Regenerated.
+
+	* config/mips/irix5/config.frag: Added need_stack_end=yes
+
+	* configure.ac: Check for need_stack_end in config.frag and
+	define SIGALTSTACK_NEEDS_END.
+
+2005-03-22  Guilhem Lavaux  <guilhem at kaffe.org>
+
 	* config/mips/common.h: Disabled atomicity.h
 
 2005-03-22  Guilhem Lavaux  <guilhem at kaffe.org>
Index: kaffe/configure
diff -u kaffe/configure:1.438 kaffe/configure:1.439
--- kaffe/configure:1.438	Tue Mar 22 04:20:24 2005
+++ kaffe/configure	Tue Mar 22 15:35:53 2005
@@ -9497,6 +9497,14 @@
    { (exit 1); exit 1; }; }
 fi
 
+if test x"$needs_altstack_end_pointer" = x"yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define SIGALTSTACK_NEEDS_END 1
+_ACEOF
+
+fi
+
 
 
 case "$dynamic_libraries,$vm_dynamic_library" in
@@ -10071,7 +10079,7 @@
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 10074 "configure"' > conftest.$ac_ext
+  echo '#line 10082 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -11428,7 +11436,7 @@
 
 
 # Provide some information about the compiler.
-echo "$as_me:11431:" \
+echo "$as_me:11439:" \
      "checking for Fortran 77 compiler version" >&5
 ac_compiler=`set X $ac_compile; echo $2`
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -12501,11 +12509,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:12504: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:12512: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:12508: \$? = $ac_status" >&5
+   echo "$as_me:12516: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -12756,11 +12764,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:12759: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:12767: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:12763: \$? = $ac_status" >&5
+   echo "$as_me:12771: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -12816,11 +12824,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:12819: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:12823: \$? = $ac_status" >&5
+   echo "$as_me:12831: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -15020,7 +15028,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 15023 "configure"
+#line 15031 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15118,7 +15126,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 15121 "configure"
+#line 15129 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -17342,11 +17350,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17345: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17349: \$? = $ac_status" >&5
+   echo "$as_me:17357: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -17402,11 +17410,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17405: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17413: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:17409: \$? = $ac_status" >&5
+   echo "$as_me:17417: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -18769,7 +18777,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 18772 "configure"
+#line 18780 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -18867,7 +18875,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 18870 "configure"
+#line 18878 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -19722,11 +19730,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:19725: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19733: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:19729: \$? = $ac_status" >&5
+   echo "$as_me:19737: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -19782,11 +19790,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:19785: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19793: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:19789: \$? = $ac_status" >&5
+   echo "$as_me:19797: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -21846,11 +21854,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:21849: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:21857: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:21853: \$? = $ac_status" >&5
+   echo "$as_me:21861: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -22101,11 +22109,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:22104: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:22112: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:22108: \$? = $ac_status" >&5
+   echo "$as_me:22116: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -22161,11 +22169,11 @@
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:22164: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:22172: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:22168: \$? = $ac_status" >&5
+   echo "$as_me:22176: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -24365,7 +24373,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 24368 "configure"
+#line 24376 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -24463,7 +24471,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 24466 "configure"
+#line 24474 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.128 kaffe/configure.ac:1.129
--- kaffe/configure.ac:1.128	Tue Mar 22 04:20:31 2005
+++ kaffe/configure.ac	Tue Mar 22 15:35:56 2005
@@ -274,6 +274,10 @@
 	AC_MSG_ERROR(Configuration $Khost_cpu-$Khost_os not supported)
 fi
 
+if test x"$needs_altstack_end_pointer" = x"yes"; then
+	AC_DEFINE(SIGALTSTACK_NEEDS_END, 1, [Defined if sigaltstack needs the stackbase+size pointer instead of stackbase])
+fi
+
 dnl =========================================================================
 
 dnl =========================================================================
Index: kaffe/config/config.h.in
diff -u kaffe/config/config.h.in:1.138 kaffe/config/config.h.in:1.139
--- kaffe/config/config.h.in:1.138	Mon Mar 21 17:15:09 2005
+++ kaffe/config/config.h.in	Tue Mar 22 15:35:59 2005
@@ -778,6 +778,10 @@
 /* Define as the return type of signal handlers (`int' or `void'). */
 #undef RETSIGTYPE
 
+/* Defined if sigaltstack needs the stackbase+size pointer instead of
+   stackbase */
+#undef SIGALTSTACK_NEEDS_END
+
 /* The size of a `int', as computed by sizeof. */
 #undef SIZEOF_INT
 
===================================================================
Checking out kaffe/config/mips/irix5/config.frag
RCS:  /home/cvs/kaffe/kaffe/config/mips/irix5/config.frag,v
VERS: 1.3
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/config/mips/irix5/config.frag	Tue Mar 22 15:41:51 2005
@@ -0,0 +1,6 @@
+#
+# Mips/IRIX configuration
+#
+target_cpu=mips
+target_os=irix5
+needs_altstack_end_pointer=yes




More information about the kaffe mailing list