Bug 16931 - FTBFS in gas/config/tc-m68k.c with gcc 4.9
Summary: FTBFS in gas/config/tc-m68k.c with gcc 4.9
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-11 20:17 UTC by Dan Horak
Modified: 2014-05-11 21:25 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Horak 2014-05-11 20:17:54 UTC
build of binutils 2.24 with gcc 4.9 (gcc version 4.9.0 20140506 (Red Hat 4.9.0-3)) fails with

...
gcc -DHAVE_CONFIG_H -I. -I../../gas  -I. -I../../gas -I../bfd -I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd -DLOCALEDIR="\"/usr/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -MT tc-m68k.o -MD -MP -MF .deps/tc-m68k.Tpo -c -o tc-m68k.o `test -f 'config/tc-m68k.c' || echo '../../gas/'`config/tc-m68k.c
../../gas/config/tc-m68k.c: In function 'md_assemble':
../../gas/config/tc-m68k.c:4516:36: error: array subscript is below array bounds [-Werror=array-bounds]
   n = (the_ins.numo - the_ins.fragb[n - 1].fragoff);
                                    ^
cc1: all warnings being treated as errors
make[4]: *** [tc-m68k.o] Error 1
Comment 1 Andreas Schwab 2014-05-11 21:25:38 UTC
This is a gcc bug.