Add FT32B support

Programming / Compilers / GCC - jamesbowman [138bc75d-0d04-0410-961f-82ee72b054a4] - 2 November 2017 19:41 EDT

FT32B is a new FT32 architecture type. FT32B has a code compression scheme which uses linker relaxations. It also has a security option to prevent reads from program memory.

gcc/
- config/ft32/ft32.c (ft32_addr_space_legitimate_address_p): increase offset range for FT32B.
- config/ft32/ft32.h: option "mcompress" enables relaxation.
- config/ft32/ft32.md: Add TARGET_NOPM.
- config/ft32/ft32.opt: Add mft32b, mcompress, mnopm.
- gcc/doc/invoke.texi: Add mft32b, mcompress, mnopm.

69121b015ed Add FT32B support
gcc/ChangeLog | 9 +++++++++
gcc/config/ft32/ft32.c | 7 +++++--
gcc/config/ft32/ft32.h | 7 ++++---
gcc/config/ft32/ft32.md | 8 ++++++--
gcc/config/ft32/ft32.opt | 12 ++++++++++++
gcc/doc/invoke.texi | 14 +++++++++++++-
6 files changed, 49 insertions(+), 8 deletions(-)

Upstream: gcc.gnu.org


  • Share