[Bug tree-optimization/21712] missed optimization due with const function and pulling out of loops

TazForEver at dlfp dot org gcc-bugzilla@gcc.gnu.org
Sun May 22 19:54:00 GMT 2005


------- Additional Comments From TazForEver at dlfp dot org  2005-05-22 19:54 -------
<quote>const
    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 pure attribute below, since function is not allowed to read
global memory.</quote>

So get_type2() should not use any global table. Right ?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21712



More information about the Gcc-bugs mailing list