[PATCH] Sanitizing the middle-end interface to the back-end for strict alignment

Bernd Edlinger bernd.edlinger@hotmail.de
Thu Aug 15 21:27:00 GMT 2019


Hi,

this is the split out part from the "Fix not 8-byte aligned ldrd/strd on ARMv5 (PR 89544)"
which is sanitizing the middle-end interface to the back-end for strict alignment,
and a couple of bug-fixes that are necessary to survive boot-strap.
It is intended to be applied after the PR 89544 fix.

I think it would be possible to change the default implementation of STACK_SLOT_ALIGNMENT
to make all stack variables always naturally aligned instead of doing that only
in assign_parm_setup_stack, but would still like to avoid changing too many things
that do not seem to have a problem.  Since this would affect many targets, and more
kinds of variables that may probably not have a strict alignment problem.
But I am ready to take your advice though.


Boot-strapped and reg-tested on x86_64-pc-linux-gnu and arm-linux-gnueabihf
Is it OK for trunk?


Thanks
Bernd.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-strict-align.diff
Type: text/x-patch
Size: 9187 bytes
Desc: patch-strict-align.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190815/4aa1f576/attachment.bin>


More information about the Gcc-patches mailing list