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
f0722107
Commit
f0722107
authored
Jun 28, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(copy_rtx_if_shared): Don't try to copy a 0-length vector.
From-SVN: r4774
parent
ef5d30c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/emit-rtl.c
+5
-5
No files found.
gcc/emit-rtl.c
View file @
f0722107
...
...
@@ -1418,12 +1418,12 @@ copy_rtx_if_shared (orig)
if
(
XVEC
(
x
,
i
)
!=
NULL
)
{
register
int
j
;
int
len
=
XVECLEN
(
x
,
i
);
if
(
copied
)
XVEC
(
x
,
i
)
=
gen_rtvec_v
(
XVECLEN
(
x
,
i
),
&
XVECEXP
(
x
,
i
,
0
));
for
(
j
=
0
;
j
<
XVECLEN
(
x
,
i
);
j
++
)
XVECEXP
(
x
,
i
,
j
)
=
copy_rtx_if_shared
(
XVECEXP
(
x
,
i
,
j
));
if
(
copied
&&
len
>
0
)
XVEC
(
x
,
i
)
=
gen_rtvec_v
(
len
,
&
XVECEXP
(
x
,
i
,
0
));
for
(
j
=
0
;
j
<
len
;
j
++
)
XVECEXP
(
x
,
i
,
j
)
=
copy_rtx_if_shared
(
XVECEXP
(
x
,
i
,
j
));
}
break
;
}
...
...
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