From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20012 invoked by alias); 29 Dec 2009 06:07:59 -0000 Received: (qmail 19982 invoked by uid 48); 29 Dec 2009 06:07:47 -0000 Date: Tue, 29 Dec 2009 06:07:00 -0000 Message-ID: <20091229060747.19981.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/31878] Spurious warnings with -Wreturn-type due to not performing CCP/VRP in the front-end In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sabre at nondot dot org" 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 X-SW-Source: 2009-12/txt/msg02606.txt.bz2 ------- Comment #8 from sabre at nondot dot org 2009-12-29 06:07 ------- Clang does not produce diagnostics from the optimizer. We intentionally do not want to do this, because of the fragility of the diagnostics as the optimizer evolves. IMO it is much better to produce a consistent and predictable set of diagnostics rather than trying to avoid all false positives by relying on the optimizer to be tricky. -- sabre at nondot dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sabre at nondot dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31878