This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78397] The stack is not 8 bytes aligned on ARM
- From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jan 2017 15:04:03 +0000
- Subject: [Bug target/78397] The stack is not 8 bytes aligned on ARM
- Auto-submitted: auto-generated
- References: <bug-78397-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78397
--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
The __aeabi_read_tp call is to a special helper function and not really
considered to be a 'public interface'; the EABI only requires conformance to
the stack alignment constraints at public interfaces.
As such, I think that really this is a bug in the clang helper libraries and
that they shouldn't be making such an assumption.
The proposed patch is undesirable as it would extra stack activity in genuine
leaf functions as well as in this case and that makes the code less efficient.