This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]