This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR gas/10637: x86 assembler failed to handle [addr] in Intel mode
On Tue, Sep 15, 2009 at 7:09 AM, Jan Beulich <JBeulich@novell.com> wrote:
>
>>Binutils 2.15 doesn't give any warning. And the warning says
>
> Sure - as I said, I had added this earlier due to the ambiguity (many
> people, including me, assuming that [] would mean a memory
> reference unconditionally, when it really doesn't in some cases,
> namely when used with plain numbers).
>
>>y.s:3: Warning: Treating `[0xEE000F0]' as memory reference
>>
>>What does it mean?
>
> ??? It means what is says - that the operand is being treated as a memory
> reference (rather than an immediate, as which it would be taken by masm).
>
This warning doesn't tell users that they have to change their codes.
Also there are no warnings at all when meaning of [] is changed. At
minimum, we need to warn users that [] isn't what was used to be.
--
H.J.