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
63658a9a
Commit
63658a9a
authored
Dec 03, 2001
by
Jakub Jelinek
Committed by
Jakub Jelinek
Dec 03, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/20011130-1.c: New test.
From-SVN: r47550
parent
5e2ce672
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/20011130-1.c
+25
-0
No files found.
gcc/testsuite/ChangeLog
View file @
63658a9a
2001-12-03 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20011130-1.c: New test.
2001-12-03 Nathan Sidwell <nathan@codesourcery.com>
2001-12-03 Nathan Sidwell <nathan@codesourcery.com>
* g++.dg/other/scope1.C: New test.
* g++.dg/other/scope1.C: New test.
...
...
gcc/testsuite/gcc.dg/20011130-1.c
0 → 100644
View file @
63658a9a
/* { dg-do compile } */
/* { dg-options "-O3 -g -finline-limit=100" } */
#define WORK(x, y) __asm__ ("" : "=r" (x) : "0" (x)); y += x + 26
#define SOME_WORK(x, y) WORK(x, y); WORK(x, y); WORK(x, y); WORK(x, y)
#define MORE_WORK(x, y) SOME_WORK(x, y); SOME_WORK(x, y); SOME_WORK(x, y)
#define EVEN_MORE_WORK(x, y) MORE_WORK(x, y); MORE_WORK(x, y); MORE_WORK(x, y)
#define LOTS_OF_WORK(x, y) EVEN_MORE_WORK(x, y); EVEN_MORE_WORK(x, y)
static
int
__attribute__
((
unused
))
foo
(
int
x
)
{
static
inline
int
bar
(
int
x
)
{
int
y
;
y
=
x
;
LOTS_OF_WORK
(
x
,
y
);
LOTS_OF_WORK
(
x
,
y
);
LOTS_OF_WORK
(
x
,
y
);
LOTS_OF_WORK
(
x
,
y
);
LOTS_OF_WORK
(
x
,
y
);
LOTS_OF_WORK
(
x
,
y
);
return
y
;
}
return
bar
(
x
);
}
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