diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-27 18:48:07 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-02-27 18:48:07 +0000 |
commit | 455730ef01722bf6b27dbe597b1b9395ce949215 (patch) | |
tree | aff434354f9eafe5065d231d996385e95f0669b4 /gcc/cpplex.c | |
parent | 4c19a415b45bdf46bbaa459193e2ec2ccff8f3dc (diff) | |
download | gcc-455730ef01722bf6b27dbe597b1b9395ce949215.tar.gz |
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
gcc.c, toplev.c: Delete code implementing -traditional mode.
* ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c,
f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete
traditional-mode-related code copied from the C front end
but not used, or used only to permit the compiler to link.
* doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
Document removal of -traditional mode for compilation, and
remove documentation only relevant to that mode.
* config/nextstep.h, config/ptx4.h, config/svr4.h,
config/convex/convex.h, config/d30v/d30v.h,
config/i386/dgux.h, config/i386/osf1elf.h,
config/i386/osfelf.h, config/i386/osfrose.h,
config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
config/m68k/hp310.h, config/m88k/dgux.h,
config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
config/m88k/m88k.h, config/m88k/openbsd.h,
config/mips/abi64.h, config/mips/osfrose.h,
config/mips/svr4-5.h, config/mips/svr4-t.h,
config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
config/stormy16/stormy16.h: Remove all references to
-traditional from target specs. Delete all mention of the
no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
delete a couple of commented-out definitions of
DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
to -traditional.
* system.h: Poison TRADITIONAL_RETURN_FLOAT.
* doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
* testsuite/gcc.c-torture/execute/920730-1t.c,
testsuite/gcc.c-torture/execute/920730-1t.x,
testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant
to -traditional.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50110 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index a5a20db73d1..1a602885d18 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1635,7 +1635,7 @@ maybe_read_ucs (pfile, pstr, limit, pc) return 1; if (CPP_WTRADITIONAL (pfile)) - cpp_warning (pfile, "the meaning of '\\%c' varies with -traditional", c); + cpp_warning (pfile, "the meaning of '\\%c' is different in traditional C", c); length = (c == 'u' ? 4: 8); @@ -1688,17 +1688,15 @@ maybe_read_ucs (pfile, pstr, limit, pc) /* Interpret an escape sequence, and return its value. PSTR points to the input pointer, which is just after the backslash. LIMIT is how much text we have. MASK is a bitmask for the precision for the - destination type (char or wchar_t). TRADITIONAL, if true, does not - interpret escapes that did not exist in traditional C. + destination type (char or wchar_t). Handles all relevant diagnostics. */ unsigned int -cpp_parse_escape (pfile, pstr, limit, mask, traditional) +cpp_parse_escape (pfile, pstr, limit, mask) cpp_reader *pfile; const unsigned char **pstr; const unsigned char *limit; unsigned HOST_WIDE_INT mask; - int traditional; { int unknown = 0; const unsigned char *str = *pstr; @@ -1722,9 +1720,7 @@ cpp_parse_escape (pfile, pstr, limit, mask, traditional) case 'a': if (CPP_WTRADITIONAL (pfile)) - cpp_warning (pfile, "the meaning of '\\a' varies with -traditional"); - if (!traditional) - c = TARGET_BELL; + cpp_warning (pfile, "the meaning of '\\a' is different in traditional C"); break; case 'e': case 'E': @@ -1739,9 +1735,8 @@ cpp_parse_escape (pfile, pstr, limit, mask, traditional) case 'x': if (CPP_WTRADITIONAL (pfile)) - cpp_warning (pfile, "the meaning of '\\x' varies with -traditional"); + cpp_warning (pfile, "the meaning of '\\x' is different in traditional C"); - if (!traditional) { unsigned int i = 0, overflow = 0; int digits_found = 0; @@ -1822,16 +1817,13 @@ cpp_parse_escape (pfile, pstr, limit, mask, traditional) #endif /* Interpret a (possibly wide) character constant in TOKEN. - WARN_MULTI warns about multi-character charconsts, if not - TRADITIONAL. TRADITIONAL also indicates not to interpret escapes - that did not exist in traditional C. PCHARS_SEEN points to a - variable that is filled in with the number of characters seen. */ + WARN_MULTI warns about multi-character charconsts. PCHARS_SEEN points + to a variable that is filled in with the number of characters seen. */ HOST_WIDE_INT -cpp_interpret_charconst (pfile, token, warn_multi, traditional, pchars_seen) +cpp_interpret_charconst (pfile, token, warn_multi, pchars_seen) cpp_reader *pfile; const cpp_token *token; int warn_multi; - int traditional; unsigned int *pchars_seen; { const unsigned char *str = token->val.str.text; @@ -1886,7 +1878,7 @@ cpp_interpret_charconst (pfile, token, warn_multi, traditional, pchars_seen) #endif if (c == '\\') - c = cpp_parse_escape (pfile, &str, limit, mask, traditional); + c = cpp_parse_escape (pfile, &str, limit, mask); #ifdef MAP_CHARACTER if (ISPRINT (c)) @@ -1910,7 +1902,7 @@ cpp_interpret_charconst (pfile, token, warn_multi, traditional, pchars_seen) chars_seen = max_chars; cpp_warning (pfile, "character constant too long"); } - else if (chars_seen > 1 && !traditional && warn_multi) + else if (chars_seen > 1 && warn_multi) cpp_warning (pfile, "multi-character character constant"); /* If relevant type is signed, sign-extend the constant. */ |