This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: middle-end/1995: position dependency in asm("" : ... : : )
- From: Etienne Lorrain <etienne at masroudeau dot com>
- To: <rodrigc at gcc dot gnu dot org>
- Cc: <gcc-bugs at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>, <gcc-prs at gcc dot gnu dot org>, <nobody at gcc dot gnu dot org>
- Date: Wed, 12 Dec 2001 04:02:03 -0800 (PST)
- Subject: Re: middle-end/1995: position dependency in asm("" : ... : : )
On 12 Dec 2001 rodrigc@gcc.gnu.org wrote:
> Synopsis: position dependency in asm("" : ... : : )
>
> State-Changed-From-To: open->closed
> State-Changed-By: rodrigc
> State-Changed-When: Wed Dec 12 00:02:27 2001
> State-Changed-Why:
> With gcc 3.0.3, I can compile this testcase successfully,
> with only these compilation warnings:
> q.c:8:17: warning: multi-line string literals are deprecated
> q.c:16:17: warning: multi-line string literals are deprecated
>
> However, the assembler gives me these errors:
> /tmp/cc6keo5t.s: Assembler messages:
> /tmp/cc6keo5t.s:27: Error: `%fs:(%di)' is not a valid 32 bit base/index expression
>
> Looks like you have invalid assembler in this testcase.
>
>
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=1995&database=gcc
>
Thanks, I noticed this correction.
Note that the real target is ".code16gcc", so the assembly %fs:(%di) is
valid and normal in this environment. In ".code32" the assembly would
be valid, but is treated as an error in binutils - nobody has needed
a 16 bit addressing mode [prefix] under a 32 bits environment - up to now.
Etienne.