[Bug tree-optimization/77983] [5/6/7 Regression] destructor call optimized out

2016-10-14 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77983

--- Comment #2 from Andrew Pinski  ---
Use something different than memset is the other fix. There is also a thread in
glibc mailing list about a secure memset

[Bug tree-optimization/77983] [5/6/7 Regression] destructor call optimized out

2016-10-14 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77983

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||marxin at gcc dot gnu.org
 Resolution|--- |INVALID

--- Comment #1 from Martin Liška  ---
Hi.

Please look at documentation for -flifetime-dse, btw.:

g++ pr77983.cpp -O1 -flifetime-dse=0 && ./a.out 
Before:000102030405060708090a0b0c0d0e0f10111213
After :

I'm closing as invalid.