diff options
author | Trevor Saunders <tbsaunde@tbsaunde.org> | 2015-08-19 02:48:48 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-08-19 02:48:48 +0000 |
commit | a79683d5f0104b9da2d6104d4910bbfcb0c63604 (patch) | |
tree | f2dab2e9a051a54be5232b46ee4f1452e6db714b /gcc/c-family | |
parent | 506868500a53b9181d45596cc7e138dce2f97d9e (diff) | |
download | gcc-a79683d5f0104b9da2d6104d4910bbfcb0c63604.zip gcc-a79683d5f0104b9da2d6104d4910bbfcb0c63604.tar.gz gcc-a79683d5f0104b9da2d6104d4910bbfcb0c63604.tar.bz2 |
remove more useless typedefs
gcc/c-family/ChangeLog:
2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
* 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 <tbsaunde@tbsaunde.org>
* c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
gcc/cp/ChangeLog:
2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
* 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 <tbsaunde@tbsaunde.org>
* 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 <tbsaunde@tbsaunde.org>
* lto.h: Remove useless typedefs.
gcc/objc/ChangeLog:
2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
* objc-act.h, objc-next-runtime-abi-02.c, objc-runtime-hooks.h:
Remove useless typedefs.
gcc/ChangeLog:
2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
* 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
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-ada-spec.h | 4 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 4 | ||||
-rw-r--r-- | gcc/c-family/c-common.h | 9 | ||||
-rw-r--r-- | gcc/c-family/c-format.c | 16 | ||||
-rw-r--r-- | gcc/c-family/c-format.h | 28 | ||||
-rw-r--r-- | gcc/c-family/c-objc.h | 4 | ||||
-rw-r--r-- | gcc/c-family/c-ppoutput.c | 4 | ||||
-rw-r--r-- | gcc/c-family/c-pragma.c | 20 | ||||
-rw-r--r-- | gcc/c-family/c-pragma.h | 11 |
10 files changed, 54 insertions, 51 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 7a25c39..eb717a0 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> + + * 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 + 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR middle-end/36757 diff --git a/gcc/c-family/c-ada-spec.h b/gcc/c-family/c-ada-spec.h index 08d2685..8eed0e2 100644 --- a/gcc/c-family/c-ada-spec.h +++ b/gcc/c-family/c-ada-spec.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see /* In c-ada-spec.c */ -typedef enum { +enum cpp_operation { HAS_DEPENDENT_TEMPLATE_ARGS, IS_ABSTRACT, IS_CONSTRUCTOR, @@ -33,7 +33,7 @@ typedef enum { IS_MOVE_CONSTRUCTOR, IS_TEMPLATE, IS_TRIVIAL -} cpp_operation; +}; extern location_t decl_sloc (const_tree, bool); extern void collect_ada_nodes (tree, const char *); diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index f081dad..ff502e5 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -6311,11 +6311,11 @@ build_va_arg (location_t loc, tree expr, tree type) /* Linked list of disabled built-in functions. */ -typedef struct disabled_builtin +struct disabled_builtin { const char *name; struct disabled_builtin *next; -} disabled_builtin; +}; static disabled_builtin *disabled_builtins = NULL; static bool builtin_function_disabled_p (const char *); diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index d1f6cba..be63cd2 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -474,14 +474,13 @@ struct GTY(()) sorted_fields_type { These may be shadowed, and may be referenced from nested functions. */ #define C_DECLARED_LABEL_FLAG(label) TREE_LANG_FLAG_1 (label) -typedef enum c_language_kind +enum c_language_kind { clk_c = 0, /* C90, C94, C99 or C11 */ clk_objc = 1, /* clk_c with ObjC features. */ clk_cxx = 2, /* ANSI/ISO C++ */ clk_objcxx = 3 /* clk_cxx with ObjC features. */ -} -c_language_kind; +}; /* To test for a specific language use c_language, defined by each front end. For "ObjC features" or "not C++" use the macros. */ @@ -491,7 +490,7 @@ extern c_language_kind c_language; #define c_dialect_objc() ((c_language & clk_objc) != 0) /* The various name of operator that appears in error messages. */ -typedef enum ref_operator { +enum ref_operator { /* NULL */ RO_NULL, /* array indexing */ @@ -504,7 +503,7 @@ typedef enum ref_operator { RO_IMPLICIT_CONVERSION, /* ->* */ RO_ARROW_STAR -} ref_operator; +}; /* Information about a statement tree. */ diff --git a/gcc/c-family/c-format.c b/gcc/c-family/c-format.c index 4bc3147..2940f92 100644 --- a/gcc/c-family/c-format.c +++ b/gcc/c-family/c-format.c @@ -46,12 +46,12 @@ enum format_type { printf_format_type, asm_fprintf_format_type, gcc_objc_string_format_type, format_type_error = -1}; -typedef struct function_format_info +struct function_format_info { int format_type; /* type of format (printf, scanf, etc.) */ unsigned HOST_WIDE_INT format_num; /* number of format argument */ unsigned HOST_WIDE_INT first_arg_num; /* number of first arg (zero for varargs) */ -} function_format_info; +}; static bool decode_format_attr (tree, function_format_info *, int); static int decode_format_type (const char *); @@ -425,7 +425,7 @@ static const char *kind_descriptions[] = { /* Structure describing details of a type expected in format checking, and the type to check against it. */ -typedef struct format_wanted_type +struct format_wanted_type { /* The type wanted. */ tree wanted_type; @@ -460,7 +460,7 @@ typedef struct format_wanted_type unsigned int offset_loc; /* The next type to check for this format conversion, or NULL if none. */ struct format_wanted_type *next; -} format_wanted_type; +}; /* Convenience macro for format_length_info meaning unused. */ #define NO_FMT NULL, FMT_LEN_none, STD_C89 @@ -965,7 +965,7 @@ static int n_format_types = ARRAY_SIZE (format_types_orig); /* Structure detailing the results of checking a format function call where the format expression may be a conditional expression with many leaves resulting from nested conditional expressions. */ -typedef struct +struct format_check_results { /* Number of leaves of the format argument that could not be checked as they were not string literals. */ @@ -990,14 +990,14 @@ typedef struct int number_other; /* Location of the format string. */ location_t format_string_loc; -} format_check_results; +}; -typedef struct +struct format_check_context { format_check_results *res; function_format_info *info; tree params; -} format_check_context; +}; /* Return the format name (as specified in the original table) for the format type indicated by format_num. */ diff --git a/gcc/c-family/c-format.h b/gcc/c-family/c-format.h index 956b23c..c458791 100644 --- a/gcc/c-family/c-format.h +++ b/gcc/c-family/c-format.h @@ -84,7 +84,7 @@ enum /* Structure describing a length modifier supported in format checking, and possibly a doubled version such as "hh". */ -typedef struct +struct format_length_info { /* Name of the single-character length modifier. If prefixed by a zero character, it describes a multi character length @@ -102,12 +102,12 @@ typedef struct /* If this flag is set, just scalar width identity is checked, and not the type identity itself. */ int scalar_identity_flag; -} format_length_info; +}; /* Structure describing the combination of a conversion specifier (or a set of specifiers which act identically) and a length modifier. */ -typedef struct +struct format_type_detail { /* The standard version this combination of length and type appeared in. This is only relevant if greater than those for length and type @@ -118,7 +118,7 @@ typedef struct const char *name; /* The type itself. */ tree *type; -} format_type_detail; +}; /* Macros to fill out tables of these. */ @@ -129,7 +129,7 @@ typedef struct /* Structure describing a format conversion specifier (or a set of specifiers which act identically), and the length modifiers used with it. */ -typedef struct format_char_info +struct format_char_info { const char *format_chars; int pointer_count; @@ -158,11 +158,11 @@ typedef struct format_char_info arguments, only POINTER_COUNT, TYPES, and the "c", "R", and "W" flags in FLAGS2 are used. */ const struct format_char_info *chain; -} format_char_info; +}; /* Structure describing a flag accepted by some kind of format. */ -typedef struct +struct format_flag_spec { /* The flag character in question (0 for end of array). */ int flag_char; @@ -186,12 +186,12 @@ typedef struct const char *long_name; /* The standard version in which it appeared. */ enum format_std_version std; -} format_flag_spec; +}; /* Structure describing a combination of flags that is bad for some kind of format. */ -typedef struct +struct format_flag_pair { /* The first flag character in question (0 for end of array). */ int flag_char1; @@ -204,11 +204,11 @@ typedef struct a nonzero character from flags2 if it only applies in some circumstances (e.g. 'i' for printf formats ignoring 0 with precision). */ int predicate; -} format_flag_pair; +}; /* Structure describing a particular kind of format processed by GCC. */ -typedef struct +struct format_kind_info { /* The name of this kind of format, for use in diagnostics. Also the name of the attribute (without preceding and following __). */ @@ -251,7 +251,7 @@ typedef struct /* Pointer to type of argument expected if '*' is used for a precision, or NULL if '*' not used for precisions. */ tree *precision_type; -} format_kind_info; +}; #define T_I &integer_type_node #define T89_I { STD_C89, NULL, T_I } @@ -317,12 +317,12 @@ typedef struct interpreted as "gnu_printf" or "ms_printf" on a particular system. TARGET_OVERRIDES_FORMAT_ATTRIBUTES is used to specify target-specific defaults. */ -typedef struct +struct target_ovr_attr { /* The name of the to be copied format attribute. */ const char *named_attr_src; /* The name of the to be overridden format attribute. */ const char *named_attr_dst; -} target_ovr_attr; +}; #endif /* GCC_C_FORMAT_H */ diff --git a/gcc/c-family/c-objc.h b/gcc/c-family/c-objc.h index 656b6de..e9ec8f8 100644 --- a/gcc/c-family/c-objc.h +++ b/gcc/c-family/c-objc.h @@ -21,12 +21,12 @@ along with GCC; see the file COPYING3. If not see #define GCC_C_COMMON_OBJC_H /* ObjC ivar visibility types. */ -typedef enum objc_ivar_visibility_kind { +enum GTY(()) objc_ivar_visibility_kind { OBJC_IVAR_VIS_PROTECTED = 0, OBJC_IVAR_VIS_PUBLIC = 1, OBJC_IVAR_VIS_PRIVATE = 2, OBJC_IVAR_VIS_PACKAGE = 3 -} objc_ivar_visibility_kind; +}; /* Objective-C / Objective-C++ entry points. */ diff --git a/gcc/c-family/c-ppoutput.c b/gcc/c-family/c-ppoutput.c index 83ad461..0855554 100644 --- a/gcc/c-family/c-ppoutput.c +++ b/gcc/c-family/c-ppoutput.c @@ -44,13 +44,13 @@ static struct /* Defined and undefined macros being queued for output with -dU at the next newline. */ -typedef struct macro_queue +struct macro_queue { struct macro_queue *next; /* Next macro in the list. */ char *macro; /* The name of the macro if not defined, the full definition if defined. */ -} macro_queue; +}; static macro_queue *define_queue, *undef_queue; /* General output routines. */ diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index b85e768..5fb1fc2 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -48,11 +48,11 @@ along with GCC; see the file COPYING3. If not see #define GCC_BAD2(gmsgid, arg) \ do { warning (OPT_Wpragmas, gmsgid, arg); return; } while (0) -typedef struct GTY(()) align_stack { +struct GTY(()) align_stack { int alignment; tree id; struct align_stack * prev; -} align_stack; +}; static GTY(()) struct align_stack * alignment_stack; @@ -236,11 +236,11 @@ handle_pragma_pack (cpp_reader * ARG_UNUSED (dummy)) } } -typedef struct GTY(()) pending_weak_d +struct GTY(()) pending_weak { tree name; tree value; -} pending_weak; +}; static GTY(()) vec<pending_weak, va_gc> *pending_weaks; @@ -426,10 +426,10 @@ handle_pragma_weak (cpp_reader * ARG_UNUSED (dummy)) if it appears afterward, we have no way of knowing whether a modified DECL_ASSEMBLER_NAME is due to #pragma extern_prefix.) */ -typedef struct GTY(()) pending_redefinition_d { +struct GTY(()) pending_redefinition { tree oldname; tree newname; -} pending_redefinition; +}; static GTY(()) vec<pending_redefinition, va_gc> *pending_redefine_extname; @@ -894,13 +894,13 @@ handle_pragma_optimize (cpp_reader *ARG_UNUSED(dummy)) /* Stack of the #pragma GCC options created with #pragma GCC push_option. Save both the binary representation of the options and the TREE_LIST of strings that will be added to the function's attribute list. */ -typedef struct GTY(()) opt_stack { +struct GTY(()) opt_stack { struct opt_stack *prev; tree target_binary; tree target_strings; tree optimize_binary; tree optimize_strings; -} opt_stack; +}; static GTY(()) struct opt_stack * options_stack; @@ -1165,11 +1165,11 @@ handle_pragma_float_const_decimal64 (cpp_reader *ARG_UNUSED (dummy)) static vec<internal_pragma_handler> registered_pragmas; -typedef struct +struct pragma_ns_name { const char *space; const char *name; -} pragma_ns_name; +}; static vec<pragma_ns_name> registered_pp_pragmas; diff --git a/gcc/c-family/c-pragma.h b/gcc/c-family/c-pragma.h index eff94c1..aa2b471 100644 --- a/gcc/c-family/c-pragma.h +++ b/gcc/c-family/c-pragma.h @@ -24,7 +24,7 @@ along with GCC; see the file COPYING3. If not see /* Pragma identifiers built in to the front end parsers. Identifiers for ancillary handlers will follow these. */ -typedef enum pragma_kind { +enum pragma_kind { PRAGMA_NONE = 0, PRAGMA_OACC_CACHE, @@ -71,12 +71,12 @@ typedef enum pragma_kind { PRAGMA_IVDEP, PRAGMA_FIRST_EXTERNAL -} pragma_kind; +}; /* All clauses defined by OpenACC 2.0, and OpenMP 2.5, 3.0, 3.1, and 4.0. Used internally by both C and C++ parsers. */ -typedef enum pragma_omp_clause { +enum pragma_omp_clause { PRAGMA_OMP_CLAUSE_NONE = 0, PRAGMA_OMP_CLAUSE_ALIGNED, @@ -159,7 +159,7 @@ typedef enum pragma_omp_clause { PRAGMA_OACC_CLAUSE_IF = PRAGMA_OMP_CLAUSE_IF, PRAGMA_OACC_CLAUSE_PRIVATE = PRAGMA_OMP_CLAUSE_PRIVATE, PRAGMA_OACC_CLAUSE_REDUCTION = PRAGMA_OMP_CLAUSE_REDUCTION -} pragma_omp_clause; +}; extern struct cpp_reader* parse_in; @@ -183,7 +183,7 @@ union gen_pragma_handler { pragma_handler_2arg handler_2arg; }; /* Internally used to keep the data of the handler. */ -struct internal_pragma_handler_d { +struct internal_pragma_handler { union gen_pragma_handler handler; /* Permits to know if handler is a pragma_handler_1arg (extra_data is false) or a pragma_handler_2arg (extra_data is true). */ @@ -191,7 +191,6 @@ struct internal_pragma_handler_d { /* A data field which can be used when extra_data is true. */ void * data; }; -typedef struct internal_pragma_handler_d internal_pragma_handler; extern void c_register_pragma (const char *space, const char *name, pragma_handler_1arg handler); |