https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53312
--- Comment #4 from philippe.waroquiers at skynet dot be --- (In reply to Eric Gallager from comment #3) > (In reply to philippe.waroquiers from comment #2) > > (In reply to comment #1) > > > This looks like PR53214 - unable to verify without a testcase though. > > > Thus, > > > please try a recent GCC 4.7 snapshot instead. You can also simply grep > > > for > > > optimization attribute usage in your sources. > > > > It looks effectively the same (or least similar). > > In my case, the offending line was: > > # pragma GCC optimize("-fomit-frame-pointer") > > > > When removing this line, the crash disappeared. > > I suppose this is the same bug as PR53214 (even if this bug > > was with attribute rather than pragma). > > > > Thanks for the help > > And that one was fixed, so I guess this is fixed too then. I tried to compile a recent Valgrind with the lto option, but it fails (might be related some hacks used by Valgrind based on a .o produced during the compilation). I have put on my list of things to do to further try -flto but in any case, it looks reasonable to consider this bug fixed. Thanks for the feedback