This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/82221] internal compiler error: in print_reg, at config/i386/i386.c:17656
- From: "jpoimboe at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Sep 2017 17:17:16 +0000
- Subject: [Bug target/82221] internal compiler error: in print_reg, at config/i386/i386.c:17656
- Auto-submitted: auto-generated
- References: <bug-82221-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82221
--- Comment #7 from Josh Poimboeuf <jpoimboe at redhat dot com> ---
Putting "sp" in the clobbers list is something that was suggested to me on the
GCC mailing list a while back. And, other than this rare bug, it seems to do
exactly what we want, which is, force GCC to save the frame pointer before
inserting the inline asm. We need that to happen when we put a "call"
instruction inside the inline asm, so that we can get a reliable stack trace
from the called function.
I know that putting "sp" in the clobbers list is an undocumented "feature", so
maybe it is user error. However it would be nice to have something like this
as a real feature. Either with "sp", or maybe a new clobbers keyword like
"frame".
Would that be feasible?