------- Comment #1 from pinskia at gcc dot gnu dot org  2010-06-30 23:42 -------
Stupid glibc extensions.

__malloc_hook and  __free_hook are not part of standard C90/C99.  

-fno-builtin-malloc will disable this optimization.  Basically malloc cannot
touch global memory as far as the compiler knows so it optimizes out the extra
stores.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|c                           |tree-optimization


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

Reply via email to