From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102490 invoked by alias); 21 Sep 2015 10:12:01 -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 102439 invoked by uid 55); 21 Sep 2015 10:11:57 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/60832] add pretty-printer code for double-int/wide-int Date: Mon, 21 Sep 2015 10:12: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: 5.0 X-Bugzilla-Keywords: diagnostic, easyhack X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 2015-09/txt/msg01683.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60832 --- Comment #2 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- Author: manu Date: Mon Sep 21 10:11:24 2015 New Revision: 227964 URL: https://gcc.gnu.org/viewcvs?rev=3D227964&root=3Dgcc&view=3Drev Log: [PR middle-end/60832] Do not convert widest_int to tree just for printing i= t. In do_warn_aggressive_loop_optimizations, we convert to a tree just to prin= t a widest_int. Apart from overly complicated, this results in printing '3u' instead of just '3'. Unfortunately, adding a printf-like conversion specifier would require maki= ng pretty-print.c link with wide-int.cc, which will include a lot of new dependencies into several other programs (gcov-tool for example). It would = be possible to add the conversion specifier to every FE pretty-printer, but th= is still would require updating c-format.c, which is far from trivial. A simpl= er approach is to convert to a string rather than to a tree. In addition, "iteration 3 invokes undefined behavior within this loop" seem= s to me clearer than "iteration 3 invokes undefined behavior; containing loop". gcc/testsuite/ChangeLog: 2015-09-21 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez PR middle-end/60832 * gcc.dg/pr53265.c: Update. gcc/ChangeLog: 2015-09-21 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez PR middle-end/60832 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations): Print i_bound without converting it to a tree. Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/pr53265.c trunk/gcc/tree-ssa-loop-niter.c >>From gcc-bugs-return-497706-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 21 10:36:29 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13269 invoked by alias); 21 Sep 2015 10:36:29 -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 13240 invoked by uid 48); 21 Sep 2015 10:36:25 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67666] single restrict pointer in struct looses restrict Date: Mon, 21 Sep 2015 10:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: attachments.created 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: 2015-09/txt/msg01684.txt.bz2 Content-length: 214 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67666 --- Comment #1 from vries at gcc dot gnu.org --- Created attachment 36360 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36360&action=edit Tentative patch