blob: 26d505e3bea39841d8ddbb068f13832e26eb0a2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* { dg-do compile } */
/* { dg-options "-O2 -falign-functions=64:8" } */
void
a (void)
{
}
#pragma GCC push_options
#pragma GCC optimize "align-functions=128:100"
void b (void)
{
}
#pragma GCC pop_options
void
__attribute__((optimize("-falign-functions=88:88:32")))
c (void)
{
}
void
d (void)
{
}
/* { dg-final { scan-assembler-times ".p2align 6,,7" 2 } } */
/* { dg-final { scan-assembler-times ".p2align 7,,99" 1 } } */
/* { dg-final { scan-assembler-times ".p2align 7,,87" 1 } } */
/* { dg-final { scan-assembler-times ".p2align 5" 1 } } */
|