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/config/tc-avr.h | |
parent | bda3d9fbc86950e4661188161ee643f0987d032c (diff) | |
download | fsf-binutils-gdb-d86d1fc7f988f52da4711a86c078194347ab6482.zip fsf-binutils-gdb-d86d1fc7f988f52da4711a86c078194347ab6482.tar.gz fsf-binutils-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/config/tc-avr.h')
-rw-r--r-- | gas/config/tc-avr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-avr.h b/gas/config/tc-avr.h index 0f85099..5862697 100644 --- a/gas/config/tc-avr.h +++ b/gas/config/tc-avr.h @@ -143,7 +143,7 @@ extern int avr_force_relocation (struct fix *); would print `12 34 56 78'. The default value is 4. */ #define LISTING_WORD_SIZE 2 -/* AVR port uses `$' as a logical line separator. */ +/* AVR port uses `$' as a logical line separator by default. */ #define LEX_DOLLAR 0 /* An `.lcomm' directive with no explicit alignment parameter will @@ -244,3 +244,6 @@ struct avr_frag_data #define TC_FRAG_TYPE struct avr_frag_data #define TC_FRAG_INIT(frag, max_bytes) avr_frag_init (frag) extern void avr_frag_init (fragS *); + +#define tc_line_separator_chars avr_line_separator_chars +extern const char *avr_line_separator_chars; |