Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
a5e668d5
Commit
a5e668d5
authored
Aug 25, 2005
by
Maciej W. Rozycki
Committed by
Maciej W. Rozycki
Aug 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/frame-address.c: New test.
From-SVN: r103485
parent
40f15089
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/frame-address.c
+42
-0
No files found.
gcc/testsuite/ChangeLog
View file @
a5e668d5
2005
-
08
-
26
Maciej
W
.
Rozycki
<
macro
@linux
-
mips
.
org
>
*
gcc
.
c
-
torture
/
execute
/
frame
-
address
.
c
:
New
test
.
2005
-
08
-
25
Nathan
Sidwell
<
nathan
@codesourcery
.
com
>
2005
-
08
-
25
Nathan
Sidwell
<
nathan
@codesourcery
.
com
>
PR
c
++/
20817
PR
c
++/
20817
...
...
gcc/testsuite/gcc.c-torture/execute/frame-address.c
0 → 100644
View file @
a5e668d5
int
check_fa_work
(
const
char
*
,
const
char
*
)
__attribute__
((
noinline
));
int
check_fa_mid
(
const
char
*
)
__attribute__
((
noinline
));
int
check_fa
(
char
*
)
__attribute__
((
noinline
));
int
how_much
(
void
)
__attribute__
((
noinline
));
int
check_fa_work
(
const
char
*
c
,
const
char
*
f
)
{
const
char
d
=
0
;
if
(
c
>=
&
d
)
return
c
>=
f
&&
f
>=
&
d
;
else
return
c
<=
f
&&
f
<=
&
d
;
}
int
check_fa_mid
(
const
char
*
c
)
{
const
char
*
f
=
__builtin_frame_address
(
0
);
return
check_fa_work
(
c
,
f
);
}
int
check_fa
(
char
*
unused
)
{
const
char
c
=
0
;
return
check_fa_mid
(
&
c
);
}
int
how_much
(
void
)
{
return
8
;
}
int
main
(
void
)
{
char
*
unused
=
__builtin_alloca
(
how_much
());
if
(
!
check_fa
(
unused
))
abort
();
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment