https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68115
John David Anglin <danglin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian at airs dot com --- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> --- Well no, it exposes another issue in stage3: /bin/sh ./libtool --tag=CC --mode=compile /test/gnu/gcc/objdir/./gcc/xgcc -B/t est/gnu/gcc/objdir/./gcc/ -B/opt/gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/bin/ -B/opt /gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-6/hppa64-h p-hpux11.11/include -isystem /opt/gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/sys-includ e -DHAVE_CONFIG_H -I. -I../../../gcc/libbacktrace -I ../../../gcc/libbacktra ce/../include -I ../../../gcc/libbacktrace/../libgcc -I ../libgcc -funwind-tabl es -frandom-seed=elf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-p rototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c -o elf.lo ../../../gcc/libbacktrace/elf.c libtool: compile: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/ -B/opt/gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/bin/ -B/opt/gnu64/gcc/gcc-6/hppa64-h p-hpux11.11/lib/ -isystem /opt/gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/include -isys tem /opt/gnu64/gcc/gcc-6/hppa64-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I. ./../../gcc/libbacktrace -I ../../../gcc/libbacktrace/../include -I ../../../gcc /libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=elf.lo -W -Wa ll -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definiti on -Wmissing-format-attribute -Wcast-qual -Werror -g -O2 -c ../../../gcc/libback trace/elf.c -DPIC -o .libs/elf.o In file included from ../../../gcc/libbacktrace/elf.c:44:0: ../../../gcc/libbacktrace/elf.c: In function 'backtrace_initialize': ../../../gcc/libbacktrace/internal.h:64:55: error: right-hand operand of comma e xpression has no effect [-Werror=unused-value] #define __sync_bool_compare_and_swap(A, B, C) (abort(), 1) ^ ../../../gcc/libbacktrace/elf.c:958:2: note: in expansion of macro '__sync_bool_compare_and_swap' __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, elf_nosyms); ^ cc1: all warnings being treated as errors make[3]: *** [elf.lo] Error 1 There are no HAVE_SYNC_FUNCTIONS checks in libbacktrace/elf.c to avoid use of __sync functions.