Need advice on bounds checking approaches

Geoff Keating geoffk@cygnus.com
Mon Mar 27 13:54:00 GMT 2000


Greg McGary <gkm@eng.ascend.com> writes:

> We can do without a special pass.  CSE seems the best place to
> eliminate redundant checks, so we'd just need a little bit of code to
> handle the new check_bounds_rtx.  We can just forget about doing
> default translation of check_bounds_rtx into primitive RTL, and
> require that targets supporting bounds checking handle it in the
> machine description.  So far, all of the targets I want to support
> initially (i960, PowerPC, i386, MIPS) will benefit from special
> handling in the MD file anyway.
> 
> Does that sound reasonable?

Why would these targets need special handling in the MD file?

I can't think of any support on ppc for this that isn't already
represented in the machine description through the TRAP RTXs.

-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Gcc mailing list