[Bug target/82221] internal compiler error: in print_reg, at config/i386/i386.c:17656

jpoimboe at redhat dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 15 22:51:00 GMT 2017


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.


More information about the Gcc-bugs mailing list