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
af9c6659
Commit
af9c6659
authored
Aug 14, 2004
by
Nathan Sidwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-common.c (shorten_compare): Use force_fit_type directly.
From-SVN: r86004
parent
1f59091c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/ChangeLog
+5
-1
gcc/c-common.c
+8
-4
No files found.
gcc/ChangeLog
View file @
af9c6659
2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
* c-common.c (shorten_compare): Use force_fit_type directly.
2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
Dave Korn <dk@artimi.com>
...
...
@@ -1457,7 +1461,7 @@
* config/i386/xmmintrin.h: Include <mm_malloc.h>.
2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
Tanguy Fautr <tfautre@pandora.be>
Tanguy Fautr
Ã
<tfautre@pandora.be>
* config/i386/pmm_malloc.h: New file.
...
...
gcc/c-common.c
View file @
af9c6659
...
...
@@ -1997,10 +1997,14 @@ shorten_compare (tree *op0_ptr, tree *op1_ptr, tree *restype_ptr,
if
(
TREE_TYPE
(
primop1
)
!=
*
restype_ptr
)
{
tree
tmp
=
convert
(
*
restype_ptr
,
primop1
);
TREE_OVERFLOW
(
tmp
)
=
TREE_OVERFLOW
(
primop1
);
TREE_CONSTANT_OVERFLOW
(
tmp
)
=
TREE_CONSTANT_OVERFLOW
(
primop1
);
primop1
=
tmp
;
/* Convert primop1 to target type, but do not introduce
additional overflow. We know primop1 is an int_cst. */
tree
tmp
=
build_int_2
(
TREE_INT_CST_LOW
(
primop1
),
TREE_INT_CST_HIGH
(
primop1
));
TREE_TYPE
(
tmp
)
=
*
restype_ptr
;
primop1
=
force_fit_type
(
tmp
,
0
,
TREE_OVERFLOW
(
primop1
),
TREE_CONSTANT_OVERFLOW
(
primop1
));
}
if
(
type
!=
*
restype_ptr
)
{
...
...
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