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
11e5489b
Commit
11e5489b
authored
Oct 13, 2002
by
Richard Henderson
Committed by
Richard Henderson
Oct 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
From-SVN: r58102
parent
8fa7c5af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
gcc/ChangeLog
+4
-0
gcc/rtl.c
+4
-11
No files found.
gcc/ChangeLog
View file @
11e5489b
2002
-
10
-
13
Richard
Henderson
<
rth
@redhat
.
com
>
*
rtl
.
c
(
shallow_copy_rtx
)
:
Use
memcpy
for
the
entire
node
.
2002
-
10
-
12
Neil
Booth
<
neil
@daikokuya
.
co
.
uk
>
PR
preprocessor
/
7862
...
...
gcc/rtl.c
View file @
11e5489b
...
...
@@ -387,19 +387,12 @@ rtx
shallow_copy_rtx
(
orig
)
rtx
orig
;
{
int
i
;
RTX_CODE
code
=
GET_CODE
(
orig
);
rtx
copy
=
rtx_alloc
(
code
);
PUT_MODE
(
copy
,
GET_MODE
(
orig
));
RTX_FLAG
(
copy
,
in_struct
)
=
RTX_FLAG
(
orig
,
in_struct
);
RTX_FLAG
(
copy
,
volatil
)
=
RTX_FLAG
(
orig
,
volatil
);
RTX_FLAG
(
copy
,
unchanging
)
=
RTX_FLAG
(
orig
,
unchanging
);
RTX_FLAG
(
copy
,
integrated
)
=
RTX_FLAG
(
orig
,
integrated
);
RTX_FLAG
(
copy
,
frame_related
)
=
RTX_FLAG
(
orig
,
frame_related
);
size_t
n
=
GET_RTX_LENGTH
(
code
);
rtx
copy
=
ggc_alloc_rtx
(
n
);
for
(
i
=
0
;
i
<
GET_RTX_LENGTH
(
code
);
i
++
)
copy
->
fld
[
i
]
=
orig
->
fld
[
i
]
;
memcpy
(
copy
,
orig
,
sizeof
(
struct
rtx_def
)
+
sizeof
(
rtunion
)
*
(
n
-
1
))
;
return
copy
;
}
...
...
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