summaryrefslogtreecommitdiff
path: root/gcc/gengtype.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-02 12:48:49 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-02 12:48:49 +0000
commita070a3bd270fda31bcc88671ced0e27279e88932 (patch)
tree4fe2ee38a31632834142a64e429a8a1f334f3152 /gcc/gengtype.h
parente686b0fe8c94942ce1e645148767fbefc3fe06a2 (diff)
downloadgcc-a070a3bd270fda31bcc88671ced0e27279e88932.tar.gz
* gengtype.h (options::info): Change type to const char *.
(enum gc_used_enum): Move out of struct type scope. * gengtype.c (create_option): Convert initializer for option::info to appropiate type. (adjust_field_type, walk_type, write_func_for_structure, write_root, write_roots): Remove pointless cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85436 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.h')
-rw-r--r--gcc/gengtype.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/gcc/gengtype.h b/gcc/gengtype.h
index bf3c5624ced..ad48566e5e5 100644
--- a/gcc/gengtype.h
+++ b/gcc/gengtype.h
@@ -52,7 +52,7 @@ struct nested_ptr_data {
typedef struct options {
struct options *next;
const char *name;
- const void *info;
+ const char *info;
} *options_p;
/* A name and a type. */
@@ -67,16 +67,19 @@ struct pair {
#define NUM_PARAM 10
/* A description of a type. */
-struct type {
- enum typekind kind;
- type_p next;
- type_p pointer_to;
- enum gc_used_enum {
+enum gc_used_enum
+ {
GC_UNUSED = 0,
GC_USED,
GC_MAYBE_POINTED_TO,
GC_POINTED_TO
- } gc_used;
+ };
+
+struct type {
+ enum typekind kind;
+ type_p next;
+ type_p pointer_to;
+ enum gc_used_enum gc_used;
union {
type_p p;
struct {