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
9688f9ad
Commit
9688f9ad
authored
May 23, 2001
by
Richard Henderson
Committed by
Richard Henderson
May 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* integrate.c (expand_inline_function): Handle CONCAT DECL_RESULT.
From-SVN: r42515
parent
f8710242
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/ChangeLog
+4
-0
gcc/integrate.c
+25
-0
No files found.
gcc/ChangeLog
View file @
9688f9ad
2001
-
05
-
23
Richard
Henderson
<
rth
@redhat
.
com
>
*
integrate
.
c
(
expand_inline_function
)
:
Handle
CONCAT
DECL_RESULT
.
2001
-
05
-
23
Neil
Booth
<
neil
@daikokuya
.
demon
.
co
.
uk
>
*
cpp
.
texi
:
Update
for
handling
of
charconsts
.
...
...
gcc/integrate.c
View file @
9688f9ad
...
...
@@ -1083,6 +1083,31 @@ expand_inline_function (fndecl, parms, target, ignore, type,
else
map
->
reg_map
[
REGNO
(
loc
)]
=
reg_to_map
;
}
else
if
(
GET_CODE
(
loc
)
==
CONCAT
)
{
enum
machine_mode
departing_mode
=
TYPE_MODE
(
type
);
enum
machine_mode
arriving_mode
=
GET_MODE
(
DECL_RTL
(
DECL_RESULT
(
fndecl
)));
if
(
departing_mode
!=
arriving_mode
)
abort
();
if
(
GET_CODE
(
XEXP
(
loc
,
0
))
!=
REG
||
GET_CODE
(
XEXP
(
loc
,
1
))
!=
REG
)
abort
();
/* Don't use MEMs as direct targets because on some machines
substituting a MEM for a REG makes invalid insns.
Let the combiner substitute the MEM if that is valid. */
if
(
target
==
0
||
GET_CODE
(
target
)
!=
REG
||
GET_MODE
(
target
)
!=
departing_mode
)
target
=
gen_reg_rtx
(
departing_mode
);
if
(
GET_CODE
(
target
)
!=
CONCAT
)
abort
();
map
->
reg_map
[
REGNO
(
XEXP
(
loc
,
0
))]
=
XEXP
(
target
,
0
);
map
->
reg_map
[
REGNO
(
XEXP
(
loc
,
1
))]
=
XEXP
(
target
,
1
);
}
else
abort
();
...
...
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