Re: gcc possibly generating invalid assembler
On 04/19/2017 09:39 AM, Wouter Verhelst wrote:
> Good point, but nope, even with 'CFLAGS+=-save-temps' it succeeds.
For me, building the package succeeds with the following added to
debian/rules:
ifeq ($(DEB_HOST_ARCH_CPU), m68k)
export DEB_CFLAGS_MAINT_APPEND += -O0
endif
> Next attempt, "make V=1" returns the following command line:
>
> m68k-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../urcu -I../.. -I../.. -I../../tests/common -g -g -O2 -pthread -MT test_urcu_defer.o -MD -MP -MF .deps/test_urcu_defer.Tpo -c -o test_urcu_defer.o test_urcu_defer.c
>
> Anyway, that means the most likely cause is the optimizer.
I agree. It's definitely the optimization level which triggers
the issue.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Reply to: