diff options
author | Jason Eckhardt <jle@rice.edu> | 2003-08-02 03:03:52 +0000 |
---|---|---|
committer | Jason Eckhardt <jle@rice.edu> | 2003-08-02 03:03:52 +0000 |
commit | 87505968d5c8219e4610ccdbc519b6d94529a935 (patch) | |
tree | 6d29450fc0ffbd95fd864adf630764e5f2325596 /gas/doc/c-i860.texi | |
parent | ede4fbe4b404cc7ce7601d75c87f7a4f28040289 (diff) | |
download | gdb-87505968d5c8219e4610ccdbc519b6d94529a935.zip gdb-87505968d5c8219e4610ccdbc519b6d94529a935.tar.gz gdb-87505968d5c8219e4610ccdbc519b6d94529a935.tar.bz2 |
2003-08-01 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
(target_intel_syntax): Declare variable.
(OPTION_INTEL_SYNTAX): Declare macro.
(md_longopts): Add option -mintel-syntax.
(md_parse_option): Set target_intel_syntax.
(md_show_usage): Add -mintel-syntax usage.
(md_begin): Set reg_prefix based on target_intel_syntax.
(i860_process_insn): Skip register prefix only if there is one.
Parse relocatable expressions in either Intel or AT&T syntax based
on target_intel_syntax instead of the SYNTAX_SVR4 macro.
* doc/c-i860.texi: Document -mintel-syntax option and give blurb
about the differences in syntax.
Diffstat (limited to 'gas/doc/c-i860.texi')
-rw-r--r-- | gas/doc/c-i860.texi | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gas/doc/c-i860.texi b/gas/doc/c-i860.texi index 01c89e7..9f868c9 100644 --- a/gas/doc/c-i860.texi +++ b/gas/doc/c-i860.texi @@ -13,10 +13,7 @@ @ignore @c FIXME: This is basically a stub for i860. There is tons more information -that I will add later (jle@cygnus.com). The assembler is still being -written. The i860 assembler that existed previously was never finished -and doesn't even build. Further, its not BFD_ASSEMBLER and it doesn't -do ELF (it doesn't do anything, but you get the point). +that I will add later (jle@cygnus.com). @end ignore @cindex i860 support @@ -36,6 +33,13 @@ support SVR4 PIC (i.e., @code{@@GOT, @@GOTOFF, @@PLT}). Like the SVR4/860 assembler, the output object format is ELF32. Currently, this is the only supported object format. If there is sufficient interest, other formats such as COFF may be implemented. + +Both the Intel and AT&T/SVR4 syntaxes are supported, with the latter +being the default. One difference is that AT&T syntax requires the '%' +prefix on register names while Intel syntax does not. Another difference +is in the specification of relocatable expressions. The Intel syntax +is @code{ha%expression} whereas the SVR4 syntax is @code{[expression]@@ha} +(and similarly for the "l" and "h" selectors). @node Options-i860 @section i860 Command-line Options @subsection SVR4 compatibility options @@ -66,6 +70,9 @@ where @code{gcc} may emit these pseudo-instructions. Enable support for the i860XP instructions and control registers. By default, this option is disabled so that only the base instruction set (i.e., i860XR) is supported. +@item -mintel-syntax +The i860 assembler defaults to AT&T/SVR4 syntax. This option enables the +Intel syntax. @end table @node Directives-i860 |