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
17ab7c59
Commit
17ab7c59
authored
Jul 04, 2001
by
Richard Kenner
Committed by
Richard Kenner
Jul 03, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* explow.c (plus_constant_wide): Reinitialize Y for restart.
From-SVN: r43745
parent
38733dbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
gcc/ChangeLog
+4
-0
gcc/explow.c
+7
-3
No files found.
gcc/ChangeLog
View file @
17ab7c59
Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (plus_constant_wide): Reinitialize Y for restart.
2001-07-03 Stan Shebs <shebs@apple.com>
* darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
...
...
gcc/explow.c
View file @
17ab7c59
...
...
@@ -78,7 +78,7 @@ plus_constant_wide (x, c)
register
HOST_WIDE_INT
c
;
{
register
RTX_CODE
code
;
rtx
y
=
x
;
rtx
y
;
register
enum
machine_mode
mode
;
register
rtx
tem
;
int
all_constant
=
0
;
...
...
@@ -90,6 +90,8 @@ plus_constant_wide (x, c)
code
=
GET_CODE
(
x
);
mode
=
GET_MODE
(
x
);
y
=
x
;
switch
(
code
)
{
case
CONST_INT
:
...
...
@@ -608,10 +610,12 @@ validize_mem (ref)
{
if
(
GET_CODE
(
ref
)
!=
MEM
)
return
ref
;
if
(
memory_address_p
(
GET_MODE
(
ref
),
XEXP
(
ref
,
0
)))
if
(
!
(
flag_force_addr
&&
CONSTANT_ADDRESS_P
(
XEXP
(
ref
,
0
)))
||
memory_address_p
(
GET_MODE
(
ref
),
XEXP
(
ref
,
0
)))
return
ref
;
/* Don't alter REF itself, since that is probably a stack slot. */
return
change_address
(
ref
,
GET_MODE
(
ref
)
,
XEXP
(
ref
,
0
));
return
replace_equiv_address
(
ref
,
XEXP
(
ref
,
0
));
}
/* Given REF, either a MEM or a REG, and T, either the type of X or
...
...
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