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
5dbc8499
Commit
5dbc8499
authored
Jul 08, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(note_mem_written): Varying structure memory access with
AND address can alias scalars. From-SVN: r12417
parent
c4a18992
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gcc/cse.c
+7
-2
No files found.
gcc/cse.c
View file @
5dbc8499
...
@@ -7583,10 +7583,15 @@ note_mem_written (written, writes_ptr)
...
@@ -7583,10 +7583,15 @@ note_mem_written (written, writes_ptr)
and that's just as good as a structure element
and that's just as good as a structure element
in implying that we need not invalidate scalar variables.
in implying that we need not invalidate scalar variables.
However, we must allow QImode aliasing of scalars, because the
However, we must allow QImode aliasing of scalars, because the
ANSI C standard allows character pointers to alias anything. */
ANSI C standard allows character pointers to alias anything.
We must also allow AND addresses, because they may generate
accesses outside the object being referenced. This is used to
generate aligned addresses from unaligned addresses, for instance,
the alpha storeqi_unaligned pattern. */
if
(
!
((
MEM_IN_STRUCT_P
(
written
)
if
(
!
((
MEM_IN_STRUCT_P
(
written
)
||
GET_CODE
(
XEXP
(
written
,
0
))
==
PLUS
)
||
GET_CODE
(
XEXP
(
written
,
0
))
==
PLUS
)
&&
GET_MODE
(
written
)
!=
QImode
))
&&
GET_MODE
(
written
)
!=
QImode
&&
GET_CODE
(
XEXP
(
written
,
0
))
!=
AND
))
writes_ptr
->
all
=
1
;
writes_ptr
->
all
=
1
;
writes_ptr
->
nonscalar
=
1
;
writes_ptr
->
nonscalar
=
1
;
}
}
...
...
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