[BUILDROBOT] spu: left shift of negative value

Jan-Benedict Glaw jbglaw@lug-owl.de
Sat Sep 19 18:01:00 GMT 2015


Hi!

I just noticed that (for config_list.mk builds), current GCC errors
out at spu.c, see eg. build
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=469639 :

g++ -fno-PIE -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpc/include  -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../gcc/gcc/../libbacktrace   -o spu.o -MT spu.o -MMD -MP -MF ./.deps/spu.TPo ../../../gcc/gcc/config/spu/spu.c
../../../gcc/gcc/config/spu/spu.c: In function ‘void spu_expand_insv(rtx_def**)’:
../../../gcc/gcc/config/spu/spu.c:530:46: error: left shift of negative value [-Werror=shift-negative-value]
       maskbits = (-1ll << (32 - width - start));
                                              ^
../../../gcc/gcc/config/spu/spu.c:536:46: error: left shift of negative value [-Werror=shift-negative-value]
       maskbits = (-1ll << (64 - width - start));
                                              ^
cc1plus: all warnings being treated as errors
Makefile:2092: recipe for target 'spu.o' failed
make[2]: *** [spu.o] Error 1
make[2]: Leaving directory '/home/jbglaw/build-configlist_mk/spu-elf/build-gcc/mk/spu-elf/gcc'


-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:               http://www.eyrie.org/~eagle/faqs/questions.html
the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20150919/2a80aed0/attachment.sig>


More information about the Gcc mailing list