This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: Bogus trees from Ada front-end (more VRP vs Ada) stuff)


On Tue, 2006-03-07 at 08:00 -0500, Richard Kenner wrote:
>       if (INTEGRAL_TYPE_P (etype) && TREE_TYPE (etype))
> 	{
> 	  etype = TREE_TYPE (etype);
> 	  exp = fold_convert (etype, exp);
> 	  low = fold_convert (etype, low);
> 	  value = fold_convert (etype, value);
> 	}
> 
>     I gather that we should restrict the transformation to INTEGER_TYPEs.
> 
> We could, but the other possibility is to use an INTEGER_TYPE of the same
> precision and use it in the code above when the input ETYPE is an
> ENUMERAL_TYPE.
Presumably there's a reason why enumeral types don't have a 
base type?

I've got no strong opinions on how to fix this, I just wanted
to throw out another possible approach.

jeff


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