binutils-2.20 gas arm-linux compilation bug

View: New views
2 Messages — Rating Filter:   Alert me  

binutils-2.20 gas arm-linux compilation bug

by dannys42 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI, in compiling gas with binutils-2.20, I get the following error,
which then aborts the build:

gcc -DHAVE_CONFIG_H -I. -I../../gas  -I. -I../../gas -I../bfd
-I../../gas/config -I../../gas/../include -I../../gas/..
-I../../gas/../bfd
-DLOCALEDIR="\"//opt/ltrx/ixp42x/host/usr/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT tc-arm.o -MD
-MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' ||
echo '../../gas/'`config/tc-arm.c
cc1: warnings being treated as errors
../../gas/config/tc-arm.c: In function 'make_mapping_symbol':
../../gas/config/tc-arm.c:2489: warning: empty body in an if-statement


I've configured with:
mkdir arm-linux
cd arm-linux
../configure \
     --target=arm-linux \
     --prefix=%{LTRX_HOST_DIR}/usr \
     --with-lib-path=%{LTRX_HOST_DIR}/lib


I don't get this error at all in binutils-2.19.  (Yes, it still does a
-Werror, however).

I'm not sure what the proper fix for this is.  But apparently there's
been significant changes to the tc-arm.c file between the two revs.



_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

Re: binutils-2.20 gas arm-linux compilation bug

by Alan Modra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 16, 2009 at 10:38:59AM -0700, Danny Sung wrote:
> ../../gas/config/tc-arm.c:2489: warning: empty body in an if-statement

This has now been fixed.

--
Alan Modra
Australia Development Lab, IBM


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils