diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:45:01 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:45:01 +0000 |
commit | f8be92ce6dc6fbd49c39502c27b6c4b26d005f98 (patch) | |
tree | a6bd00357528f3023a17376c2bd46aadaeba03a8 /gcc/gengtype.c | |
parent | 58e5b01491082f4d861d5106df82689fcd344163 (diff) | |
download | ppe42-gcc-f8be92ce6dc6fbd49c39502c27b6c4b26d005f98.tar.gz ppe42-gcc-f8be92ce6dc6fbd49c39502c27b6c4b26d005f98.zip |
* gengtype-lex.l: Remove all rules and states relating to yacc
input files.
* gengtype-yacc.y: Similarly.
* gengtype.c (note_yacc_type): Delete function.
* gengtype.h: Update prototypes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123226 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype.c')
-rw-r--r-- | gcc/gengtype.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 09d8ada4719..250712c577f 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -810,65 +810,6 @@ adjust_field_type (type_p t, options_p opt) return t; } -/* Create a union for YYSTYPE, as yacc would do it, given a fieldlist FIELDS - and information about the correspondence between token types and fields - in TYPEINFO. POS is used for error messages. */ - -void -note_yacc_type (options_p o, pair_p fields, pair_p typeinfo, - struct fileloc *pos) -{ - pair_p p; - pair_p *p_p; - - for (p = typeinfo; p; p = p->next) - { - pair_p m; - - if (p->name == NULL) - continue; - - if (p->type == (type_p) 1) - { - pair_p pp; - int ok = 0; - - for (pp = typeinfo; pp; pp = pp->next) - if (pp->type != (type_p) 1 - && strcmp (pp->opt->info, p->opt->info) == 0) - { - ok = 1; - break; - } - if (! ok) - continue; - } - - for (m = fields; m; m = m->next) - if (strcmp (m->name, p->name) == 0) - p->type = m->type; - if (p->type == NULL) - { - error_at_line (&p->line, - "couldn't match fieldname `%s'", p->name); - p->name = NULL; - } - } - - p_p = &typeinfo; - while (*p_p) - { - pair_p p = *p_p; - - if (p->name == NULL - || p->type == (type_p) 1) - *p_p = p->next; - else - p_p = &p->next; - } - - do_typedef ("YYSTYPE", new_structure ("yy_union", 1, pos, typeinfo, o), pos); -} static void set_gc_used_type (type_p, enum gc_used_enum, type_p *); static void set_gc_used (pair_p); |