aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c')
-rw-r--r--gcc/c/ChangeLog4
-rw-r--r--gcc/c/c-aux-info.c3
-rw-r--r--gcc/c/c-parser.c16
-rw-r--r--gcc/c/c-tree.h4
4 files changed, 15 insertions, 12 deletions
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 <tbsaunde@tbsaunde.org>
+
+ * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
+
2015-08-12 Marek Polacek <polacek@redhat.com>
* 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 <c_token, va_gc> *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. */