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
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Guenther <richard dot guenther at gmail dot com>
- Cc: GCC <gcc at gcc dot gnu dot org>, Daniel Berlin <dberlin at dberlin dot org>
- Date: Sat, 01 Sep 2007 08:48:04 -0700
- Subject: Re: RFC: Hack to make restrict more useful
- References: <46D89B03.3070301@codesourcery.com> <84fc9c000709010152t1e1f3aeah371336734c456325@mail.gmail.com>
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?
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713