[NDS32] New option -malways-align and -malign-functions.
authorChung-Ju Wu <jasonwucj@gmail.com>
Sun, 8 Apr 2018 06:00:34 +0000 (06:00 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sun, 8 Apr 2018 06:00:34 +0000 (06:00 +0000)
commit43fa41c1aaa57d59cbb00ed5c8cfa185d075b105
tree652b54713eade088d9d7858699c190b4c8fb12da
parent57aaf0cc9e8bd98c3aac58f21d2ff4f610bc637a
[NDS32] New option -malways-align and -malign-functions.

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.

From-SVN: r259217
gcc/ChangeLog
gcc/config/nds32/nds32-md-auxiliary.c
gcc/config/nds32/nds32.c
gcc/config/nds32/nds32.h
gcc/config/nds32/nds32.md
gcc/config/nds32/nds32.opt