public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR
@ 2005-07-06 20:04 pinskia at gcc dot gnu dot org
2005-07-06 20:05 ` [Bug tree-optimization/22329] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 20:04 UTC (permalink / raw)
To: gcc-bugs
Take the following code:
int f(int i)
{
int k = 0;
if (i == 0)
k = i == 0;
return k;
}
(reduced from c-parser.c)
VRP produces a missed matched types in the assignment of k:
t.c: In function 'f':
t.c:2: error: statement types mismatch
kD.1266_6 = 1;
intD.0
_BoolD.1063
--
Summary: VRP produces missed matched (non compatible) types in
MODIFY_EXPR
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: dnovillo at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces missed matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
@ 2005-07-06 20:05 ` pinskia at gcc dot gnu dot org
2005-07-06 20:08 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 20:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-06 20:05 -------
Created an attachment (id=9216)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9216&action=view)
The patch I used to find this
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces missed matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-06 20:05 ` [Bug tree-optimization/22329] " pinskia at gcc dot gnu dot org
@ 2005-07-06 20:08 ` pinskia at gcc dot gnu dot org
2005-07-06 21:59 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 20:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-06 20:08 -------
Note I only filed this so I don't forget about it, I will be looking into fixing this soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces missed matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-06 20:05 ` [Bug tree-optimization/22329] " pinskia at gcc dot gnu dot org
2005-07-06 20:08 ` pinskia at gcc dot gnu dot org
@ 2005-07-06 21:59 ` pinskia at gcc dot gnu dot org
2005-07-08 18:41 ` [Bug tree-optimization/22329] VRP produces mis-matched " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-06 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-06 21:59 -------
I have a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-06 21:59:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces mis-matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-06 21:59 ` pinskia at gcc dot gnu dot org
@ 2005-07-08 18:41 ` pinskia at gcc dot gnu dot org
2005-07-08 19:25 ` pinskia at gcc dot gnu dot org
2005-07-08 19:26 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-08 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-08 18:41 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00588.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |07/msg00588.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces mis-matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-08 18:41 ` [Bug tree-optimization/22329] VRP produces mis-matched " pinskia at gcc dot gnu dot org
@ 2005-07-08 19:25 ` pinskia at gcc dot gnu dot org
2005-07-08 19:26 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-08 19:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-08 19:25 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/22329] VRP produces mis-matched (non compatible) types in MODIFY_EXPR
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-07-08 19:25 ` pinskia at gcc dot gnu dot org
@ 2005-07-08 19:26 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-08 19:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-08 19:26 -------
Subject: Bug 22329
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2005-07-08 19:26:17
Modified files:
gcc : ChangeLog tree-ssa-propagate.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr22329.c
Log message:
2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22329
* gcc.dg/pr22329.c: New test.
2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22329
* tree-ssa-propagate.c (fold_predicate_in): Convert the value
to the correct type if we have a MODIFY_EXPR.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9386&r2=2.9387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-propagate.c.diff?cvsroot=gcc&r1=2.25&r2=2.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5744&r2=1.5745
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22329.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22329
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-08 19:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 20:04 [Bug tree-optimization/22329] New: VRP produces missed matched (non compatible) types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-06 20:05 ` [Bug tree-optimization/22329] " pinskia at gcc dot gnu dot org
2005-07-06 20:08 ` pinskia at gcc dot gnu dot org
2005-07-06 21:59 ` pinskia at gcc dot gnu dot org
2005-07-08 18:41 ` [Bug tree-optimization/22329] VRP produces mis-matched " pinskia at gcc dot gnu dot org
2005-07-08 19:25 ` pinskia at gcc dot gnu dot org
2005-07-08 19:26 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).