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
fb351073
Commit
fb351073
authored
Aug 02, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(const_hash, SYMHASH): Use HOST_WIDE_INT instead of int when casting
pointers to integers. From-SVN: r1753
parent
d69c4bd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/varasm.c
+4
-3
No files found.
gcc/varasm.c
View file @
fb351073
...
...
@@ -1425,7 +1425,7 @@ clear_const_double_mem ()
struct
addr_const
{
rtx
base
;
int
offset
;
HOST_WIDE_INT
offset
;
};
static
void
...
...
@@ -1548,7 +1548,8 @@ const_hash (exp)
Instead, we include the array size because the constructor could
be shorter. */
if
(
TREE_CODE
(
TREE_TYPE
(
exp
))
==
RECORD_TYPE
)
hi
=
((
int
)
TREE_TYPE
(
exp
)
&
((
1
<<
HASHBITS
)
-
1
))
%
MAX_HASH_TABLE
;
hi
=
((
HOST_WIDE_INT
)
TREE_TYPE
(
exp
)
&
((
1
<<
HASHBITS
)
-
1
))
%
MAX_HASH_TABLE
;
else
hi
=
((
5
+
int_size_in_bytes
(
TREE_TYPE
(
exp
)))
&
((
1
<<
HASHBITS
)
-
1
))
%
MAX_HASH_TABLE
;
...
...
@@ -2048,7 +2049,7 @@ static struct pool_sym *const_rtx_sym_hash_table[MAX_RTX_HASH_TABLE];
The argument is XSTR (... , 0) */
#define SYMHASH(LABEL) \
((((
int
) (LABEL)) & ((1 << HASHBITS) - 1)) % MAX_RTX_HASH_TABLE)
((((
HOST_WIDE_INT
) (LABEL)) & ((1 << HASHBITS) - 1)) % MAX_RTX_HASH_TABLE)
/* Initialize constant pool hashing for next function. */
...
...
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