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] Promote xImode types to int


On Fri, Sep 14, 2001 at 09:42:14PM +0200, Roman Lechtchinsky wrote:
> I'm not sure if just checking whether an INTEGER_TYPE is smaller than
> an int is sufficient here. Should that be the case I'll simplify and
> resubmit the patch.

I would think so.  You still have to check the known types, since
the boundary condition of sizeof(short) == sizeof(int) is supposed
to promote, but not sizeof(long) == sizeof(int).

But testing for strictly less than should be ok.


r~


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