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
af89bd04
Commit
af89bd04
authored
Oct 19, 2012
by
Marek Polacek
Committed by
Marek Polacek
Oct 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re PR middle-end/54945 (Too strong non-aliasing analysis?)
PR54945 From-SVN: r192617
parent
db2415a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ChangeLog
+6
-0
gcc/fold-const.c
+4
-2
No files found.
gcc/ChangeLog
View file @
af89bd04
2012-10-19 Marek Polacek <polacek@redhat.com>
PR middle-end/54945
* fold-const.c (fold_sign_changed_comparison): Punt if folding
pointer/non-pointer comparison.
2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
* doc/sourcebuild.texi (Effective-Target Keywords): Document
gcc/fold-const.c
View file @
af89bd04
...
...
@@ -6731,12 +6731,14 @@ fold_sign_changed_comparison (location_t loc, enum tree_code code, tree type,
&&
TREE_TYPE
(
TREE_OPERAND
(
arg1
,
0
))
==
inner_type
))
return
NULL_TREE
;
if
((
TYPE_UNSIGNED
(
inner_type
)
!=
TYPE_UNSIGNED
(
outer_type
)
||
POINTER_TYPE_P
(
inner_type
)
!=
POINTER_TYPE_P
(
outer_type
))
if
(
TYPE_UNSIGNED
(
inner_type
)
!=
TYPE_UNSIGNED
(
outer_type
)
&&
code
!=
NE_EXPR
&&
code
!=
EQ_EXPR
)
return
NULL_TREE
;
if
(
POINTER_TYPE_P
(
inner_type
)
!=
POINTER_TYPE_P
(
outer_type
))
return
NULL_TREE
;
if
(
TREE_CODE
(
arg1
)
==
INTEGER_CST
)
arg1
=
force_fit_type_double
(
inner_type
,
tree_to_double_int
(
arg1
),
0
,
TREE_OVERFLOW
(
arg1
));
...
...
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