This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Exact meaning of __attribute__(__const__)
- To: <gcc-help at gcc dot gnu dot org>
- Subject: Exact meaning of __attribute__(__const__)
- From: "Matthias Clasen" <matthiasc at poet dot de>
- Date: Fri, 5 Oct 2001 10:16:39 +0200
The gcc manual states that const functions may not read global memory.
Is it really that strict or is it permittable for a const function to read
global memory which doesn't change over time (which I've heard) ?
Thanks in advance,
Matthias