repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-fre-83.c
blob
cf6be22937732c27ea621a73e9250d008515ca54
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre1-details" } */
3
4
struct
X
5
{
6
int
a
:
1
;
7
int
b
:
1
;
8
}
x
;
9
10
void
foo
(
int
v
)
11
{
12
x
.
a
=
1
;
13
x
.
b
=
v
;
14
x
.
a
=
1
;
15
x
.
b
=
v
;
16
}
17
18
struct
Y
19
{
20
_Bool a
;
21
_Bool b
;
22
}
y
;
23
24
void
bar
(
int
v
)
25
{
26
y
.
a
=
1
;
27
y
.
b
=
v
;
28
y
.
a
=
1
;
29
y
.
b
=
v
;
30
}
31
32
/* { dg-final { scan-tree-dump-times "Deleted redundant store" 4 "fre1" } } */