Bug 5039 - Error: Unexpected token `['
Summary: Error: Unexpected token `['
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.19
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 08:58 UTC by Rask Ingemann Lambertsen
Modified: 2007-09-17 11:44 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rask Ingemann Lambertsen 2007-09-16 08:58:00 UTC
The following is rejected by gas (GNU assembler (GNU Binutils) 2.18.50.20070916):

.intel_syntax noprefix
mov BYTE PTR gs+12[rip], 0

This is accepted as expected:
mov BYTE PTR hs+12[rip], 0
Comment 1 H.J. Lu 2007-09-16 20:06:15 UTC
gs is a special token for gs register, similar to rax.
Comment 2 Rask Ingemann Lambertsen 2007-09-17 11:44:19 UTC
I don't see what you mean. Segment registers are postfixed with ':' when they
appear in memory operands.