public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu @ 2015-03-04 22:22 su at cs dot ucdavis.edu 2015-03-05 7:39 ` [Bug ipa/65318] [5 Regression] " mpolacek at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: su at cs dot ucdavis.edu @ 2015-03-04 22:22 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 Bug ID: 65318 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following code on x86_64-linux at -Os and above in both 32-bit and 64-bit modes. This is a regression from 4.9.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 5.0.0 20150304 (experimental) [trunk revision 221192] (GCC) $ $ gcc-trunk -O1 small.c; ./a.out $ gcc-4.9.2 -Os small.c; ./a.out $ $ gcc-trunk -Os small.c $ ./a.out 0 $ --------------------------------- int printf(const char *, ...); static short a = 0; short b = -1; static unsigned short c = 0; int main () { if (a <= b) printf ("%d\n", c); return 0; } ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/65318] [5 Regression] wrong code at -Os and above on x86_64-linux-gnu 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu @ 2015-03-05 7:39 ` mpolacek at gcc dot gnu.org 2015-03-05 9:06 ` mpolacek at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-03-05 7:39 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-03-05 CC| |mpolacek at gcc dot gnu.org Component|tree-optimization |ipa Target Milestone|--- |5.0 Summary|wrong code at -Os and above |[5 Regression] wrong code |on x86_64-linux-gnu |at -Os and above on | |x86_64-linux-gnu Ever confirmed|0 |1 --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Confirmed, and ICF issue. Started with r221099. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/65318] [5 Regression] wrong code at -Os and above on x86_64-linux-gnu 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu 2015-03-05 7:39 ` [Bug ipa/65318] [5 Regression] " mpolacek at gcc dot gnu.org @ 2015-03-05 9:06 ` mpolacek at gcc dot gnu.org 2015-03-05 12:44 ` marxin at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: mpolacek at gcc dot gnu.org @ 2015-03-05 9:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/65318] [5 Regression] wrong code at -Os and above on x86_64-linux-gnu 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu 2015-03-05 7:39 ` [Bug ipa/65318] [5 Regression] " mpolacek at gcc dot gnu.org 2015-03-05 9:06 ` mpolacek at gcc dot gnu.org @ 2015-03-05 12:44 ` marxin at gcc dot gnu.org 2015-03-05 17:50 ` hubicka at gcc dot gnu.org 2015-03-05 17:53 ` hubicka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2015-03-05 12:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 34962 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34962&action=edit Suggested patch >From gcc-bugs-return-479463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 05 13:16:01 2015 Return-Path: <gcc-bugs-return-479463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42024 invoked by alias); 5 Mar 2015 13:16:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41995 invoked by uid 48); 5 Mar 2015 13:15:57 -0000 From: "scerveau@connected-labs.com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/65325] New: float/interger operation needs cast with 02 switch. Date: Thu, 05 Mar 2015 13:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: scerveau@connected-labs.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: <bug-65325-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00607.txt.bz2 Content-length: 642 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide325 Bug ID: 65325 Summary: float/interger operation needs cast with 02 switch. Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: scerveau@connected-labs.com A bug has been reported to gstreamer bug tracker: https://bugzilla.gnome.org/show_bug.cgi?idt5667 This bug seems to be related to gcc optimization behaviour. The operations needs specific cast for operation with double and integers. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/65318] [5 Regression] wrong code at -Os and above on x86_64-linux-gnu 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu ` (2 preceding siblings ...) 2015-03-05 12:44 ` marxin at gcc dot gnu.org @ 2015-03-05 17:50 ` hubicka at gcc dot gnu.org 2015-03-05 17:53 ` hubicka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: hubicka at gcc dot gnu.org @ 2015-03-05 17:50 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 --- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Author: hubicka Date: Thu Mar 5 17:49:49 2015 New Revision: 221221 URL: https://gcc.gnu.org/viewcvs?rev=221221&root=gcc&view=rev Log: PR ipa/65318 * ipa-icf.c (sem_variable::equals): Compare variables types. * gcc.dg/ipa/pr65318.c: New test. Added: trunk/gcc/testsuite/gcc.dg/ipa/pr65318.c Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-icf.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/65318] [5 Regression] wrong code at -Os and above on x86_64-linux-gnu 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu ` (3 preceding siblings ...) 2015-03-05 17:50 ` hubicka at gcc dot gnu.org @ 2015-03-05 17:53 ` hubicka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: hubicka at gcc dot gnu.org @ 2015-03-05 17:53 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65318 Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-05 17:53 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-03-04 22:22 [Bug tree-optimization/65318] New: wrong code at -Os and above on x86_64-linux-gnu su at cs dot ucdavis.edu 2015-03-05 7:39 ` [Bug ipa/65318] [5 Regression] " mpolacek at gcc dot gnu.org 2015-03-05 9:06 ` mpolacek at gcc dot gnu.org 2015-03-05 12:44 ` marxin at gcc dot gnu.org 2015-03-05 17:50 ` hubicka at gcc dot gnu.org 2015-03-05 17:53 ` hubicka at gcc dot gnu.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).