From d86d1fc7f988f52da4711a86c078194347ab6482 Mon Sep 17 00:00:00 2001 From: Matt Jacobson Date: Wed, 11 Aug 2021 10:03:19 +0100 Subject: 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. --- gas/doc/c-avr.texi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gas/doc') 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 -- cgit v1.1