This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Hack to make restrict more useful
On 9/1/07, Mark Mitchell <mark@codesourcery.com> wrote:
> Richard Guenther wrote:
>
> >> I have a prototype hack which changes checks of flag_argument_noalias !=
> >> 0 to also check for the presence of "restrict" on all pointer arguments.
> >> This fixes the test case, modulo a C front-end bug which Joseph has
> >> volunteered to fix.
>
> > AFAIK Danny had been "fixing restrict" on his working agenda lately. No
> > idea what the status on that is, though.
>
> I fully concede that my trick isn't a general solution to making full
> use of restrict. But, given that I think it'll take about 20-50 lines
> of code, and that it will get a lot of the common cases, I think it's
> worth it. Do you agree?
Yes, I agree. I just was curious on the status of Dannys work and if it
would obsolete what you propose.
Richard.