From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26775 invoked by alias); 31 Dec 2014 00:45:58 -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 26577 invoked by uid 48); 31 Dec 2014 00:45:35 -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: Wed, 31 Dec 2014 00: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: 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/msg02987.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D323 --- Comment #198 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Vincent Lef=C3=A8vre from comment #197) > (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #196) > > Also, the official FAQ for this (https://gcc.gnu.org/bugs/#nonbugs_gene= ral) > > is seriously lacking info and outdated. From now on, I'll point people = to: > > https://gcc.gnu.org/wiki/FAQ#PR323 >=20 > Note that this bug was mainly about the excess precision of x87 FPU, thou= gh I added your comment to the FAQ but feel welcome to extend it: https://gcc.gnu.org/wiki/FAQ#PR323 What it is also missing is a criteria to distinguish normal behavior from actual GCC bugs (and there are GCC bugs like bug 37845 and others for optimizations that should only be done with ffast-math). Currently, any floating-point issue is likely to end up here. >>From gcc-bugs-return-471981-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Dec 31 09:46:52 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29650 invoked by alias); 31 Dec 2014 09:46:51 -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 29620 invoked by uid 48); 31 Dec 2014 09:46:45 -0000 From: "chris.foster at roames dot com.au" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/64452] New: ICE in avr-gcc when passing struct member to varargs function Date: Wed, 31 Dec 2014 09:46: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.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chris.foster at roames dot com.au 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 attachments.created Message-ID: 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/msg02988.txt.bz2 Content-length: 1270 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64452 Bug ID: 64452 Summary: ICE in avr-gcc when passing struct member to varargs function Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: chris.foster at roames dot com.au Created attachment 34366 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D34366&action=3Dedit Reduced test case Compiling the attached test case with gcc 4.8.2 (ubuntu 14.04.1 LTS) produc= es $ avr-gcc -c avr-gcc-ice.c=20 avr-gcc-ice.c: In function =E2=80=98foo=E2=80=99: avr-gcc-ice.c:12:1: internal compiler error: in push_reload, at reload.c:13= 60 } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The ICE seems to be triggered by the specific combination of: * struct layout (switching field order in A avoids the error) * passing the structs by value (passing pointers to A avoids the error) * passing to a varargs function (replacing the call to printf with a non-varargs function which accepts the same args avoids the error) >>From gcc-bugs-return-471982-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Dec 31 10:21:37 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14085 invoked by alias); 31 Dec 2014 10:21:36 -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 14047 invoked by uid 48); 31 Dec 2014 10:21:30 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/64449] /usr/ccs/bin/ld: Unsatisfied symbols: std::basic_string, std::allocator >::copy(wchar_t*, unsigned long, unsigned long) Date: Wed, 31 Dec 2014 10:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed 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/msg02989.txt.bz2 Content-length: 626 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64449 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2014-12-31 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- similar to PR 64422