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
c0560887
Commit
c0560887
authored
Jan 14, 1997
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy a CONST_INT rtx in force_const_mem
From-SVN: r13490
parent
8839fca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
gcc/varasm.c
+14
-8
No files found.
gcc/varasm.c
View file @
c0560887
...
...
@@ -3407,19 +3407,25 @@ force_const_mem (mode, x)
pool_offset
&=
~
(
align
-
1
);
/* If RTL is not being placed into the saveable obstack, make a
copy of X that is in the saveable obstack in case we are being
called from combine or some other phase that discards memory
it allocates. We need only do this if it is a CONST, since
no other RTX should be allocated in this situation. */
copy of X that is in the saveable obstack in case we are
being called from combine or some other phase that discards
memory it allocates. We used to only do this if it is a
CONST; however, reload can allocate a CONST_INT when
eliminating registers. */
if
(
rtl_obstack
!=
saveable_obstack
&&
GET_CODE
(
x
)
==
CONST
)
&&
(
GET_CODE
(
x
)
==
CONST
||
GET_CODE
(
x
)
==
CONST_INT
)
)
{
push_obstacks_nochange
();
rtl_in_saveable_obstack
();
x
=
gen_rtx
(
CONST
,
GET_MODE
(
x
),
gen_rtx
(
PLUS
,
GET_MODE
(
x
),
XEXP
(
XEXP
(
x
,
0
),
0
),
XEXP
(
XEXP
(
x
,
0
),
1
)));
if
(
GET_CODE
(
x
)
==
CONST
)
x
=
gen_rtx
(
CONST
,
GET_MODE
(
x
),
gen_rtx
(
PLUS
,
GET_MODE
(
x
),
XEXP
(
XEXP
(
x
,
0
),
0
),
XEXP
(
XEXP
(
x
,
0
),
1
)));
else
x
=
GEN_INT
(
INTVAL
(
x
));
pop_obstacks
();
}
...
...
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