gcc: xtensa: add -m[no-]strict-align option
gcc/ * config/xtensa/xtensa-opts.h: New header. * config/xtensa/xtensa.h (STRICT_ALIGNMENT): Redefine as xtensa_strict_align. * config/xtensa/xtensa.cc (xtensa_option_override): When -m[no-]strict-align is not specified in the command line set xtensa_strict_align to 0 if the hardware supports both unaligned loads and stores or to 1 otherwise. * config/xtensa/xtensa.opt (mstrict-align): New option. * doc/invoke.texi (Xtensa Options): Document -m[no-]strict-align.
Showing
- gcc/config/xtensa/xtensa-opts.h 28 additions, 0 deletionsgcc/config/xtensa/xtensa-opts.h
- gcc/config/xtensa/xtensa.cc 4 additions, 0 deletionsgcc/config/xtensa/xtensa.cc
- gcc/config/xtensa/xtensa.h 1 addition, 1 deletiongcc/config/xtensa/xtensa.h
- gcc/config/xtensa/xtensa.opt 7 additions, 0 deletionsgcc/config/xtensa/xtensa.opt
- gcc/doc/invoke.texi 13 additions, 1 deletiongcc/doc/invoke.texi
Loading
Please register or sign in to comment