This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: add DOLLARS_IN_ASM_IDENTIFIERS
Ian Lance Taylor wrote:
I think you should simply use the existing DOLLARS_IN_IDENTIFIERS.
None of our ports actually translate the '$' into anything else when
writing to the asm file. Therefore if C/C++ code supports '$' in an
identifier, it follows that the assembler must support '$'.
Like, say, this?
-Sandra
2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
apply to assembly language, too.
* doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
Index: gcc/c-opts.c
===================================================================
*** gcc/c-opts.c (revision 175724)
--- gcc/c-opts.c (working copy)
*************** c_common_handle_option (size_t scode, co
*** 858,864 ****
case OPT_lang_asm:
cpp_set_lang (parse_in, CLK_ASM);
- cpp_opts->dollars_in_ident = false;
break;
case OPT_lang_fortran:
--- 858,863 ----
Index: gcc/doc/tm.texi
===================================================================
*** gcc/doc/tm.texi (revision 175724)
--- gcc/doc/tm.texi (working copy)
*************** This must be a value that would also be
*** 9584,9590 ****
@defmac DOLLARS_IN_IDENTIFIERS
Define this macro to control use of the character @samp{$} in
! identifier names for the C family of languages. 0 means @samp{$} is
not allowed by default; 1 means it is allowed. 1 is the default;
there is no need to define this macro in that case.
@end defmac
--- 9584,9590 ----
@defmac DOLLARS_IN_IDENTIFIERS
Define this macro to control use of the character @samp{$} in
! identifier names. 0 means @samp{$} is
not allowed by default; 1 means it is allowed. 1 is the default;
there is no need to define this macro in that case.
@end defmac