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
3cd2a183
Commit
3cd2a183
authored
21 years ago
by
Richard Sandiford
Committed by
Richard Sandiford
21 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
From-SVN: r75749
parent
5e777af5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
gcc/ChangeLog
+4
-0
gcc/config/mips/mips.c
+5
-13
No files found.
gcc/ChangeLog
View file @
3cd2a183
2004-01-12 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
PR optimization/12508.
...
...
This diff is collapsed.
Click to expand it.
gcc/config/mips/mips.c
View file @
3cd2a183
...
...
@@ -902,16 +902,6 @@ mips_symbolic_constant_p (rtx x, enum mips_symbol_type *symbol_type)
if
(
offset
==
0
)
return
true
;
/* If X refers to a string constant, and that constant is put into a
mergeable section, the linker will need to know which string is
being accessed. It has no way of distinguishing an out-of-bounds
access to X from an in-bounds access to a later or earlier string. */
if
(
GET_CODE
(
x
)
==
SYMBOL_REF
&&
SYMBOL_REF_DECL
(
x
)
!=
0
&&
TREE_CODE
(
SYMBOL_REF_DECL
(
x
))
==
STRING_CST
&&
!
(
offset
>
0
&&
offset
<
TREE_STRING_LENGTH
(
SYMBOL_REF_DECL
(
x
))))
return
false
;
/* Check whether a nonzero offset is valid for the underlying
relocations. */
switch
(
*
symbol_type
)
...
...
@@ -927,9 +917,11 @@ mips_symbolic_constant_p (rtx x, enum mips_symbol_type *symbol_type)
return
(
offset
>
0
&&
offset
<
mips_section_threshold
);
case
SYMBOL_CONSTANT_POOL
:
/* We don't generate out-of-bounds accesses to normal constant
pool entries. String constants were handled above. */
return
true
;
/* Similarly check the range of offsets for mips16 constant
pool entries. */
return
(
CONSTANT_POOL_ADDRESS_P
(
x
)
&&
offset
>
0
&&
offset
<
(
int
)
GET_MODE_SIZE
(
get_pool_mode
(
x
)));
case
SYMBOL_GOT_LOCAL
:
case
SYMBOL_GOTOFF_PAGE
:
...
...
This diff is collapsed.
Click to expand it.
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