Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog5
-rwxr-xr-xnewlib/configure4
-rw-r--r--newlib/configure.in4
3 files changed, 9 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 13ba84fb1..0ac1c7313 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-08 Ken Werner <ken.werner@de.ibm.com>
+
+ * configure.in: Add square brackets for the array aliasing conftest.
+ * configure: Regenerate.
+
2009-04-06 Mike Burgess <wizardsguild@earthlink.net>
* libc/string/strncasecmp.c: Optimized rewrite.
diff --git a/newlib/configure b/newlib/configure
index b345c10ca..2d0745931 100755
--- a/newlib/configure
+++ b/newlib/configure
@@ -11908,8 +11908,8 @@ if test "${libc_cv_array_aliasing+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat > conftest.c <<EOF
-char x3 = { 'a', 'b', 'c' };
-extern char y2 __attribute__((alias ("x+1")));
+char x[3] = { 'a', 'b', 'c' };
+extern char y[2] __attribute__((alias ("x+1")));
EOF
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
1>&5'
diff --git a/newlib/configure.in b/newlib/configure.in
index 48cb2526f..8c5749798 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -398,8 +398,8 @@ fi
AC_CACHE_CHECK(for array aliasing support,
libc_cv_array_aliasing, [dnl
cat > conftest.c <<EOF
-char x[3] = { 'a', 'b', 'c' };
-extern char y[2] __attribute__((alias ("x+1")));
+char x[[3]] = { 'a', 'b', 'c' };
+extern char y[[2]] __attribute__((alias ("x+1")));
EOF
if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c
1>&AS_MESSAGE_LOG_FD])