tilepro-linux: Broken in TC_CONS_FIX_NEW

Jan-Benedict Glaw jbglaw@lug-owl.de
Wed Apr 16 09:51:00 GMT 2014


Hi!

The recent change (gas TC_PARSE_CONS_EXPRESSION communication with
TC_CONS_FIX_NEW) left tilepro-linux non-compiling (cf.
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=198396):

gcc -DHAVE_CONFIG_H -I. -I/home/vaxbuild/repos/binutils_gdb/gas  -I. -I/home/vaxbuild/repos/binutils_gdb/gas -I../bfd -I/home/vaxbuild/repos/binutils_gdb/gas/config -I/home/vaxbuild/repos/binutils_gdb/gas/../include -I/home/vaxbuild/repos/binutils_gdb/gas/.. -I/home/vaxbuild/repos/binutils_gdb/gas/../bfd -DLOCALEDIR="\"/home/vaxbuild/build/tilepro-linux/_install_/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT read.o -MD -MP -MF .deps/read.Tpo -c -o read.o /home/vaxbuild/repos/binutils_gdb/gas/read.c
/home/vaxbuild/repos/binutils_gdb/gas/read.c: In function ‘emit_expr_fix’:
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4425:69: error: macro "TC_CONS_FIX_NEW" passed 5 arguments, but takes just 4
   TC_CONS_FIX_NEW (frag, p - frag->fr_literal + offset, size, exp, r);
                                                                     ^
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4425:3: error: ‘TC_CONS_FIX_NEW’ undeclared (first use in this function)
   TC_CONS_FIX_NEW (frag, p - frag->fr_literal + offset, size, exp, r);
   ^
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4425:3: note: each undeclared identifier is reported only once for each function it appears in
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4417:7: error: unused variable ‘offset’ [-Werror=unused-variable]
   int offset = 0;
       ^
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4414:29: error: unused parameter ‘exp’ [-Werror=unused-parameter]
 emit_expr_fix (expressionS *exp, unsigned int nbytes, fragS *frag, char *p,
                             ^
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4414:62: error: unused parameter ‘frag’ [-Werror=unused-parameter]
 emit_expr_fix (expressionS *exp, unsigned int nbytes, fragS *frag, char *p,
                                                              ^
cc1: all warnings being treated as errors
make[3]: *** [read.o] Error 1


Probably quite easy to fix, maybe I'll find some time tonight to look
at it.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:  The course of history shows that as a government grows, liberty
the second  : decreases."  (Thomas Jefferson)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20140416/b95a4b2a/attachment.sig>


More information about the Binutils mailing list