This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [x86]: Allow @GOTOFF in non-memory context?
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, GCC Development <gcc at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, IainS <developer at sandoe-acoustics dot co dot uk>
- Date: Fri, 25 Jun 2010 20:09:04 +0200
- Subject: Re: [x86]: Allow @GOTOFF in non-memory context?
- References: <AANLkTinjwofdJ1RIH1YsvpAUsTYbY7mOnxmqrooxDGCO@mail.gmail.com> <4C24EBE9.3050504@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> Note that this *is* a memory context. The problematic cases were
>
> addl $x@GOTOFF, %eax
>
> which needed to be written as
>
> lea x@GOTOFF(%eax), %eax
>
> to satisfy the memory context requirement of the broken assemblers.
The Solaris 8/x86 assembler handles the first form just fine, with
output identical to gas 2.20.1.
I could dig up older versions if desired, all the way back to Solaris
2.1/x86, but I'd argue they are completely irrelevant by now.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University