[NDS32] New option -malways-align and -malign-functions

Programming / Compilers / GCC - jasonwucj [138bc75d-0d04-0410-961f-82ee72b054a4] - 8 April 2018 06:00 EDT

gcc/
- config/nds32/nds32-md-auxiliary.c (output_cond_branch): Output align information if necessary. (output_cond_branch_compare_zero): Likewise.
- config/nds32/nds32.c (nds32_adjust_insn_length): Consider align case. (nds32_target_alignment): Refine for alignment.
- config/nds32/nds32.h (NDS32_ALIGN_P): Define. (FUNCTION_BOUNDARY): Modify.
- config/nds32/nds32.md (call_internal, call_value_internal): Consider align case.
- config/nds32/nds32.opt (malways-align, malign-functions): New.

e7aced20955 [NDS32] New option -malways-align and -malign-functions.
gcc/ChangeLog | 13 ++++++++++
gcc/config/nds32/nds32-md-auxiliary.c | 20 +++++++++------
gcc/config/nds32/nds32.c | 47 +++++++++++++++++++++--------------
gcc/config/nds32/nds32.h | 8 +++++-
gcc/config/nds32/nds32.md | 38 +++++++++++++++++++++++-----
gcc/config/nds32/nds32.opt | 8 ++++++
6 files changed, 100 insertions(+), 34 deletions(-)

Upstream: gcc.gnu.org


  • Share