diff options
author | Zack Weinberg <zack@codesourcery.com> | 2002-02-27 18:48:07 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-02-27 18:48:07 +0000 |
commit | f458d1d5d7bd85e412689858ea5d5de681608fbb (patch) | |
tree | aff434354f9eafe5065d231d996385e95f0669b4 /gcc/ch | |
parent | e0b3a8ff40c97c0b633185e6d0872468504a7a1a (diff) | |
download | gcc-f458d1d5d7bd85e412689858ea5d5de681608fbb.zip gcc-f458d1d5d7bd85e412689858ea5d5de681608fbb.tar.gz gcc-f458d1d5d7bd85e412689858ea5d5de681608fbb.tar.bz2 |
c-common.c, [...]: Delete code implementing -traditional mode.
* 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.
From-SVN: r50110
Diffstat (limited to 'gcc/ch')
-rw-r--r-- | gcc/ch/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ch/ch-tree.h | 8 | ||||
-rw-r--r-- | gcc/ch/decl.c | 30 |
3 files changed, 8 insertions, 36 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 64d271d..da5796e 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,9 @@ +2002-02-27 Zack Weinberg <zack@codesourcery.com> + + * ch-tree.h, 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. + 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org> PR other/5299 diff --git a/gcc/ch/ch-tree.h b/gcc/ch/ch-tree.h index 62aae2c..4b26e00 100644 --- a/gcc/ch/ch-tree.h +++ b/gcc/ch/ch-tree.h @@ -427,10 +427,6 @@ extern int warn_nested_externs; extern int warn_cast_qual; -/* Warn about traditional constructs whose meanings changed in ANSI C. */ - -extern int warn_traditional; - /* Warn about *printf or *scanf format/argument anomalies. */ extern int warn_format; @@ -447,10 +443,6 @@ extern int warn_conversion; extern int warn_switch; -/* Nonzero means do some things the same way PCC does. */ - -extern int flag_traditional; - /* Nonzero means warn about suggesting putting in ()'s. */ extern int warn_parentheses; diff --git a/gcc/ch/decl.c b/gcc/ch/decl.c index d0188f8..02070ba 100644 --- a/gcc/ch/decl.c +++ b/gcc/ch/decl.c @@ -462,14 +462,6 @@ int flag_no_builtin; int flag_no_nonansi_builtin; -/* Nonzero means do some things the same way PCC does. */ - -int flag_traditional; - -/* Nonzero means to allow single precision math even if we're generally - being traditional. */ -int flag_allow_single_precision = 0; - /* Nonzero means to treat bitfields as signed unless they say `unsigned'. */ int flag_signed_bitfields = 1; @@ -617,21 +609,8 @@ c_decode_option (argc, argv) char **argv; { char *p = argv[0]; - if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional")) - { - flag_traditional = 1; - flag_writable_strings = 1; -#if DOLLARS_IN_IDENTIFIERS > 0 - dollars_in_ident = 1; -#endif - } - else if (!strcmp (p, "-fnotraditional") || !strcmp (p, "-fno-traditional")) - { - flag_traditional = 0; - flag_writable_strings = 0; - dollars_in_ident = DOLLARS_IN_IDENTIFIERS > 1; - } - else if (!strcmp (p, "-fsigned-char")) + + if (!strcmp (p, "-fsigned-char")) flag_signed_char = 1; else if (!strcmp (p, "-funsigned-char")) flag_signed_char = 0; @@ -4071,11 +4050,6 @@ builtin_function (name, type, function_code, class, library_name) tree decl = build_decl (FUNCTION_DECL, get_identifier (name), type); DECL_EXTERNAL (decl) = 1; TREE_PUBLIC (decl) = 1; - /* If -traditional, permit redefining a builtin function any way you like. - (Though really, if the program redefines these functions, - it probably won't work right unless compiled with -fno-builtin.) */ - if (flag_traditional && name[0] != '_') - DECL_BUILT_IN_NONANSI (decl) = 1; if (library_name) DECL_ASSEMBLER_NAME (decl) = get_identifier (library_name); make_decl_rtl (decl, NULL_PTR, 1); |