public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [BUILDROBOT] m86k breakage
@ 2014-08-16 14:15 Jan-Benedict Glaw
  2014-08-18  0:30 ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Jan-Benedict Glaw @ 2014-08-16 14:15 UTC (permalink / raw)
  To: Alan Modra; +Cc: binutils

[-- Attachment #1: Type: text/plain, Size: 1658 bytes --]

Hi Alan,

I observed that with a new-enough compiler, recent m68k builds break
(see eg.
http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=329738):

 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/m68k-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 ‘parse_mri_cons’:
/home/vaxbuild/repos/binutils_gdb/gas/read.c:3869:20: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
   (expression (EXP), TC_PARSE_CONS_RETURN_NONE)
                    ^
/home/vaxbuild/repos/binutils_gdb/gas/read.c:4608:5: note: in expansion of macro ‘TC_PARSE_CONS_EXPRESSION’
     TC_PARSE_CONS_EXPRESSION (exp, nbytes);
     ^
cc1: all warnings being treated as errors


I think this is caused by the "gas TC_PARSE_CONS_EXPRESSION
communication with TC_CONS_FIX_NEW" commit (April 8th). Don't have a
tested patch yet...  Maybe I'll look into it tomorrow.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:                   ...und wenn Du denkst, es geht nicht mehr,
the second  :                          kommt irgendwo ein Lichtlein her.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUILDROBOT] m86k breakage
  2014-08-16 14:15 [BUILDROBOT] m86k breakage Jan-Benedict Glaw
@ 2014-08-18  0:30 ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2014-08-18  0:30 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: binutils

On Sat, Aug 16, 2014 at 04:14:59PM +0200, Jan-Benedict Glaw wrote:
> I think this is caused by the "gas TC_PARSE_CONS_EXPRESSION
> communication with TC_CONS_FIX_NEW" commit (April 8th).

Guilty as charged.

    	* read.c (parse_mri_cons): Warning fix.

diff --git a/gas/read.c b/gas/read.c
index 183ef2c..2d5fdf1 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -4605,7 +4605,7 @@ parse_mri_cons (expressionS *exp, unsigned int nbytes)
       && (input_line_pointer[1] != '\''
 	  || (*input_line_pointer != 'A'
 	      && *input_line_pointer != 'E')))
-    TC_PARSE_CONS_EXPRESSION (exp, nbytes);
+    (void) TC_PARSE_CONS_EXPRESSION (exp, nbytes);
   else
     {
       unsigned int scan;

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-18  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-16 14:15 [BUILDROBOT] m86k breakage Jan-Benedict Glaw
2014-08-18  0:30 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).