tree-tailcall.c
33.4 KB
-
PR c++/82081 - tail call optimization breaks noexcept · d407e7f5
If a noexcept function calls a function that might throw, doing the tail call optimization means that an exception thrown in the called function will propagate out, breaking the noexcept specification. So we need to prevent the optimization in that case. * tree-tailcall.c (find_tail_calls): Don't turn a call from a nothrow function to a might-throw function into a tail call. From-SVN: r270656
Jason Merrill committed