From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10211 invoked by alias); 29 Jun 2009 13:10:44 -0000 Received: (qmail 10202 invoked by uid 22791); 29 Jun 2009 13:10:43 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 13:10:27 +0000 Received: from mail.gnu.org ([199.232.76.166]:34717 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MLGcq-0005Xu-Jf for gcc@gnu.org; Mon, 29 Jun 2009 09:10:25 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MLGcn-0007tP-2Q for gcc@gnu.org; Mon, 29 Jun 2009 09:10:24 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:35696) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLGcm-0007sz-N7 for gcc@gnu.org; Mon, 29 Jun 2009 09:10:20 -0400 Received: by sovereign.computergmbh.de (Postfix, from userid 25121) id 2817962E0F; Mon, 29 Jun 2009 15:10:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sovereign.computergmbh.de (Postfix) with ESMTP id 2384A4003CD7 for ; Mon, 29 Jun 2009 15:10:18 +0200 (CEST) Date: Mon, 29 Jun 2009 13:59:00 -0000 From: Jan Engelhardt To: gcc@gnu.org Subject: GCC feature req: warn when bitops exceed type size (was: conntrack untracked match is broken) Message-ID: User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00671.txt.bz2 Hi gcc list, I am forwarding below's bugreport here(*), to implicitly make aware of a feature that I deem important to have in a future gcc. (*) should have posted to bugzilla instead? Don't feel like setting up a bugmenot tho.. ---------- Forwarded message ---------- Date: Mon, 29 Jun 2009 14:34:10 From: Patrick McHardy To: Jan Engelhardt Cc: Netfilter Developer Mailing List , Philip Craig Subject: Re: conntrack untracked match is broken (kernel patch) >On Monday 2009-06-22 08:31, Philip Craig wrote: >>The problem is that state_mask in 'struct xt_conntrack_mtinfo1' is >>only 8 bit, but XT_CONNTRACK_STATE_UNTRACKED == 256. >>Unfortunately, gcc doesn't warn about this for '|=', only for '='. [i.e. uint8_t x = 0; x |= 256; ] > >I smell a gcc-missing-feature there.