This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[using gcc book] ch5.25 declaring attributes of functions
- From: Chris Devers <cdevers at pobox dot com>
- To: GCC list <gcc at gcc dot gnu dot org>
- Date: Tue, 26 Aug 2003 00:18:17 -0400 (EDT)
- Subject: [using gcc book] ch5.25 declaring attributes of functions
- Reply-to: Chris Devers <cdevers at pobox dot com>
In section 5.25, the description of the 'const' attribute notes:
Many functions do not examine any values except their
arguments, and have no effects except the return value.
Basically this is just slightly more strict class than
the @code{pure} attribute above, since function is not
allowed to read global memory.
I've rewritten that second sentence as
This case is slightly more strict than the @code{pure}
attribute above, since the function is not allowed to
read global memory.
--
Chris Devers cdevers@pobox.com
http://devers.homeip.net:8080/blog/
upgrade, n. & v. trans. [From up + Latin gradus "steep incline."]
1 n. An expensive counterexample to earlier upward-compatibility
conjectures.
2 n. A painful crisis which belatedly restores one's faith in the
previous system.
3. v. trans. To replace (obsolete stability) with something less boring.
See also APPLE; CONVERSION; OBSOLESCENCE; RIGHTSIZE; SIDEGRADE.
-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995