https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62249
--- Comment #4 from Zack Weinberg <zackw at panix dot com> --- The "delta-minimized self-contained test case" should require only `-O2 -flto` to reproduce the problem. The other test case, however, should require `-D_FORTIFY_SOURCE=2` in addition, and to be compiled against recent glibc. Note also that this does not happen with 4.8 or older.