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 22:51:41 +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 #14 from Josh Poimboeuf <jpoimboe at redhat dot com> ---
(In reply to H.J. Lu from comment #13)
> (In reply to Josh Poimboeuf from comment #12)
> > I would like to clarify that most of the time, when we use "sp" in the
> > clobbers list, the stack does *not* need to be realigned. And in those
>
> Yes, stack alignment may be needed due to:
>
> typedef struct {
> u64 __attribute__((aligned(8))) counter;
> } atomic64_t;
>
> with -mpreferred-stack-boundary=2.
Yes, in the above example that is true. However there are many more cases in
the kernel where we want to use the "sp" clobbers, where stack alignment is not
needed.