From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57347 invoked by alias); 11 Jun 2015 10:38:46 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 57335 invoked by uid 89); 11 Jun 2015 10:38:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: DUB004-OMC4S7.hotmail.com Received: from dub004-omc4s7.hotmail.com (HELO DUB004-OMC4S7.hotmail.com) (157.55.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Thu, 11 Jun 2015 10:38:43 +0000 Received: from DUB118-W52 ([157.55.2.72]) by DUB004-OMC4S7.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Thu, 11 Jun 2015 03:38:40 -0700 X-TMN: [SwMk4AyjGElN8wxQivEW3fneakquJKpG] Message-ID: From: Bernd Edlinger To: Jakub Jelinek CC: "gcc-patches@gcc.gnu.org" , Richard Biener , Jeff Law , Eric Botcazou Subject: RE: [RFC] Sanitize rtx_addr_can_trap_p_1 Date: Thu, 11 Jun 2015 10:44:00 -0000 In-Reply-To: <20150611080203.GT10247@tucnak.redhat.com> References: ,<20150611080203.GT10247@tucnak.redhat.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg00821.txt.bz2 Hi, On Thu, 11 Jun 2015 10:02:03, Jakub Jelinek wrote: > > IMHO the > #if 0 > #endif > stuff doesn't belong to the patch. > I just wanted to leave a hint, how I debugged this function, and how to assess the performance of the decision that is taken here. I mean, the boot-strap would certainly pass, if I always return 0 here, but Eric would'nt like it. I believe that, when the offset lies within the bounds that are implied by the current function's stack frame, the access will always be safe. But there are some very rare false positives, when this function returns 0 on "normal" code, like gcc source code itself, and they are interesting to = debug. Should I better change the #if 0 block into a comment? > Other than that, as I said already in the PR, I'm in favor of applying it= to > the trunk (only, not release branches) and watching for performance and/or > wrong-code issues, but Eric is against it. What do others think about it? > > From John Regehr's talk at GCC Summit a few years ago I got the > impression that for people to be able to effectively report bugs in the > compiler through code generator it is important that discovered bugs in t= he > compiler are fixed timely, otherwise it makes life to the reporters much > harder, because then they'll run into the same still unfixed issue all the > time. > On that, I totally agree. Thanks Bernd. =20=09=09=20=09=20=20=20=09=09=20=20