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
ddc54eaa
Commit
ddc54eaa
authored
26 years ago
by
Nick Clifton
Committed by
Nick Clifton
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with inlining functions which return a multiword CONCAT value
From-SVN: r24328
parent
c49445e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
gcc/ChangeLog
+10
-0
gcc/emit-rtl.c
+1
-1
gcc/integrate.c
+11
-1
No files found.
gcc/ChangeLog
View file @
ddc54eaa
Tue
Dec
15
11
:
55
:
30
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
integrate
.
c
(
copy_rtx_and_substitute
)
:
If
a
SUBREG
is
replaced
by
a
CONCAT
whoes
components
do
not
have
the
same
mode
as
the
original
SUBREG
,
use
a
new
SUBREG
to
restore
the
mode
.
*
emit
-
rtl
.
c
(
subreg_realpart_p
)
:
Cope
with
subregs
containing
multiword
complex
values
.
1998
-
12
-
15
Zack
Weinberg
<
zack
@rabi
.
phys
.
columbia
.
edu
>
*
cppalloc
.
c
:
Add
xstrdup
here
.
...
...
This diff is collapsed.
Click to expand it.
gcc/emit-rtl.c
View file @
ddc54eaa
...
...
@@ -942,7 +942,7 @@ subreg_realpart_p (x)
if
(
GET_CODE
(
x
)
!=
SUBREG
)
abort
();
return
SUBREG_WORD
(
x
)
==
0
;
return
SUBREG_WORD
(
x
)
*
UNITS_PER_WORD
<
GET_MODE_UNIT_SIZE
(
GET_MODE
(
SUBREG_REG
(
x
)))
;
}
/* Assuming that X is an rtx (e.g., MEM, REG or SUBREG) for a value,
...
...
This diff is collapsed.
Click to expand it.
gcc/integrate.c
View file @
ddc54eaa
...
...
@@ -2451,7 +2451,17 @@ copy_rtx_and_substitute (orig, map)
return
gen_rtx_SUBREG
(
GET_MODE
(
orig
),
SUBREG_REG
(
copy
),
SUBREG_WORD
(
orig
)
+
SUBREG_WORD
(
copy
));
else
if
(
GET_CODE
(
copy
)
==
CONCAT
)
return
(
subreg_realpart_p
(
orig
)
?
XEXP
(
copy
,
0
)
:
XEXP
(
copy
,
1
));
{
rtx
retval
=
subreg_realpart_p
(
orig
)
?
XEXP
(
copy
,
0
)
:
XEXP
(
copy
,
1
);
if
(
GET_MODE
(
retval
)
==
GET_MODE
(
orig
))
return
retval
;
else
return
gen_rtx_SUBREG
(
GET_MODE
(
orig
),
retval
,
(
SUBREG_WORD
(
orig
)
%
(
GET_MODE_UNIT_SIZE
(
GET_MODE
(
SUBREG_REG
(
orig
)))
/
(
unsigned
)
UNITS_PER_WORD
)));
}
else
return
gen_rtx_SUBREG
(
GET_MODE
(
orig
),
copy
,
SUBREG_WORD
(
orig
));
...
...
This diff is collapsed.
Click to expand it.
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