-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Emit nounwind LLVM attribute with -C panic=abort #44992
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently whenever you compile with
-C panic=abortwe will omitinvokeinstructions and theuwtableLLVM function attribute, but we should also set thenounwindattribute. It looks like on ARM this forces the object file to not reference functions that otherwise a function missing thenounwindattribute will not have.This should help out remove some weird hacks for embedded work!
cc @japaric