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
47069ecb
Commit
47069ecb
authored
Jan 09, 2004
by
Richard Henderson
Committed by
Richard Henderson
Jan 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* recog.c (constrain_operands): Validate mem operands.
From-SVN: r75624
parent
c31d56ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
gcc/ChangeLog
+4
-0
gcc/recog.c
+19
-6
No files found.
gcc/ChangeLog
View file @
47069ecb
2004-01-09 Richard Henderson <rth@redhat.com>
* recog.c (constrain_operands): Validate mem operands.
2004-01-09 James E Wilson <wilson@specifixinc.com>
* gcc.c (init_spec): Remove -lunwind from shared case.
...
...
gcc/recog.c
View file @
47069ecb
...
...
@@ -2445,12 +2445,25 @@ constrain_operands (int strict)
break
;
case
'm'
:
if
(
GET_CODE
(
op
)
==
MEM
/* Before reload, accept what reload can turn into mem. */
||
(
strict
<
0
&&
CONSTANT_P
(
op
))
/* During reload, accept a pseudo */
||
(
reload_in_progress
&&
GET_CODE
(
op
)
==
REG
&&
REGNO
(
op
)
>=
FIRST_PSEUDO_REGISTER
))
/* Memory operands must be valid, to the extent
required by STRICT. */
if
(
GET_CODE
(
op
)
==
MEM
)
{
if
(
strict
>
0
&&
!
strict_memory_address_p
(
GET_MODE
(
op
),
XEXP
(
op
,
0
)))
break
;
if
(
strict
==
0
&&
!
memory_address_p
(
GET_MODE
(
op
),
XEXP
(
op
,
0
)))
break
;
win
=
1
;
}
/* Before reload, accept what reload can turn into mem. */
else
if
(
strict
<
0
&&
CONSTANT_P
(
op
))
win
=
1
;
/* During reload, accept a pseudo */
else
if
(
reload_in_progress
&&
GET_CODE
(
op
)
==
REG
&&
REGNO
(
op
)
>=
FIRST_PSEUDO_REGISTER
)
win
=
1
;
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