public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
@ 2005-10-22 21:56 ` pinskia at gcc dot gnu dot org
2005-10-25 16:24 ` steven at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-22 21:56 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
2005-10-22 21:56 ` [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code pinskia at gcc dot gnu dot org
@ 2005-10-25 16:24 ` steven at gcc dot gnu dot org
2005-10-31 5:39 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-10-25 16:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from steven at gcc dot gnu dot org 2005-10-25 16:24 -------
Jakub, ping!
Are you going to post your patch from comment #4??
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |steven at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
2005-10-22 21:56 ` [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code pinskia at gcc dot gnu dot org
2005-10-25 16:24 ` steven at gcc dot gnu dot org
@ 2005-10-31 5:39 ` mmitchel at gcc dot gnu dot org
2005-11-03 21:00 ` steven at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31 5:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2005-10-31 05:39 -------
Elevating to P1; this is a serious wrong-code regression.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-31 5:39 ` mmitchel at gcc dot gnu dot org
@ 2005-11-03 21:00 ` steven at gcc dot gnu dot org
2005-11-04 10:52 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-11-03 21:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from steven at gcc dot gnu dot org 2005-11-03 21:00 -------
Jakub, ping!
What's up with this one?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-11-03 21:00 ` steven at gcc dot gnu dot org
@ 2005-11-04 10:52 ` jakub at gcc dot gnu dot org
2005-11-07 8:02 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-11-04 10:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2005-11-04 10:52 -------
Sorry, haven't touched this for a while.
Testing a new patch, there have been other problems in noce_process_if_block.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-11-04 10:52 ` jakub at gcc dot gnu dot org
@ 2005-11-07 8:02 ` jakub at gcc dot gnu dot org
2005-11-07 8:28 ` jakub at gcc dot gnu dot org
2005-11-07 13:17 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-11-07 8:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2005-11-07 08:02 -------
Subject: Bug 23567
Author: jakub
Date: Mon Nov 7 08:01:54 2005
New Revision: 106585
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106585
Log:
PR rtl-optimization/23567
* ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
(noce_process_if_block): Don't do any optimizations except
if (cond) x = x; if !set_b and write into orig_x may trap
or fault. Remove the MEM_READONLY_P check.
* gcc.c-torture/execute/20051104-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/20051104-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ifcvt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2005-11-07 8:02 ` jakub at gcc dot gnu dot org
@ 2005-11-07 8:28 ` jakub at gcc dot gnu dot org
2005-11-07 13:17 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-11-07 8:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2005-11-07 08:28 -------
Subject: Bug 23567
Author: jakub
Date: Mon Nov 7 08:28:01 2005
New Revision: 106586
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106586
Log:
PR rtl-optimization/23567
* ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
(noce_process_if_block): Don't do any optimizations except
if (cond) x = x; if !set_b and write into orig_x may trap
or fault.
* gcc.c-torture/execute/20051104-1.c: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/gcc.c-torture/execute/20051104-1.c
Modified:
branches/gcc-4_0-branch/gcc/ChangeLog
branches/gcc-4_0-branch/gcc/ifcvt.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2005-11-07 8:28 ` jakub at gcc dot gnu dot org
@ 2005-11-07 13:17 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-07 13:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2005-11-07 13:17 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/23567] New: [3.4/4.0 regression] if-conversion causes wrong code
@ 2005-08-25 21:44 belyshev at depni dot sinp dot msu dot ru
2005-08-25 23:23 ` [Bug rtl-optimization/23567] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-08-25 21:44 UTC (permalink / raw)
To: gcc-bugs
This patch:
2003-11-02 Roger Sayle <roger@eyesopen.com>
PR optimization/10817
* ifcvt.c (noce_emit_move_insn): Improve documentation comment.
(noce_try_move): New function to optimize an if-the-else into an
unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
(noce_process_if_block): Attempt simplification with noce_try_move.
causes wrong codegen for this testcase, (taken from debian bug #325050, see
bugs.debian.org/cgi-bin/bugreport.cgi?bug=325050 )
-----------------------------
struct
{
int len;
char *name;
} s;
int main (void)
{
s.len = 0;
s.name = "";
if (s.name [s.len] != 0)
s.name [s.len] = 0;
return 0;
}
-----------------------------
This looks very similar to PR 13400.
--
Summary: [3.4/4.0 regression] if-conversion causes wrong code
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belyshev at depni dot sinp dot msu dot ru
CC: gcc-bugs at gcc dot gnu dot org,sayle at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23567
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-11-07 13:17 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23567-7958@http.gcc.gnu.org/bugzilla/>
2005-10-22 21:56 ` [Bug rtl-optimization/23567] [3.4/4.0/4.1 regression] if-conversion causes wrong code pinskia at gcc dot gnu dot org
2005-10-25 16:24 ` steven at gcc dot gnu dot org
2005-10-31 5:39 ` mmitchel at gcc dot gnu dot org
2005-11-03 21:00 ` steven at gcc dot gnu dot org
2005-11-04 10:52 ` jakub at gcc dot gnu dot org
2005-11-07 8:02 ` jakub at gcc dot gnu dot org
2005-11-07 8:28 ` jakub at gcc dot gnu dot org
2005-11-07 13:17 ` pinskia at gcc dot gnu dot org
2005-08-25 21:44 [Bug rtl-optimization/23567] New: [3.4/4.0 " belyshev at depni dot sinp dot msu dot ru
2005-08-25 23:23 ` [Bug rtl-optimization/23567] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-08-29 9:44 ` debian-gcc at lists dot debian dot org
2005-08-29 17:40 ` jakub at gcc dot gnu dot org
2005-09-27 16:15 ` mmitchel 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).