diff options
author | Matt Jacobson <mhjacobson@me.com> | 2021-08-11 10:03:19 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-08-11 10:03:19 +0100 |
commit | d86d1fc7f988f52da4711a86c078194347ab6482 (patch) | |
tree | 1086243d3c10740164fefb19bfcacd42f72d8f6d /gas/doc | |
parent | bda3d9fbc86950e4661188161ee643f0987d032c (diff) | |
download | gdb-d86d1fc7f988f52da4711a86c078194347ab6482.zip gdb-d86d1fc7f988f52da4711a86c078194347ab6482.tar.gz gdb-d86d1fc7f988f52da4711a86c078194347ab6482.tar.bz2 |
Add a -mno-dollar-line-separator command line option to the AVR assembler.
Some frontends, like the gcc Objective-C frontend, emit symbols with $
characters in them. The AVR target code in gas treats $ as a line separator,
so the code doesn?t assemble correctly.
Provide a machine-specific option to disable treating $ as a line separator.
* config/tc-avr.c (enum options): Add option flag.
(struct option): Add option -mno-dollar-line-separator.
(md_parse_option): Adjust treatment of $ when option is present.
* config/tc-avr.h: Use avr_line_separator_chars.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-avr.texi | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/doc/c-avr.texi b/gas/doc/c-avr.texi index ab79739..f83cbe1 100644 --- a/gas/doc/c-avr.texi +++ b/gas/doc/c-avr.texi @@ -159,6 +159,12 @@ information. @item -mgcc-isr Enable the @code{__gcc_isr} pseudo instruction. +@cindex @code{-mno-dollar-line-separator} command line option, AVR +@item -mno-dollar-line-separator +Do not treat the @code{$} character as a line separator character. +This is for languages where @code{$} is valid character inside symbol +names. + @end table @@ -189,7 +195,8 @@ control command (@pxref{Preprocessing}). @cindex AVR line separator The @samp{$} character can be used instead of a newline to separate -statements. +statements. Note: the @option{-mno-dollar-line-separator} option +disables this behaviour. @node AVR-Regs @subsection Register Names |