[Bug rtl-optimization/17972] const/pure functions result in bad asm

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 13 14:51:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-13 14:51 -------
What do you think is wrong, attach the difference.  Also const/pure functions can changed so that they 
are only called once.  And since they are pure (or is it const) is known not to access memory, the 
barrier:
             __asm__ __volatile__("": : :"memory"); 

does not make a difference.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |rtl-optimization


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



More information about the Gcc-bugs mailing list