From: qinzhao <qing.z...@oracle.com> Date: Wed, 2 Aug 2017 10:27:51 -0500
> This patch adds support to GCC for the misaligned load/store > instructions introduced in the Oracle SPARC Architecture 2017 and > implemented by the SPARC M8 processor. > > A new command line option -mmisaligned is added, that activates the > usage of the new instructions. > > The SPARC backend is modified to use the misaligned load/store > instructions when loading/storing data from/to addresses that are > known to be misaligned at compile time (such as in packed structs). > > New tests are added to check that the proper instructions are used > when loading and storing from/to packed structs. > > The GCC manual is expanded to cover the new command-line option. STRICT_ALIGNMENT has a lot of implications. I think just because we happen to have misaligned loads and stores available doesn't mean we want all of the side effects associated with STRICT_ALIGNMENT being true.