From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16098 invoked by alias); 30 Dec 2014 18:45:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16024 invoked by uid 48); 30 Dec 2014 18:45:52 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/323] optimized code gives strange floating point results Date: Tue, 30 Dec 2014 18:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 2.95.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: SUSPENDED 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02962.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D323 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #195 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Martin von Gagern from comment #193) > Would it make sense to file one bug report per language, marking all of t= hem > as blocking this one here, so we can keep track of progress per language? > I'm particularly interested in C++, but I guess others might care for oth= er > front-ends. Feel free to do just that, specially if you are planning to work on it. Thi= s PR has become too long and full of outdated info (and useless comments) to be really useful. >>From gcc-bugs-return-471956-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Dec 30 19:01:10 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25029 invoked by alias); 30 Dec 2014 19:01:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24996 invoked by uid 48); 30 Dec 2014 19:01:04 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/64442] -O1 modify output of a simple computation with rounding Date: Tue, 30 Dec 2014 19:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: RESOLVED 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: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02963.txt.bz2 Content-length: 1495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64442 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #5 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Colin Pitrat from comment #4) > In the mean time I also discovered -Og that appeared in gcc 4.8, that > provides optimization compatible with debugging and that have the same > behavior. This allows me to have the same result with the release and the > debug build, which is what was the issue for me. That seems fragile to me, that is, likely to not work for different testcas= es or compiler versions. The "official" (non-wiki) FAQ for this is seriously lacking info, and it is certainly a bug in many cases that GCC does not implement standard-mandated behavior for excess precission. Fortunately, this is (or should be) fixed f= or C. See https://gcc.gnu.org/wiki/FAQ#PR323 and the links therein. > I'm still surprised by the fact that -Og or -O1 seems to be more than just > the list of -f flags it activates, as providing only them doesn't trigger > this same behaviour. I couldn't find another responsible flag in the > difference I found in the output of --help=3Dwarnings,target,params,c or = common https://gcc.gnu.org/wiki/FAQ#optimization-options >>From gcc-bugs-return-471957-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Dec 30 19:12:32 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29167 invoked by alias); 30 Dec 2014 19:12:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29105 invoked by uid 55); 30 Dec 2014 19:12:25 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49263] SH Target: underutilized "TST #imm, R0" instruction Date: Tue, 30 Dec 2014 19:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2014-12/txt/msg02964.txt.bz2 Content-length: 538 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49263 --- Comment #24 from Oleg Endo --- Author: olegendo Date: Tue Dec 30 19:11:42 2014 New Revision: 219113 URL: https://gcc.gnu.org/viewcvs?rev=219113&root=gcc&view=rev Log: gcc/testsuite/ PR target/49263 * gcc.target/sh/sh.exp (check_effective_target_sh2a): New. * gcc.target/sh/pr49263-3.c: New. Added: trunk/gcc/testsuite/gcc.target/sh/pr49263-3.c Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/sh/sh.exp