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 rtl-optimization/17972] const/pure functions result in bad asm


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


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