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
e63db8f6
Commit
e63db8f6
authored
Oct 11, 1999
by
Bernd Schmidt
Committed by
Bernd Schmidt
Oct 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bring copy_insn_1 and copy_rtx in sync and simplify them
From-SVN: r29902
parent
7c56a6ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
37 deletions
+12
-37
gcc/ChangeLog
+5
-0
gcc/emit-rtl.c
+4
-17
gcc/rtl.c
+3
-20
No files found.
gcc/ChangeLog
View file @
e63db8f6
Mon
Oct
11
20
:
31
:
51
1999
Bernd
Schmidt
<
bernds
@cygnus
.
co
.
uk
>
*
rtl
.
c
(
copy_rtx
)
:
Don
'
t
use
accessor
macros
to
copy
fields
.
*
emit
-
rtl
.
c
(
copy_insn_1
)
:
Likewise
.
Mon
Oct
11
13
:
29
:
06
1999
Geoffrey
Keating
<
geoffk
@cygnus
.
com
>
*
config
/
mips
/
mips
.
c
(
mips_build_va_list
)
:
Correct
...
...
gcc/emit-rtl.c
View file @
e63db8f6
...
...
@@ -3473,22 +3473,16 @@ copy_insn_1 (orig)
for
(
i
=
0
;
i
<
GET_RTX_LENGTH
(
GET_CODE
(
copy
));
i
++
)
{
copy
->
fld
[
i
]
=
orig
->
fld
[
i
];
switch
(
*
format_ptr
++
)
{
case
'e'
:
XEXP
(
copy
,
i
)
=
XEXP
(
orig
,
i
);
if
(
XEXP
(
orig
,
i
)
!=
NULL
)
XEXP
(
copy
,
i
)
=
copy_insn_1
(
XEXP
(
orig
,
i
));
break
;
case
'0'
:
case
'u'
:
XEXP
(
copy
,
i
)
=
XEXP
(
orig
,
i
);
break
;
case
'E'
:
case
'V'
:
XVEC
(
copy
,
i
)
=
XVEC
(
orig
,
i
);
if
(
XVEC
(
orig
,
i
)
==
orig_asm_constraints_vector
)
XVEC
(
copy
,
i
)
=
copy_asm_constraints_vector
;
else
if
(
XVEC
(
orig
,
i
)
==
orig_asm_operands_vector
)
...
...
@@ -3510,20 +3504,13 @@ copy_insn_1 (orig)
}
case
't'
:
XTREE
(
copy
,
i
)
=
XTREE
(
orig
,
i
);
break
;
case
'w'
:
XWINT
(
copy
,
i
)
=
XWINT
(
orig
,
i
);
break
;
case
'i'
:
XINT
(
copy
,
i
)
=
XINT
(
orig
,
i
);
break
;
case
's'
:
case
'S'
:
XSTR
(
copy
,
i
)
=
XSTR
(
orig
,
i
);
case
'u'
:
case
'0'
:
/* These are left unchanged. */
break
;
default
:
...
...
gcc/rtl.c
View file @
e63db8f6
...
...
@@ -418,21 +418,16 @@ copy_rtx (orig)
for
(
i
=
0
;
i
<
GET_RTX_LENGTH
(
GET_CODE
(
copy
));
i
++
)
{
copy
->
fld
[
i
]
=
orig
->
fld
[
i
];
switch
(
*
format_ptr
++
)
{
case
'e'
:
XEXP
(
copy
,
i
)
=
XEXP
(
orig
,
i
);
if
(
XEXP
(
orig
,
i
)
!=
NULL
)
XEXP
(
copy
,
i
)
=
copy_rtx
(
XEXP
(
orig
,
i
));
break
;
case
'u'
:
XEXP
(
copy
,
i
)
=
XEXP
(
orig
,
i
);
break
;
case
'E'
:
case
'V'
:
XVEC
(
copy
,
i
)
=
XVEC
(
orig
,
i
);
if
(
XVEC
(
orig
,
i
)
!=
NULL
)
{
XVEC
(
copy
,
i
)
=
rtvec_alloc
(
XVECLEN
(
orig
,
i
));
...
...
@@ -450,25 +445,13 @@ copy_rtx (orig)
}
case
't'
:
XTREE
(
copy
,
i
)
=
XTREE
(
orig
,
i
);
break
;
case
'w'
:
XWINT
(
copy
,
i
)
=
XWINT
(
orig
,
i
);
break
;
case
'i'
:
XINT
(
copy
,
i
)
=
XINT
(
orig
,
i
);
break
;
case
's'
:
case
'S'
:
XSTR
(
copy
,
i
)
=
XSTR
(
orig
,
i
);
break
;
case
'u'
:
case
'0'
:
/* Copy this through the wide int field; that's safest. */
X0WINT
(
copy
,
i
)
=
X0WINT
(
orig
,
i
);
/* These are left unchanged. */
break
;
default
:
...
...
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