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
c954bd01
Commit
c954bd01
authored
Feb 14, 1999
by
Richard Henderson
Committed by
Richard Henderson
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* i386.c (legitimate_address_p): Verify modes of base and index.
From-SVN: r25209
parent
59be65f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
gcc/ChangeLog
+4
-0
gcc/config/i386/i386.c
+13
-1
No files found.
gcc/ChangeLog
View file @
c954bd01
Sun
Feb
14
23
:
12
:
10
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
i386
.
c
(
legitimate_address_p
)
:
Verify
modes
of
base
and
index
.
Sun
Feb
14
23
:
01
:
28
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
Sun
Feb
14
23
:
01
:
28
1999
Richard
Henderson
<
rth
@cygnus
.
com
>
*
i386
.
c
(
legitimate_pic_address_disp_p
)
:
Remove
static
.
*
i386
.
c
(
legitimate_pic_address_disp_p
)
:
Remove
static
.
...
...
gcc/config/i386/i386.c
View file @
c954bd01
...
@@ -2601,7 +2601,7 @@ legitimate_address_p (mode, addr, strict)
...
@@ -2601,7 +2601,7 @@ legitimate_address_p (mode, addr, strict)
}
}
if
(
GET_CODE
(
addr
)
==
REG
||
GET_CODE
(
addr
)
==
SUBREG
)
if
(
GET_CODE
(
addr
)
==
REG
||
GET_CODE
(
addr
)
==
SUBREG
)
base
=
addr
;
base
=
addr
;
else
if
(
GET_CODE
(
addr
)
==
PLUS
)
else
if
(
GET_CODE
(
addr
)
==
PLUS
)
{
{
...
@@ -2691,6 +2691,12 @@ legitimate_address_p (mode, addr, strict)
...
@@ -2691,6 +2691,12 @@ legitimate_address_p (mode, addr, strict)
return
FALSE
;
return
FALSE
;
}
}
if
(
GET_MODE
(
base
)
!=
Pmode
)
{
ADDR_INVALID
(
"Base is not in Pmode.
\n
"
,
base
);
return
FALSE
;
}
if
((
strict
&&
!
REG_OK_FOR_BASE_STRICT_P
(
base
))
if
((
strict
&&
!
REG_OK_FOR_BASE_STRICT_P
(
base
))
||
(
!
strict
&&
!
REG_OK_FOR_BASE_NONSTRICT_P
(
base
)))
||
(
!
strict
&&
!
REG_OK_FOR_BASE_NONSTRICT_P
(
base
)))
{
{
...
@@ -2712,6 +2718,12 @@ legitimate_address_p (mode, addr, strict)
...
@@ -2712,6 +2718,12 @@ legitimate_address_p (mode, addr, strict)
return
FALSE
;
return
FALSE
;
}
}
if
(
GET_MODE
(
indx
)
!=
Pmode
)
{
ADDR_INVALID
(
"Index is not in Pmode.
\n
"
,
indx
);
return
FALSE
;
}
if
((
strict
&&
!
REG_OK_FOR_INDEX_STRICT_P
(
indx
))
if
((
strict
&&
!
REG_OK_FOR_INDEX_STRICT_P
(
indx
))
||
(
!
strict
&&
!
REG_OK_FOR_INDEX_NONSTRICT_P
(
indx
)))
||
(
!
strict
&&
!
REG_OK_FOR_INDEX_NONSTRICT_P
(
indx
)))
{
{
...
...
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