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
dc76f41c
Commit
dc76f41c
authored
Mar 02, 2001
by
John David Anglin
Committed by
John David Anglin
Mar 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cselib.c (hash_rtx): Cast enums to unsigned int.
From-SVN: r40196
parent
4d2cf715
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/cselib.c
+5
-5
No files found.
gcc/ChangeLog
View file @
dc76f41c
2001-03-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
* cselib.c (hash_rtx): Cast enums to unsigned int.
2001-03-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
* print-rtl.c (print_rtx): Cast enums to int for comparison.
* c-decl.c (grokdeclarator): Cast enums to int for comparison and
shifts.
...
...
gcc/cselib.c
View file @
dc76f41c
...
...
@@ -584,7 +584,7 @@ hash_rtx (x, mode, create)
case
CONST_INT
:
hash
+=
((
unsigned
)
CONST_INT
<<
7
)
+
(
unsigned
)
mode
+
INTVAL
(
x
);
return
hash
?
hash
:
CONST_INT
;
return
hash
?
hash
:
(
unsigned
int
)
CONST_INT
;
case
CONST_DOUBLE
:
/* This is like the general case, except that it only counts
...
...
@@ -596,18 +596,18 @@ hash_rtx (x, mode, create)
else
hash
+=
((
unsigned
)
CONST_DOUBLE_LOW
(
x
)
+
(
unsigned
)
CONST_DOUBLE_HIGH
(
x
));
return
hash
?
hash
:
CONST_DOUBLE
;
return
hash
?
hash
:
(
unsigned
int
)
CONST_DOUBLE
;
/* Assume there is only one rtx object for any given label. */
case
LABEL_REF
:
hash
+=
((
unsigned
)
LABEL_REF
<<
7
)
+
(
unsigned
long
)
XEXP
(
x
,
0
);
return
hash
?
hash
:
LABEL_REF
;
return
hash
?
hash
:
(
unsigned
int
)
LABEL_REF
;
case
SYMBOL_REF
:
hash
+=
((
unsigned
)
SYMBOL_REF
<<
7
)
+
(
unsigned
long
)
XSTR
(
x
,
0
);
return
hash
?
hash
:
SYMBOL_REF
;
return
hash
?
hash
:
(
unsigned
int
)
SYMBOL_REF
;
case
PRE_DEC
:
case
PRE_INC
:
...
...
@@ -681,7 +681,7 @@ hash_rtx (x, mode, create)
abort
();
}
return
hash
?
hash
:
1
+
GET_CODE
(
x
);
return
hash
?
hash
:
1
+
(
unsigned
int
)
GET_CODE
(
x
);
}
/* Create a new value structure for VALUE and initialize it. The mode of the
...
...
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