This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bounds-check intentionally undocumented?
- To: "John Hughes" <john at Calva dot COM>
- Subject: Re: bounds-check intentionally undocumented?
- From: Greg McGary <gkm at eng dot ascend dot com>
- Date: 06 Jan 2000 08:11:29 -1000
- Cc: <egcs at egcs dot cygnus dot com>
- References: <01a601bf586c$6ae3f5e0$0e0110ac@britannic.AtlanTech.COM>
"John Hughes" <john@Calva.COM> writes:
> > > > make gcc treat auto BPs as register-allocable triples, rather
> > > > than its current behavior of forcing them (as it does most structs)
> > > > into stack slots.
> >
> > > Will this optimisation be specific to fat pointers, or available to
> > > other structs?
> >
> > Doing it for all structs is the only sensible way to proceed, IMO.
>
> Magic. This should help some of my code *LOTS*.
>
> Is it hard to do?
Probably. I haven't looked very deeply into it yet, but since people
have been talking about it for years, and it hasn't been done yet, I
can only assume that it's difficult. If someone who has thought about
the problem could give us a design proposal, that would be very useful
to me and to the community.
Greg