From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2820 invoked by alias); 2 Mar 2006 09:22:38 -0000 Received: (qmail 2779 invoked by uid 48); 2 Mar 2006 09:22:28 -0000 Date: Thu, 02 Mar 2006 09:22:00 -0000 Message-ID: <20060302092228.2778.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/4210] should not warning with dead code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mattias at virtutech dot se" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg00214.txt.bz2 List-Id: ------- Comment #17 from mattias at virtutech dot se 2006-03-02 09:22 ------- We have resorted to case-by-case workarounds, usually a cast which would have been an identity operation had the condition been true. That is, if (sizeof x == 8) return x << 32 | x; would have its second line mutated to return (unsigned long long)x << 32 | x; The cast is always a no-op unless it occurs in dead code. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210