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
d98c1e33
Commit
d98c1e33
authored
Aug 29, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(RTL_HASH, attr_rtx): Avoid warnings by casting pointers to
HOST_WIDE_INT instead of int. From-SVN: r1996
parent
4a969847
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/genattrtab.c
+5
-5
No files found.
gcc/genattrtab.c
View file @
d98c1e33
...
@@ -409,7 +409,7 @@ struct attr_hash *attr_hash_table[RTL_HASH_SIZE];
...
@@ -409,7 +409,7 @@ struct attr_hash *attr_hash_table[RTL_HASH_SIZE];
/* Here is how primitive or already-shared RTL's hash
/* Here is how primitive or already-shared RTL's hash
codes are made. */
codes are made. */
#define RTL_HASH(RTL) ((
int
) (RTL) & 0777777)
#define RTL_HASH(RTL) ((
HOST_WIDE_INT
) (RTL) & 0777777)
/* Add an entry to the hash table for RTL with hash code HASHCODE. */
/* Add an entry to the hash table for RTL with hash code HASHCODE. */
...
@@ -489,7 +489,7 @@ attr_rtx (va_alist)
...
@@ -489,7 +489,7 @@ attr_rtx (va_alist)
return
rt_val
;
return
rt_val
;
}
}
hashcode
=
((
int
)
code
+
RTL_HASH
(
arg0
));
hashcode
=
((
HOST_WIDE_INT
)
code
+
RTL_HASH
(
arg0
));
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
if
(
h
->
hashcode
==
hashcode
if
(
h
->
hashcode
==
hashcode
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
...
@@ -520,7 +520,7 @@ attr_rtx (va_alist)
...
@@ -520,7 +520,7 @@ attr_rtx (va_alist)
return
rt_val
;
return
rt_val
;
}
}
hashcode
=
((
int
)
code
+
RTL_HASH
(
arg0
)
+
RTL_HASH
(
arg1
));
hashcode
=
((
HOST_WIDE_INT
)
code
+
RTL_HASH
(
arg0
)
+
RTL_HASH
(
arg1
));
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
if
(
h
->
hashcode
==
hashcode
if
(
h
->
hashcode
==
hashcode
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
...
@@ -544,7 +544,7 @@ attr_rtx (va_alist)
...
@@ -544,7 +544,7 @@ attr_rtx (va_alist)
if
(
code
==
SYMBOL_REF
)
if
(
code
==
SYMBOL_REF
)
arg0
=
attr_string
(
arg0
,
strlen
(
arg0
));
arg0
=
attr_string
(
arg0
,
strlen
(
arg0
));
hashcode
=
((
int
)
code
+
RTL_HASH
(
arg0
));
hashcode
=
((
HOST_WIDE_INT
)
code
+
RTL_HASH
(
arg0
));
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
if
(
h
->
hashcode
==
hashcode
if
(
h
->
hashcode
==
hashcode
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
...
@@ -565,7 +565,7 @@ attr_rtx (va_alist)
...
@@ -565,7 +565,7 @@ attr_rtx (va_alist)
char
*
arg0
=
va_arg
(
p
,
char
*
);
char
*
arg0
=
va_arg
(
p
,
char
*
);
char
*
arg1
=
va_arg
(
p
,
char
*
);
char
*
arg1
=
va_arg
(
p
,
char
*
);
hashcode
=
((
int
)
code
+
RTL_HASH
(
arg0
)
+
RTL_HASH
(
arg1
));
hashcode
=
((
HOST_WIDE_INT
)
code
+
RTL_HASH
(
arg0
)
+
RTL_HASH
(
arg1
));
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
for
(
h
=
attr_hash_table
[
hashcode
%
RTL_HASH_SIZE
];
h
;
h
=
h
->
next
)
if
(
h
->
hashcode
==
hashcode
if
(
h
->
hashcode
==
hashcode
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
&&
GET_CODE
(
h
->
u
.
rtl
)
==
code
...
...
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