OSDN Git Service

* gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Mar 2007 20:55:10 +0000 (20:55 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Mar 2007 20:55:10 +0000 (20:55 +0000)
commit80da8e25e1b3d41423d0f5cd0548086714bf34b5
tree70749f6a010e63bca65e3197ff3b0ff5b77be848
parent696e777373d6261773f9df6d6f9a89de5b832d26
* gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
(string_type): Don't declare.
(do_scalar_typedef): Declare.
(create_scalar_type): Update prototype.
* gengtype.c (string_type): Make static.
(scalar_nonchar, scalar_char): New.
(do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
(resolve_typedef): Use scalar_nonchar for error recovery.
(create_scalar_type): Remove name_len field.  Return scalar_char
or scalar_nonchar as appropriate.
(adjust_field_type): Look at scalar_is_char boolean to decide whether
to use string_type.
(throughout): Use scalar_nonchar instead of calling create_scalar_type,
whenever possible.
(main): Initialize scalar_char and scalar_nonchar before calling
gen_rtx_next.
* gengtype-lex.l: Adjust for removal of second argument to
create_scalar_type.  Use yylval.s instead of yylval.t when
returning SCALAR.
* gengtype-yacc.y: Type of SCALAR is string.  Call
create_scalar_type from type:SCALAR rule.  Adjust for removal of
second argument to create_scalar_type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gengtype-lex.l
gcc/gengtype-yacc.y
gcc/gengtype.c
gcc/gengtype.h