This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] Re: GCC 2.95 Solaris7 i86pc compilation fail with -g generates internal compiler error


On Tue, Aug 10, 1999 at 02:52:10PM -0700, Mark Mitchell wrote:
> It also does:
> 
>   TYPE_MAX_VALUE (itype) = convert (sizetype, maxval);
> 
> That doesn't make sense if maxval does not have integer type.

Look again at the expression that's being fed to TYPE_MAX_VALUE:

  -         TYPE_MAX_VALUE (itype) = build_min (MINUS_EXPR, sizetype, max,
  -                                             integer_one_node);

Note that you *already have* an expression of type sizetype -- max-1.

> Note that the code below the conditional does call build_index_type.
> Either the condition guarding the code changed is wrong, or the
> problem lies elsewhere; the problem is not that we are not using
> build_index_type here.

That may be, and is something I know nothing of.


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]