From a79683d5f0104b9da2d6104d4910bbfcb0c63604 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 19 Aug 2015 02:48:48 +0000 Subject: remove more useless typedefs gcc/c-family/ChangeLog: 2015-08-18 Trevor Saunders * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h, c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless typedefs. gcc/c/ChangeLog: 2015-08-18 Trevor Saunders * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. gcc/cp/ChangeLog: 2015-08-18 Trevor Saunders * call.c, class.c, cp-tree.h, decl.c, except.c, mangle.c, method.c, name-lookup.h, parser.c, parser.h, rtti.c, semantics.c, typeck2.c: Remove useless typedefs. gcc/fortran/ChangeLog: 2015-08-18 Trevor Saunders * dependency.c, dependency.h, gfortran.h, io.c, module.c, parse.h, resolve.c, trans-types.h, trans.h: remove useless typedefs. gcc/lto/ChangeLog: 2015-08-18 Trevor Saunders * lto.h: Remove useless typedefs. gcc/objc/ChangeLog: 2015-08-18 Trevor Saunders * objc-act.h, objc-next-runtime-abi-02.c, objc-runtime-hooks.h: Remove useless typedefs. gcc/ChangeLog: 2015-08-18 Trevor Saunders * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c, dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h, mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c, signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c, tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c, tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c, tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless typedefs. From-SVN: r227001 --- gcc/c/ChangeLog | 4 ++++ gcc/c/c-aux-info.c | 3 +-- gcc/c/c-parser.c | 16 ++++++++-------- gcc/c/c-tree.h | 4 ++-- 4 files changed, 15 insertions(+), 12 deletions(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 275d787..1536b1b 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2015-08-18 Trevor Saunders + + * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. + 2015-08-12 Marek Polacek * c-decl.c (grokdeclarator): Call error_at instead of error and pass diff --git a/gcc/c/c-aux-info.c b/gcc/c/c-aux-info.c index 510f541..d983e2c 100644 --- a/gcc/c/c-aux-info.c +++ b/gcc/c/c-aux-info.c @@ -29,12 +29,11 @@ along with GCC; see the file COPYING3. If not see #include "alias.h" #include "c-tree.h" -enum formals_style_enum { +enum formals_style { ansi, k_and_r_names, k_and_r_decls }; -typedef enum formals_style_enum formals_style; static const char *data_type; diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 30b4302..1a58798 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -141,7 +141,7 @@ c_parse_init (void) lexer code, if desired. */ /* More information about the type of a CPP_NAME token. */ -typedef enum c_id_kind { +enum c_id_kind { /* An ordinary identifier. */ C_ID_ID, /* An identifier declared as a typedef name. */ @@ -152,11 +152,11 @@ typedef enum c_id_kind { C_ID_ADDRSPACE, /* Not an identifier. */ C_ID_NONE -} c_id_kind; +}; /* A single C token after string literal concatenation and conversion of preprocessing tokens to tokens. */ -typedef struct GTY (()) c_token { +struct GTY (()) c_token { /* The kind of token. */ ENUM_BITFIELD (cpp_ttype) type : 8; /* If this token is a CPP_NAME, this value indicates whether also @@ -172,12 +172,12 @@ typedef struct GTY (()) c_token { location_t location; /* The value associated with this token, if any. */ tree value; -} c_token; +}; /* A parser structure recording information about the state and context of parsing. Includes lexer information with up to two tokens of look-ahead; more are not needed for C. */ -typedef struct GTY(()) c_parser { +struct GTY(()) c_parser { /* The look-ahead tokens. */ c_token * GTY((skip)) tokens; /* Buffer for look-ahead tokens. */ @@ -224,7 +224,7 @@ typedef struct GTY(()) c_parser { /* Buffer to hold all the tokens from parsing the vector attribute for the SIMD-enabled functions (formerly known as elemental functions). */ vec *cilk_simd_fn_tokens; -} c_parser; +}; /* The actual parser and external interface. ??? Does this need to be @@ -1127,7 +1127,7 @@ restore_extension_diagnostics (int flags) } /* Possibly kinds of declarator to parse. */ -typedef enum c_dtr_syn { +enum c_dtr_syn { /* A normal declarator with an identifier. */ C_DTR_NORMAL, /* An abstract declarator (maybe empty). */ @@ -1143,7 +1143,7 @@ typedef enum c_dtr_syn { the same applies with attributes inside the parentheses before "T". */ C_DTR_PARM -} c_dtr_syn; +}; /* The binary operation precedence levels, where 0 is a dummy lowest level used for the bottom of the stack. */ diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h index 28b58c6..a3979dd 100644 --- a/gcc/c/c-tree.h +++ b/gcc/c/c-tree.h @@ -355,12 +355,12 @@ enum c_declarator_kind { cdk_attrs }; -typedef struct c_arg_tag_d { +struct c_arg_tag { /* The argument name. */ tree id; /* The type of the argument. */ tree type; -} c_arg_tag; +}; /* Information about the parameters in a function declarator. */ -- cgit v1.1