OSDN Git Service

2009-04-08 Ken Werner <ken.werner@de.ibm.com>
authorjjohnstn <jjohnstn>
Wed, 8 Apr 2009 20:00:01 +0000 (20:00 +0000)
committerjjohnstn <jjohnstn>
Wed, 8 Apr 2009 20:00:01 +0000 (20:00 +0000)
        * configure.in: Add square brackets for the array aliasing conftest.
        * configure: Regenerate.

newlib/ChangeLog
newlib/configure
newlib/configure.in

index 13ba84f..0ac1c73 100644 (file)
@@ -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.
index b345c10..2d07459 100755 (executable)
@@ -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'
index 48cb252..8c57497 100644 (file)
@@ -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])