This is the mail archive of the binutils@sourceware.org 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]

Build problems with GIT version: ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect


Hi all,

building the GIT version of binutils-gdb using GCC 4.9 fails as follows; it worked recently,
albeit with a slightly older GCC 4.9.

The failure is:

make[4]: Entering directory `/data/local_users/tobiasb/gdb/binutils-gdb/build/gas'
gcc -DHAVE_CONFIG_H -I. -I../../gas  -I. -I../../gas -I../bfd -I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../DIR="\"/data/local_users/tobiasb/gdb/gdb-inst/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -gs.o -MD -MP -MF .deps/subsegs.Tpo -c -o subsegs.o ../../gas/subsegs.c
In file included from ../../gas/as.h:95:0,
                 from ../../gas/subsegs.c:25:
../../gas/subsegs.c: In function 'subseg_change':
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
                                                                           ^
../../gas/subsegs.c:70:7: note: in expansion of macro 'bfd_set_section_userdata'
       bfd_set_section_userdata (stdoutput, seg, seginfo);
       ^
../../gas/subsegs.c: In function 'subseg_get':
../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
 #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
                                                                           ^
../../gas/subsegs.c:172:7: note: in expansion of macro 'bfd_set_section_userdata'
       bfd_set_section_userdata (stdoutput, secptr, seginfo);
       ^
cc1: all warnings being treated as errors


Tobias


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