http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59622
Bug ID: 59622 Summary: trung gcc-4.9.0:internal compiler error: verify_gimple failed Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: nheghathivhistha at gmail dot com Created attachment 31535 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31535&action=edit Reduced precompiled source file Gcc 4.9.0 trunk from 2013-12-28 ICEs while compiling Gentoo LLVM-3.3-r2: x86_64-pc-linux-gnu-g++ -m32 -fvisibility-inlines-hidden -fno-exceptions -fPIC -O2 -ggdb -pipe -march=native -mtune=native -flto=4 -pedantic -c ./testcase.i./testcase.i: In member function ‘llvm::Value* {anonymous}::LibCallOptimization::OptimizeCall(llvm::CallInst*, llvm::DataLayout*, llvm::TargetLibraryInfo*, llvm::IRBuilder<>&)’: ./testcase.i:225:12: error: LHS in noreturn call Value *OptimizeCall (CallInst * CI, DataLayout *, TargetLibraryInfo *, ^ D.2995 = __builtin_unreachable (this, D.2998, 0B, MEM[(const struct IRBuilder &)B]); ./testcase.i:225:12: internal compiler error: verify_gimple failed Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions Crashes the same way without -flto. Gcc-4.8.2 not ICEs but fails other way with -flto but succeeds without -flto. C-reduce reduced testcase attached.