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
80c65208
Commit
80c65208
authored
Mar 18, 2009
by
Jing Yu
Committed by
Doug Kwan
Mar 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing file and ChangeLog error in previous check-in
From-SVN: r144945
parent
d680e79d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
5 deletions
+71
-5
gcc/ChangeLog
+11
-5
gcc/testsuite/g++.dg/inherit/thunk10.C
+60
-0
No files found.
gcc/ChangeLog
View file @
80c65208
...
...
@@ -69,13 +69,19 @@
2009-03-17 Jing Yu <jingyu@google.com>
PR middle-end/39378
* function.h: Move is_thunk from rtl_data structure to function
structure.
* function.h (struct rtl_data): Move is_thunk from here...
(struct function): ...to here.
* cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
* varasm.c (assemble_start_function): Change is_thunk from crtl to
cfun.
* config/alpha/alpha.c: Change is_thunk from crtl to cfun.
* config/rs6000/rs6000.c: Change is_thunk from crtl to cfun.
* config/arm/arm.h: Change is_thunk from crtl to cfun.
* config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
cfun.
(alpha_does_function_need_gp, alpha_start_function): Likewise.
(alpha_output_function_end_prologue): Likewise.
(alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
* config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
(rs6000_output_function_epilogue): Likewise.
* config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
2009-03-17 Uros Bizjak <ubizjak@gmail.com>
...
...
gcc/testsuite/g++.dg/inherit/thunk10.C
0 → 100644
View file @
80c65208
/* { dg-options "-mthumb" { target arm*-*-* } } */
/* { dg-do run } */
/* { dg-timeout 100 } */
/* PR middle-end/39378 */
/* Check if the thunk target function is emitted correctly. */
class
B1
{
public
:
virtual
int
foo1
(
void
);
int
b1
;
};
class
B2
{
public
:
virtual
int
foo2
(
void
);
int
b2
;
};
class
D
:
public
B1
,
public
B2
{
int
foo1
(
void
);
int
foo2
(
void
);
int
d
;
};
int
B1
::
foo1
(
void
)
{
return
3
;
}
int
B2
::
foo2
(
void
)
{
return
4
;
}
int
D
::
foo1
(
void
)
{
return
1
;
}
int
D
::
foo2
(
void
)
{
return
2
;
}
__attribute__
((
noinline
))
int
test
(
B2
*
bp
)
{
return
bp
->
foo2
();
}
int
main
()
{
B2
*
bp
=
new
D
();
if
(
test
(
bp
)
==
2
)
return
0
;
else
return
1
;
}
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