This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

h8300-rtems: error: left shift of negative value


While tracking down another recent bug fÃr h8/300 in GCC, I stumbled
over this one when building Binutils with a recent gcc-6.0:

make[3]: Entering directory `/home/jbglaw/src/toolchain/build/gas'
gcc -DHAVE_CONFIG_H -I. -I../../binutils-gdb/gas  -I. -I../../binutils-gdb/gas -I../bfd -I../../binutils-gdb/gas/config -I../../binutils-gdb/gas/../include -I../../binutils-gdb/gas/.. -I../../binutils-gdb/gas/../bfd -DLOCALEDIR="\"/home/jbglaw/src/toolchain/install/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I../../binutils-gdb/gas/../zlib -g -O2 -MT tc-h8300.o -MD -MP -MF .deps/tc-h8300.Tpo -c -o tc-h8300.o `test -f 'config/tc-h8300.c' || echo '../../binutils-gdb/gas/'`config/tc-h8300.c
../../binutils-gdb/gas/config/tc-h8300.c: In function âmd_section_alignâ:
../../binutils-gdb/gas/config/tc-h8300.c:2259:43: error: left shift of negative value [-Werror=shift-negative-value]
   return ((size + (1 << align) - 1) & (-1 << align));
cc1: all warnings being treated as errors
make[3]: *** [tc-h8300.o] Error 1


      Jan-Benedict Glaw              +49-172-7608481
Signature of:          GDB has a 'break' feature; why doesn't it have 'fix' too?
the second  :

Attachment: signature.asc
Description: Digital signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]