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
dbf55e53
Commit
dbf55e53
authored
Mar 16, 1998
by
Michael Meissner
Committed by
Michael Meissner
Mar 16, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure sum from SDA is 16-bit
From-SVN: r18631
parent
e29ef920
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
gcc/ChangeLog
+4
-0
gcc/config/rs6000/rs6000.c
+12
-1
No files found.
gcc/ChangeLog
View file @
dbf55e53
...
...
@@ -3,6 +3,10 @@ Mon Mar 16 15:57:17 1998 Michael Meissner <meissner@cygnus.com>
* gcc.c (default_arg): Don't wander off the end of allocated
memory.
(From Geoffrey Keating <geoffk@ozemail.com.au>)
* rs6000.c (small_data_operand): Ensure that any address
referenced relative to the small data area is inside the SDA.
Mon Mar 16 12:55:15 1998 Jim Wilson <wilson@cygnus.com>
* config/m68k/netbsd.h (ASM_SPEC): Add %{m68060}.
...
...
gcc/config/rs6000/rs6000.c
View file @
dbf55e53
...
...
@@ -1080,7 +1080,18 @@ small_data_operand (op, mode)
return
0
;
else
sym_ref
=
XEXP
(
XEXP
(
op
,
0
),
0
);
{
rtx
sum
=
XEXP
(
op
,
0
);
HOST_WIDE_INT
summand
;
/* We have to be careful here, because it is the referenced address
that must be 32k from _SDA_BASE_, not just the symbol. */
summand
=
INTVAL
(
XEXP
(
sum
,
1
));
if
(
summand
<
0
||
summand
>
g_switch_value
)
return
0
;
sym_ref
=
XEXP
(
sum
,
0
);
}
if
(
*
XSTR
(
sym_ref
,
0
)
!=
'@'
)
return
0
;
...
...
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