diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-01-31 09:26:52 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-01-31 09:26:52 +0100 |
commit | 7b56ebc34708f685bd5cf47763d13614c7e707e1 (patch) | |
tree | 999cbd90ddb3c9f9d9abb52b32b892b140024028 /gcc | |
parent | ebc2f4010dc789bf50fe46460594fd947df8084d (diff) | |
download | gcc-7b56ebc34708f685bd5cf47763d13614c7e707e1.zip gcc-7b56ebc34708f685bd5cf47763d13614c7e707e1.tar.gz gcc-7b56ebc34708f685bd5cf47763d13614c7e707e1.tar.bz2 |
re PR c/84100 (Function __attribute__((optimize(align-loops=32))) gives spurious warning and is ignored)
PR c/84100
* common.opt (falign-functions=, falign-jumps=, falign-labels=,
falign-loops=): Add Optimization flag.
* gcc.dg/pr84100.c: New test.
From-SVN: r257219
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/common.opt | 8 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr84100.c | 14 |
4 files changed, 29 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b18ca1..8787d37 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-01-31 Jakub Jelinek <jakub@redhat.com> + + PR c/84100 + * common.opt (falign-functions=, falign-jumps=, falign-labels=, + falign-loops=): Add Optimization flag. + 2017-01-30 Jeff Law <law@redhat.com> PR target/84064 diff --git a/gcc/common.opt b/gcc/common.opt index 874d0c2..3e9e310 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -954,7 +954,7 @@ Common Report Var(align_functions,0) Optimization UInteger Align the start of functions. falign-functions= -Common RejectNegative Joined UInteger Var(align_functions) +Common RejectNegative Joined UInteger Var(align_functions) Optimization flimit-function-alignment Common Report Var(flag_limit_function_alignment) Optimization Init(0) @@ -964,21 +964,21 @@ Common Report Var(align_jumps,0) Optimization UInteger Align labels which are only reached by jumping. falign-jumps= -Common RejectNegative Joined UInteger Var(align_jumps) +Common RejectNegative Joined UInteger Var(align_jumps) Optimization falign-labels Common Report Var(align_labels,0) Optimization UInteger Align all labels. falign-labels= -Common RejectNegative Joined UInteger Var(align_labels) +Common RejectNegative Joined UInteger Var(align_labels) Optimization falign-loops Common Report Var(align_loops,0) Optimization UInteger Align the start of loops. falign-loops= -Common RejectNegative Joined UInteger Var(align_loops) +Common RejectNegative Joined UInteger Var(align_loops) Optimization fargument-alias Common Ignore diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a83ec02..80cb488 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-01-31 Jakub Jelinek <jakub@redhat.com> + + PR c/84100 + * gcc.dg/pr84100.c: New test. + 2018-01-30 Jeff Law <law@redhat.com> PR target/84064 diff --git a/gcc/testsuite/gcc.dg/pr84100.c b/gcc/testsuite/gcc.dg/pr84100.c new file mode 100644 index 0000000..86fbc4f --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr84100.c @@ -0,0 +1,14 @@ +/* PR c/84100 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +void bar (void); + +__attribute__((optimize ("align-loops=16", "align-jumps=16", + "align-labels=16", "align-functions=16"))) +void +foo (void) +{ /* { dg-bogus "bad option" } */ + for (int i = 0; i < 1024; ++i) + bar (); +} |