Issue 171132
Summary clang frontend missing nounwind for extern "C" functions
Labels clang:codegen, missed-optimization
Assignees
Reporter NewSigma
    Clang frontend failed to emit `unwind` attribute for `fn()`. The behavior is inconsistent to GCC. [godbolt](https://godbolt.org/z/cezrzP6Ys)

``` C++
extern "C" {
    void fn();
}

void call() noexcept {
 fn();
}
```

Expected behavior: Generate code that is as efficient as GCC.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to