This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Modifying comment character on SVR4 gas target
- From: Ian Lance Taylor <ian at airs dot com>
- To: John Levon <levon at movementarian dot org>
- Cc: binutils at sources dot redhat dot com
- Date: 01 Nov 2005 10:57:07 -0800
- Subject: Re: Modifying comment character on SVR4 gas target
- References: <20051101164829.GA15785@trollied.org>
John Levon <levon@movementarian.org> writes:
> I'd like to add an option similar to m68k's --bitwise-or to change the
> comment character. It's easy enough to add a tc_comment_chars and
> --divide option to remove '/' from comment_chars, but since GCC still
> generates comment lines beginning with e.g. "/APP", it looks like I need
> to add '/' to line_comment_chars when given the option, and introduce a
> tc_line_comment_chars.
>
> Does this seem like a reasonable approach, or would people prefer
> something else?
You can unconditionally add '/' to line_comment_chars.
Changing comment_chars along the lines of --bitwise-or is reasonable.
Ian