diff options
author | Nick Clifton <nickc@redhat.com> | 2012-07-18 12:45:39 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2012-07-18 12:45:39 +0000 |
commit | dbbb10ea8201c559ee2e96d85f4d0626b5e58ea7 (patch) | |
tree | 71eedce1865f2736810a88f0fa04789041a1846a /gcc/doc | |
parent | 35bc024f383091e6604c46faf69b2203248a46b9 (diff) | |
download | gcc-dbbb10ea8201c559ee2e96d85f4d0626b5e58ea7.tar.gz |
* doc/invoke.texi (ARM Options): Document -munaligned-access.
From-SVN: r189613
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f752a66bc84..a513e0124d1 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -493,7 +493,8 @@ Objective-C and Objective-C++ Dialects}. -mcaller-super-interworking -mcallee-super-interworking @gol -mtp=@var{name} -mtls-dialect=@var{dialect} @gol -mword-relocations @gol --mfix-cortex-m3-ldrd} +-mfix-cortex-m3-ldrd @gol +-munaligned-access} @emph{AVR Options} @gccoptlist{-mmcu=@var{mcu} -maccumulate-args -mbranch-cost=@var{cost} @gol @@ -10929,6 +10930,23 @@ with overlapping destination and base registers are used. This option avoids generating these instructions. This option is enabled by default when @option{-mcpu=cortex-m3} is specified. +@item -munaligned-access +@itemx -mno-unaligned-access +@opindex munaligned-access +@opindex mno-unaligned-access +Enables (or disables) reading and writing of 16- and 32- bit values +from addresses that are not 16- or 32- bit aligned. By default +unaligned access is disabled for all pre-ARMv6 and all ARMv6-M +architectures, and enabled for all other architectures. If unaligned +access is not enabled then words in packed data structures will be +accessed a byte at a time. + +The ARM attribute @code{Tag_CPU_unaligned_access} will be set in the +generated object file to either true or false, depending upon the +setting of this option. If unaligned access is enabled then the +preprocessor symbol @code{__ARM_FEATURE_UNALIGNED} will also be +defined. + @end table @node AVR Options |