[patch] Re: GCC 2.95 Solaris7 i86pc compilation fail with -g generates internal compiler error
Richard Henderson
rth@cygnus.com
Tue Aug 10 10:31:00 GMT 1999
On Tue, Aug 10, 1999 at 09:55:07AM -0700, Mark Mitchell wrote:
> - tree itype = make_node (INTEGER_TYPE);
> - TYPE_MIN_VALUE (itype) = size_zero_node;
> - TYPE_MAX_VALUE (itype) = build_min (MINUS_EXPR, sizetype, max,
> - integer_one_node);
> - return itype;
> + return build_index_type (build_min
> + (MINUS_EXPR, sizetype, max, integer_one_node));
>
> I don't think this is correct. For one thing, build_index_type
> attempts to perform conversions on MAX; as noted in the comment it may
> be template dependent. What is MAX in the case you're interested in?
Huh? How could this not be correct?
Calling build_index_type has the sole effect of filling in all the
ancilliary type info (TYPE_PRECISION, TYPE_MODE, etc) that wasn't
being done here. The dwarf code needed TYPE_PRECISION filled in.
MAX is unchange from `before' to `after'.
r~
More information about the Gcc-patches
mailing list