This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Should we create an attribute malloc for supposed alias benefits?
- To: Robert Lipe <robertlipe at usa dot net>
- Subject: Re: Should we create an attribute malloc for supposed alias benefits?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 07 Sep 1999 01:20:21 -0600
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, egcs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990906170243.C11191@rjlhome.sco.com>you write:
> Instead of adding more attributes, isn't this the very type of
> functionality what C9X calls "restrict"?
I do not believe they are identical, but I'd have to go back and read the
various "restrict" threads to be sure.
Mark as the resident expert, can "restrict" be used to tell the aliasing code
that the return value from certain functions can never alias anything else
in the program?
jeff