public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* gcc possibly generating invalid assembler
@ 2017-04-13 11:08 John Paul Adrian Glaubitz
  2017-04-14  7:36 ` Wouter Verhelst
  2017-04-17 20:01 ` Richard Z
  0 siblings, 2 replies; 10+ messages in thread
From: John Paul Adrian Glaubitz @ 2017-04-13 11:08 UTC (permalink / raw)
  To: Debian m68k; +Cc: Linux/m68k

Hi!

I have unsuccessfully been trying to build liburcu on Debian/m68k. After
adding "m68k" as a detected architecture in configure.ac, the build
fails with the assembler generating syntax error messages [1]:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../urcu   -Wdate-time -D_FORTIFY_SOURCE=2 -I../.. -I../.. -I../../tests/common -g -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -c -o test_urcu_defer.o test_urcu_defer.c
/tmp/ccXHVXOc.s: Assembler messages:
/tmp/ccXHVXOc.s:312: Error: syntax error -- statement `add.l %d1,nr_writes@TLSLE+4(%a0)' ignored
/tmp/ccXHVXOc.s:440: Error: syntax error -- statement `add.l %d1,nr_writes@TLSLE+4(%a0)' ignored

Since the source code file in question doesn't contain any m68k inline
assembly, I would suspect this to be a problem with the code generated
by gcc.

Any suggestions?

Adrian

> [1] https://people.debian.org/~glaubitz/liburcu_0.9.3-3_m68k.build

-- 
 .''`.  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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: gcc possibly generating invalid assembler
@ 2017-04-20 21:00 Michael Jeanson
  2017-04-20 21:43 ` Wouter Verhelst
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Jeanson @ 2017-04-20 21:00 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz; +Cc: Debian m68k, Linux/m68k

On Thu, Apr 13, 2017 at 01:08:59PM +0200, John Paul Adrian Glaubitz wrote:
> 
> I have unsuccessfully been trying to build liburcu on Debian/m68k. After
> adding "m68k" as a detected architecture in configure.ac, the build
> fails with the assembler generating syntax error messages [1]:
> 
> gcc -DHAVE_CONFIG_H -I. -I../.. -I../../urcu   -Wdate-time -D_FORTIFY_SOURCE=2 -I../.. -I../.. -I../../tests/common -g -g -O2
> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -c -o test_urcu_defer.o test_urcu_defer.c
> /tmp/ccXHVXOc.s: Assembler messages:
> /tmp/ccXHVXOc.s:312: Error: syntax error -- statement `add.l %d1,nr_writes@TLSLE+4(%a0)' ignored
> /tmp/ccXHVXOc.s:440: Error: syntax error -- statement `add.l %d1,nr_writes@TLSLE+4(%a0)' ignored

The invalid asm is related to Thread Local Storage and liburcu has a
compat layer that can be enabled at configure for platforms that don't
have it.

With './configure --disable-compiler-tls' the build succeeds and the
regression test suite completes without having to disable optimisations.

Hope this helps,

Michael

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

end of thread, other threads:[~2017-04-20 21:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-13 11:08 gcc possibly generating invalid assembler John Paul Adrian Glaubitz
2017-04-14  7:36 ` Wouter Verhelst
2017-04-18 18:42   ` John Paul Adrian Glaubitz
2017-04-19  7:39     ` Wouter Verhelst
2017-04-19  7:46       ` John Paul Adrian Glaubitz
2017-04-19  7:51       ` Wouter Verhelst
2017-04-19  8:38       ` Wouter Verhelst
2017-04-17 20:01 ` Richard Z
  -- strict thread matches above, loose matches on Subject: below --
2017-04-20 21:00 Michael Jeanson
2017-04-20 21:43 ` Wouter Verhelst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox