+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
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)
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
--- /dev/null
+/* 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 ();
+}