This is the mail archive of the gcc@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: RFC: Hack to make restrict more useful


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


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