Automatic inference of const/pure function attributes

Yang Zhang yanghatespam@gmail.com
Sat Jan 24 10:28:00 GMT 2009


Can gcc automatically determine that a function is const/pure (on a 
best-effort basis), instead of requiring the user to explicitly specify 
the attribute always?  (I realize determining this may be difficult for 
certain functions, or the user may simply wish to specify this anyway 
regardless of the true nature of the function.)
-- 
Yang Zhang
http://www.mit.edu/~y_z/



More information about the Gcc-help mailing list