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
f5da225e
Commit
f5da225e
authored
Apr 21, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mem_aligned_8): Don't assume addresses with
MEM_IN_STRUCT_P set are 8 byte aligned. From-SVN: r7128
parent
9db8b14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gcc/config/sparc/sparc.c
+7
-4
No files found.
gcc/config/sparc/sparc.c
View file @
f5da225e
...
...
@@ -1032,10 +1032,13 @@ mem_aligned_8 (mem)
}
/* Anything else we know is properly aligned unless TARGET_UNALIGNED_DOUBLES
is true, in which case we can only assume that an access is aligned if
it is to an aggregate, it is to a constant address, or the address
involves a LO_SUM. */
else
if
(
!
TARGET_UNALIGNED_DOUBLES
||
MEM_IN_STRUCT_P
(
mem
)
||
CONSTANT_P
(
addr
)
||
GET_CODE
(
addr
)
==
LO_SUM
)
it is to a constant address, or the address involves a LO_SUM.
We used to assume an address was aligned if MEM_IN_STRUCT_P was true.
That assumption was deleted so that gcc generated code can be used with
memory allocators that only guarantee 4 byte alignment. */
else
if
(
!
TARGET_UNALIGNED_DOUBLES
||
CONSTANT_P
(
addr
)
||
GET_CODE
(
addr
)
==
LO_SUM
)
return
1
;
/* An obviously unaligned address. */
...
...
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