This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81654] Should interrupt attribute be allowed together with naked attribute?
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Aug 2017 19:49:11 +0000
- Subject: [Bug target/81654] Should interrupt attribute be allowed together with naked attribute?
- Auto-submitted: auto-generated
- References: <bug-81654-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81654
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Short answer to the question in the summary: No.
You are out of luck with every function that touches the stack in any kind of
automatic way.
Patch that makes interrupt and naked attribute mutually exclusive is welcome,
even if the subject falls into "Doctor, it hurts when I do that..." category.