From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17715 invoked by alias); 3 Oct 2014 16:44:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17696 invoked by uid 89); 3 Oct 2014 16:44:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 03 Oct 2014 16:44:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 46E6711632B; Fri, 3 Oct 2014 12:44:18 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0xXSKo-84ad8; Fri, 3 Oct 2014 12:44:18 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 0AAB211630A; Fri, 3 Oct 2014 12:44:18 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 39DD149848; Fri, 3 Oct 2014 09:44:20 -0700 (PDT) Date: Fri, 03 Oct 2014 16:44:00 -0000 From: Joel Brobecker To: Chen Gang Cc: Mark Kettenis , amodra@gmail.com, gbenson@redhat.com, michael.sturm@intel.com, walfred.tedeschi@intel.com, binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/i387-tdep.c: Avoid warning for "-Werror=strict-overflow" Message-ID: <20141003164420.GK6927@adacore.com> References: <542EC11C.3020406@gmail.com> <201410031546.s93FknOM002165@glazunov.sibelius.xs4all.nl> <542EC9FC.8050107@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <542EC9FC.8050107@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-10/txt/msg00072.txt.bz2 > > Sorry, but obfuscating code to make compilers happy is *not* the way to go. > > > > OK, I can understand, but for me, these is no other better ways for it, > except let gdb give up "-Werror" (if always need "--disable-werror" > during "configure"). I have to agree with Mark on this one, the proposed solution looks awful. There has to be another way. Maybe declaring a local constant whose value is I387_XMM0_REGNUM (tdep)? -- Joel