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
563c063f
Commit
563c063f
authored
Apr 27, 1998
by
Michael Meissner
Committed by
Michael Meissner
Apr 27, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a warning
From-SVN: r19422
parent
14bf4a33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
gcc/ChangeLog
+3
-0
gcc/final.c
+9
-3
No files found.
gcc/ChangeLog
View file @
563c063f
Mon Apr 27 08:55:23 1998 Michael Meissner <meissner@cygnus.com>
Mon Apr 27 08:55:23 1998 Michael Meissner <meissner@cygnus.com>
* final.c (split_double): Avoid a compiler warning if
BITS_PER_WORD is less than or equal to HOST_BIT_PER_WIDE_INT.
* rtl.h (JUMP_{CROSS_JUMP,NOOP_MOVES,AFTER_REGSCAN}): New macros
* rtl.h (JUMP_{CROSS_JUMP,NOOP_MOVES,AFTER_REGSCAN}): New macros
for calling jump_optimize.
for calling jump_optimize.
...
...
gcc/final.c
View file @
563c063f
...
@@ -3680,9 +3680,15 @@ split_double (value, first, second)
...
@@ -3680,9 +3680,15 @@ split_double (value, first, second)
Extract the bits from it into two word-sized pieces.
Extract the bits from it into two word-sized pieces.
Sign extend each half to HOST_WIDE_INT. */
Sign extend each half to HOST_WIDE_INT. */
rtx
low
,
high
;
rtx
low
,
high
;
/* On machines where HOST_BITS_PER_WIDE_INT == BITS_PER_WORD
low
=
GEN_INT
(
INTVAL
(
value
)
<<
(
HOST_BITS_PER_WIDE_INT
-
BITS_PER_WORD
)
>>
(
HOST_BITS_PER_WIDE_INT
-
BITS_PER_WORD
));
the shift below will cause a compiler warning, even though
high
=
GEN_INT
(
INTVAL
(
value
)
<<
(
HOST_BITS_PER_WIDE_INT
-
2
*
BITS_PER_WORD
)
>>
(
HOST_BITS_PER_WIDE_INT
-
BITS_PER_WORD
));
this code won't be executed. So put the shift amounts in
variables to avoid the warning. */
int
rshift
=
HOST_BITS_PER_WIDE_INT
-
BITS_PER_WORD
;
int
lshift
=
HOST_BITS_PER_WIDE_INT
-
2
*
BITS_PER_WORD
;
low
=
GEN_INT
((
INTVAL
(
value
)
<<
rshift
)
>>
rshift
);
high
=
GEN_INT
((
INTVAL
(
value
)
<<
lshift
)
>>
rshift
);
if
(
WORDS_BIG_ENDIAN
)
if
(
WORDS_BIG_ENDIAN
)
{
{
*
first
=
high
;
*
first
=
high
;
...
...
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