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
2a4217d3
Commit
2a4217d3
authored
Nov 07, 2009
by
Jason Merrill
Committed by
Jason Merrill
Nov 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/abi/regparm1.C: Fix execute test.
From-SVN: r154000
parent
c58bbf00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/abi/regparm1.C
+15
-4
No files found.
gcc/testsuite/ChangeLog
View file @
2a4217d3
2009-11-07 Jason Merrill <jason@redhat.com>
* g++.dg/abi/regparm1.C: Fix execute test.
2009-11-07 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/41643
...
...
gcc/testsuite/g++.dg/abi/regparm1.C
View file @
2a4217d3
...
...
@@ -7,17 +7,28 @@ extern "C" int printf(const char *, ...);
void
*
save_this
;
int
*
save_addr1
,
*
save_addr2
;
int
fail
;
struct
Base
{
__attribute
((
regparm
(
3
)))
void
set
(
int
*
addr1
,
int
*
addr2
)
{
if
(
this
!=
save_this
)
printf
(
"error! this == %p, should be %p
\n
"
,
this
,
save_this
);
{
++
fail
;
printf
(
"error! this == %p, should be %p
\n
"
,
this
,
save_this
);
}
if
(
addr1
!=
save_addr1
)
printf
(
"error! addr1 == %p, should be %p
\n
"
,
addr1
,
save_addr1
);
{
++
fail
;
printf
(
"error! addr1 == %p, should be %p
\n
"
,
addr1
,
save_addr1
);
}
if
(
addr2
!=
save_addr2
)
printf
(
"error! addr2 == %p, should be %p
\n
"
,
addr2
,
save_addr1
);
{
++
fail
;
printf
(
"error! addr2 == %p, should be %p
\n
"
,
addr2
,
save_addr1
);
}
}
};
...
...
@@ -36,5 +47,5 @@ int main()
(
obj
.
*
pfm3
)
(
&
x
,
&
y
);
(
obj
.
*
pfm4
)
(
&
x
,
&
y
);
return
0
;
return
fail
;
}
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