[Bug c++/78047] [7 Regression] Chromium apparently gets miscompiled

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 20 09:29:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78047

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
  <bb 10>:                                                                      
  MEM[(struct  &)&builder] ={v} {CLOBBER};                                      
  _53 = MEM[(struct SkAutoSTMalloc *)&gQuadIndexBufferKey_storage + 8B].fPtr;   
  if (_53 != &MEM[(struct SkAutoSTMalloc *)&gQuadIndexBufferKey_storage +
8B].D.47025.fTStorage)                                                          
    goto <bb 12>;                                                               
  else                                                                          
    goto <bb 11>;                                                               

  <bb 11>:  
...
  <bb 12>:                                                                      
  sk_free (_53); 

vs.

  <bb 10>:                                                                      
  MEM[(struct  &)&builder] ={v} {CLOBBER};                                      
  _53 = MEM[(struct SkAutoSTMalloc *)&gQuadIndexBufferKey_storage + 8B].fPtr;   
  sk_free (_53);                                                                
  goto <bb 12>;                                                                 

<L19>:                                                                          
  goto <bb 41> (<L17>);                                                         

  <bb 12>: 

-fno-tree-pta "fixes" the issue.


More information about the Gcc-bugs mailing list