Re: [PATCH] APM support doesn't compile with binutils 2.8.1.0.24

Linus Torvalds (torvalds@transmeta.com)
Wed, 25 Mar 1998 15:17:28 -0800 (PST)


On Thu, 26 Mar 1998, Alan Modra wrote:
>
> I have another patch which I think has the correct behaviour. Here is
> an example of what my latest gas produces, assuming a default data
> size of 32 bits.

This looks fine except for one case that looks rather fishy (and may be a
transcription bug rather than a real bug).

> instruction prefix effect
> movw %ds,%eax yes As above, %eax is an alias for %ax as far as
> gas is concerned.

The above would be even better if it warned, but is consistent with other
gas usage (ie a size letter on the instruction - "w" - overrides the size
of the register used - %eax)

> movl %ds,%ax yes As above, %ax is an alias for %eax as far as
> gas is concerned.

But the above looks like a bug according to the same rule: I'd prefer to
get a warning, but lacking a warning gas in all other cases seems to have
the override letter be "more important" than the register designator.

Whatever the case, the above two cases don't make sense: one one of the
cases the letter takes precedence, in the other case the register name
takes precedence. A warning would be good, but consistency would be
sufficient ;)

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu