common.opt (flimit-function-alignment): New.
authorBernd Schmidt <bernds@redhat.com>
Thu, 24 Nov 2016 12:54:56 +0000 (12:54 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 24 Nov 2016 12:54:56 +0000 (12:54 +0000)
commit8cac4d85875ff23588908341fdd69fb4c39a7210
tree931322bd6dd2151c71ebdfbe6eb4426040b2f49b
parenteb2afa1a80613d37aa12fdd5a0624b45fdef9377
common.opt (flimit-function-alignment): New.

gcc/
* common.opt (flimit-function-alignment): New.
* doc/invoke.texi (-flimit-function-alignment): Document.
* emit-rtl.h (struct rtl_data): Add max_insn_address field.
* final.c (shorten_branches): Set it.
* varasm.c (assemble_start_function): Limit alignment if
requested.

gcc/testsuite/
* gcc.target/i386/align-limit.c: New test.

From-SVN: r242836
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/emit-rtl.h
gcc/final.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/align-limit.c [new file with mode: 0644]
gcc/varasm.c