summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-08 15:03:50 +0000
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-08 15:03:50 +0000
commitd8ea82e6d65dcad35a28aef299f215d8f941e3d6 (patch)
tree8be67938127804f3b6bc8ec0b3ab3e7d82a21582
parent7a468236d23ceb6fa13337aae68e8790dac61cfe (diff)
downloadgcc-d8ea82e6d65dcad35a28aef299f215d8f941e3d6.tar.gz
* aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
variable. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61047 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/aclocal.m46
-rwxr-xr-xgcc/configure10
3 files changed, 14 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e887641afd7..a28e0039c0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-08 Andreas Schwab <schwab@suse.de>
+
+ * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
+ variable.
+ * configure: Regenerated.
+
2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (output_logical_op): Replace byte/word
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 3ae8b83de80..03dd5419b19 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -1631,14 +1631,14 @@ AC_DEFUN(gcc_AC_INITFINI_ARRAY,
[ --enable-initfini-array use .init_array/.fini_array sections],
[], [
AC_CACHE_CHECK(for .preinit_array/.init_array/.fini_array support,
- gcc_cv_initfinit_array, [dnl
+ gcc_cv_initfini_array, [dnl
AC_TRY_RUN([
static int x = -1;
int main (void) { return x; }
int foo (void) { x = 0; }
int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;],
- [gcc_cv_initfinit_array=yes], [gcc_cv_initfinit_array=no],
- [gcc_cv_initfinit_array=no])])
+ [gcc_cv_initfini_array=yes], [gcc_cv_initfini_array=no],
+ [gcc_cv_initfini_array=no])])
enable_initfini_array=$gcc_cv_initfini_array
])
if test $enable_initfini_array = yes; then
diff --git a/gcc/configure b/gcc/configure
index 9845a1ec40d..4e876410515 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -5113,11 +5113,11 @@ else
echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
echo "configure:5116: checking for .preinit_array/.init_array/.fini_array support" >&5
-if eval "test \"`echo '$''{'gcc_cv_initfinit_array'+set}'`\" = set"; then
+if eval "test \"`echo '$''{'gcc_cv_initfini_array'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
- gcc_cv_initfinit_array=no
+ gcc_cv_initfini_array=no
else
cat > conftest.$ac_ext <<EOF
#line 5124 "configure"
@@ -5130,19 +5130,19 @@ int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
EOF
if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
- gcc_cv_initfinit_array=yes
+ gcc_cv_initfini_array=yes
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
- gcc_cv_initfinit_array=no
+ gcc_cv_initfini_array=no
fi
rm -fr conftest*
fi
fi
-echo "$ac_t""$gcc_cv_initfinit_array" 1>&6
+echo "$ac_t""$gcc_cv_initfini_array" 1>&6
enable_initfini_array=$gcc_cv_initfini_array
fi