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]
Other format: [Raw text]

Re: [PATCH] Check precision rather than machine mode in STRIP_NOPS and STRIP_SIGN_NOPS


Richard Henderson writes:
> Adam Nemet wrote:
> > Richard Guenther writes:
> >> 2009/6/9 Adam Nemet <anemet@caviumnetworks.com>:
> >>> Richard Guenther writes:
> >>>> Indeed, you should do the TYPE_PRECISION check only on
> >>>> INTEGRAL_TYPE_P types and keep the mode check on the rest.
> >>> Can't we also check POINTER_TYPE_P and OFFSET_TYPE?
> >> We can, but I don't think we ever have precision differences there.
> > 
> > Nor have we mode differences, no?
> 
> Yes we have mode differences in pointers.  Some 64-bit ports
> have extensions to allow 32-bit pointers to be declared, which
> get extended before they're actually used.

Right, I meant unless you use mode attribute.  And as I said I checked mode
attributes and they map mode to precision correctly.

Adam


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