https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68467
Bug ID: 68467 Summary: libgcc, compilation for target m68k-linux breaks in linux_atomic.c, #define COMMA , Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: angelo70 at gmail dot com Target Milestone: --- Created attachment 36791 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36791&action=edit config log Dear all, after had filled 68466, and applied the workaround mentioned in it, i can fully compile gcc. Btw, inside libgcc i see only M68000 code, and not coldfire variants. So i am trying with different configuration options, as: EXTRA_GCC_CONF="--enable-multilib --with-arch=cf --with-newlib --with-system-zlib" With config options above, i get following error compiling: /home/angelo/archivio/aziende/sysam/buildall/m68k/gcc/./gcc/xgcc -B/home/angelo/archivio/aziende/sysam/buildall/m68k/gcc/./gcc/ -B/home/angelo/archivio/aziende/sysam/output/m68k-linux/bin/ -B/home/angelo/archivio/aziende/sysam/output/m68k-linux/lib/ -isystem /home/angelo/archivio/aziende/sysam/output/m68k-linux/include -isystem /home/angelo/archivio/aziende/sysam/output/m68k-linux/sys-include -g -O2 -mcpu=54455 -Wa,-mno-mac -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fPIC -I. -I. -I../../.././gcc -I/home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc -I/home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/. -I/home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/../gcc -I/home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/../include -DHAVE_CC_TLS -o linux-atomic.o -MT linux-atomic.o -MD -MP -MF linux-atomic.dep -c /home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/config/m68k/linux-atomic.c -fvisibility=hidden -DHIDE_EXPORTS /home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/config/m68k/linux-atomic.c: In function '__sync_lock_test_and_set_4': /home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/config/m68k/linux-atomic.c:207:15: warning: left-hand operand of comma expression has no effect [-Wunused-value] #define COMMA , ^ /home/angelo/archivio/aziende/sysam/buildall/gcc-5.2.0/libgcc/config/m68k/linux-atomic.c:80:31: note: in definition of macro 'WORD_SYNC_OP' newval = PFX_OP (oldval INF_OP val); \ Compiling on x86_64 os $ gcc --version gcc (Debian 5.2.1-21) 5.2.1 20151003 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I attach configure and build logs. Regards