summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-10-09 16:19:45 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-10-09 16:19:45 -0400
commit39b3bed7fe8bdc44fe4f203934629ab1175e53f2 (patch)
tree41216e363f9bee0fc585870329f584da9e3d4ed0 /gcc/c-decl.c
parent79188db9b445a48666dfeca6ed01077a985e28f2 (diff)
downloadgcc-39b3bed7fe8bdc44fe4f203934629ab1175e53f2.tar.gz
(dollars_in_ident): DOLLARS_IN_IDENTIFIERS is now Boolean.
(c_decode_option): -fdollars-in-identifiers is now independent of -ansi, of -traditional, and of DOLLARS_IN_IDENTIFIERS. From-SVN: r12930
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 1eab9f39ab0..611b3ef2a53 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -549,13 +549,12 @@ int warn_missing_braces;
int warn_sign_compare;
-/* Nonzero means `$' can be in an identifier.
- See cccp.c for reasons why this breaks some obscure ANSI C programs. */
+/* Nonzero means `$' can be in an identifier. */
#ifndef DOLLARS_IN_IDENTIFIERS
#define DOLLARS_IN_IDENTIFIERS 1
#endif
-int dollars_in_ident = DOLLARS_IN_IDENTIFIERS > 1;
+int dollars_in_ident = DOLLARS_IN_IDENTIFIERS;
/* Decode the string P as a language-specific option for C.
Return 1 if it is recognized (and handle it);
@@ -569,9 +568,6 @@ c_decode_option (p)
{
flag_traditional = 1;
flag_writable_strings = 1;
-#if DOLLARS_IN_IDENTIFIERS > 0
- dollars_in_ident = 1;
-#endif
}
else if (!strcmp (p, "-fallow-single-precision"))
flag_allow_single_precision = 1;
@@ -579,14 +575,9 @@ c_decode_option (p)
{
flag_traditional = 0;
flag_writable_strings = 0;
- dollars_in_ident = DOLLARS_IN_IDENTIFIERS > 1;
}
else if (!strcmp (p, "-fdollars-in-identifiers"))
- {
-#if DOLLARS_IN_IDENTIFIERS > 0
- dollars_in_ident = 1;
-#endif
- }
+ dollars_in_ident = 1;
else if (!strcmp (p, "-fno-dollars-in-identifiers"))
dollars_in_ident = 0;
else if (!strcmp (p, "-fsigned-char"))
@@ -634,7 +625,7 @@ c_decode_option (p)
else if (!strcmp (p, "-fident"))
flag_no_ident = 0;
else if (!strcmp (p, "-ansi"))
- flag_no_asm = 1, flag_no_nonansi_builtin = 1, dollars_in_ident = 0;
+ flag_no_asm = 1, flag_no_nonansi_builtin = 1;
else if (!strcmp (p, "-Wimplicit"))
warn_implicit = 1;
else if (!strcmp (p, "-Wno-implicit"))