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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
zero-scratch-regs-leafy-2.c
blob
d450620c1fcfe313647bc436791542724d7afa5a
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
#include <assert.h>
5
int
result
=
0
;
6
7
int
8
__attribute__
((
noipa
))
9
__attribute__
((
zero_call_used_regs
(
"leafy"
)))
10
foo1
(
int
x
)
11
{
12
return
(
x
+
1
);
13
}
14
15
int
16
__attribute__
((
noipa
))
17
__attribute__
((
zero_call_used_regs
(
"leafy"
)))
18
foo2
(
int
x
)
19
{
20
return
foo1
(
x
+
2
);
21
}