[patch] Fix array aliasing conftest
Ken Werner
ken@linux.vnet.ibm.com
Wed Apr 8 18:04:00 GMT 2009
Hi,
while looking at the autoconf scripts I noticed newlibs check for array
aliasing support (_HAVE_ARRAY_ALIASING). The configure.in specifies the
following conftest:
char x[3] = { 'a', 'b', 'c' };
extern char y[2] __attribute__((alias ("x+1")));
This looks valid but autoconf strips the square brackets. The generated
configure states:
char x3 = { 'a', 'b', 'c' };
extern char y2 __attribute__((alias ("x+1")));
I think this has never compiled as intended. Adding additional square brackets
in the configure.in seem to fix that. A patch is attached.
Regards
Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.patch
Type: text/x-patch
Size: 730 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20090408/ed5a4410/attachment.bin>
More information about the Newlib
mailing list