config/tc-avr.c (md_section_align): Append UL for -1 to avoid the latest gcc's warning
authorChen Gang <gang.chen.5i5j@gmail.com>
Sat, 5 Sep 2015 08:02:08 +0000 (16:02 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Tue, 8 Sep 2015 13:43:35 +0000 (21:43 +0800)
commitdce55a03c1cd7205cb8157f7cc80c76073d86047
treef5dae401180d27fc995a5376969f9d5a0d9d6cd7
parent5707d2add464b6787ec615825e00b2407ba8a82b
config/tc-avr.c (md_section_align): Append UL for -1 to avoid the latest gcc's warning

The related warning is:

  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="\"/upstream/release-avr32/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I../../binutils-gdb/gas/../zlib -g -O2 -MT tc-avr.o -MD -MP -MF .deps/tc-avr.Tpo -c -o tc-avr.o `test -f 'config/tc-avr.c' || echo '../../binutils-gdb/gas/'`config/tc-avr.c
../../binutils-gdb/gas/config/tc-avr.c: In function ‘md_section_align’:
../../binutils-gdb/gas/config/tc-avr.c:1233:43: error: left shift of negative value [-Werror=shift-negative-value]
     return ((addr + (1 << align) - 1) & (-1 << align));
                                             ^

2015-09-05  Chen Gang  <gang.chen.5i5j@gmail.com>

* config/tc-avr.c (md_section_align): Append UL for -1 to avoid
the latest gcc's warning.
gas/ChangeLog
gas/config/tc-avr.c
This page took 0.024907 seconds and 4 git commands to generate.