[Bug gas/12157] New: m68k statement ignored syntax error when @TLSLDO+4(%a0)

2010-10-24 Thread tg at mirbsd dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=12157

   Summary: m68k statement ignored syntax error when
@TLSLDO+4(%a0)
   Product: binutils
   Version: 2.20
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sources.redhat.com
ReportedBy: t...@mirbsd.de


Hi,

we’re not sure if this is a binutils bug, for not accepting this, or a
gcc bug, for producing code like this. (Personally, I don’t even know
m68k well…) If it’s a gcc bug, please tell me so and I’ll submit it there.

Sample code and diagnostics:

r...@aranym:~ # cat x.s
.globl  __tls_get_addr
.text
add.l #last.5...@tlsldo,%a2
move.l %a1,last.5...@tlsldo(%a0)
move.l %a2,last.5...@tlsldo+4(%a0)
.section.tbss
.align  2
.type   last.5547, @object
.size   last.5547, 8
last.5547:
.zero   8
r...@aranym:~ # as --version
GNU assembler (GNU Binutils for Debian) 2.20.1-system.20100303
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `m68k-linux-gnu'.
r...@aranym:~ # dpkg-query -W binutils
binutils2.20.1-15
r...@aranym:~ # as x.s
x.s: Assembler messages:
x.s:5: Error: syntax error -- statement `move.l %a2,last.5...@tlsldo+4(%a0)'
ignored

This is on Debian/m68k, which I’m currently putting through a transition
to do TLS manually. I’ve not tried any other version because building
binutils takes half a day or so, and maybe someone can shed some insight
into this already, but if it’s necessary, I will.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12157] m68k statement ignored syntax error when @TLSLDO+4(%a0)

2010-10-24 Thread tg at mirbsd dot de
http://sourceware.org/bugzilla/show_bug.cgi?id=12157

Thorsten Glaser  changed:

   What|Removed |Added

 Target||m68k-linux-gnu
URL||http://lists.debian.org/deb
   ||ian-68k/2010/10/msg00043.ht
   ||ml
   Host||m68k-linux-gnu

--- Comment #1 from Thorsten Glaser  2010-10-24 11:50:16 
UTC ---
Added URL (to mailing list thread), host/target triplets.

Note how it seems to not like the “+4” but everything else works.
These binutils have been used to produce TLS-capable linux-2.6,
gcc-4.4 and eglibc Debian binary packages, by the way, but it
chokes on util-linux now out of all things (uuid/src/gen_uuid.c).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/12157] m68k statement ignored syntax error when @TLSLDO+4(%a0)

2010-10-24 Thread sch...@linux-m68k.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12157

Andreas Schwab  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #2 from Andreas Schwab  2010-10-24 12:58:26 
UTC ---
This is invalid syntax.  The decoration cannot be put in the middle of an
expression.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils