public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23512] New: wrong code with boolean refs, -O2
@ 2005-08-22 6:59 mec at google dot com
2005-08-22 7:04 ` [Bug c++/23512] " mec at google dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mec at google dot com @ 2005-08-22 6:59 UTC (permalink / raw)
To: gcc-bugs
gcc generates wrong code
command line: gcc -O2
works on: 3.4.4, 4.1.0-20050819
wrong code on: 4.0.1, 4.0.2-20050818
I am just guessing at the priority + severity levels.
Test program attached. It can be compiled and run standalone -- it succeeds
normally, and aborts if wrong-code is generated.
The wrong code is for the source line:
if (_v3 != _v4)
Where _v3 and _v4 are "const bool &".
--
Summary: wrong code with boolean refs, -O2
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mec at google dot com
CC: dank at kegel dot com,gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23512
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/23512] wrong code with boolean refs, -O2
2005-08-22 6:59 [Bug c++/23512] New: wrong code with boolean refs, -O2 mec at google dot com
@ 2005-08-22 7:04 ` mec at google dot com
2005-08-22 10:54 ` [Bug tree-optimization/23512] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-08-22 12:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: mec at google dot com @ 2005-08-22 7:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mec at google dot com 2005-08-22 06:59 -------
Created an attachment (id=9551)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9551&action=view)
source file to demonstrate wrong code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23512
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/23512] [4.0 Regression] wrong code with boolean refs, -O2
2005-08-22 6:59 [Bug c++/23512] New: wrong code with boolean refs, -O2 mec at google dot com
2005-08-22 7:04 ` [Bug c++/23512] " mec at google dot com
@ 2005-08-22 10:54 ` pinskia at gcc dot gnu dot org
2005-08-22 12:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-22 10:49 -------
This is most likely a dup of PR 23326.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |tree-optimization
Keywords| |wrong-code
Summary|wrong code with boolean |[4.0 Regression] wrong code
|refs, -O2 |with boolean refs, -O2
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23512
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tree-optimization/23512] [4.0 Regression] wrong code with boolean refs, -O2
2005-08-22 6:59 [Bug c++/23512] New: wrong code with boolean refs, -O2 mec at google dot com
2005-08-22 7:04 ` [Bug c++/23512] " mec at google dot com
2005-08-22 10:54 ` [Bug tree-optimization/23512] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-22 12:15 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 12:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-22 12:15 -------
Yes looking at the tree dumps comfirm that this is a dup of bug 23326 which already have a patch for.
*** This bug has been marked as a duplicate of 23326 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23512
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-22 12:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-22 6:59 [Bug c++/23512] New: wrong code with boolean refs, -O2 mec at google dot com
2005-08-22 7:04 ` [Bug c++/23512] " mec at google dot com
2005-08-22 10:54 ` [Bug tree-optimization/23512] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-08-22 12:15 ` pinskia 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).