This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]