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
ce3904da
Commit
ce3904da
authored
Feb 06, 2014
by
Ian Bolton
Committed by
Ian Bolton
Feb 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pr59597.c test to work with PIC variants too
From-SVN: r207541
parent
155b4fcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/tree-ssa/pr59597.c
+5
-2
No files found.
gcc/testsuite/ChangeLog
View file @
ce3904da
2014-02-06 Ian Bolton <ian.bolton@arm.com>
* gcc.dg/tree-ssa/pr59597.c: Make called function static
so that expected outcome works for PIC variants too.
2014-02-06 Yury Gribov <y.gribov@samsung.com>
Kugan Vivekanandarajah <kuganv@linaro.org>
...
...
gcc/testsuite/gcc.dg/tree-ssa/pr59597.c
View file @
ce3904da
...
...
@@ -8,7 +8,8 @@ typedef unsigned int u32;
u32
f
[
NNN
],
t
[
NNN
];
u16
Calc_crc8
(
u8
data
,
u16
crc
)
static
u16
Calc_crc8
(
u8
data
,
u16
crc
)
{
u8
i
=
0
,
x16
=
0
,
carry
=
0
;
for
(
i
=
0
;
i
<
8
;
i
++
)
...
...
@@ -31,7 +32,9 @@ u16 Calc_crc8(u8 data, u16 crc )
}
return
crc
;
}
int
main
(
int
argc
,
char
argv
[])
int
main
(
int
argc
,
char
argv
[])
{
int
i
,
j
;
u16
crc
;
for
(
j
=
0
;
j
<
10000000
;
j
++
)
...
...
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