From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15062 invoked by alias); 10 Jul 2010 15:55:30 -0000 Received: (qmail 15050 invoked by uid 22791); 10 Jul 2010 15:55:30 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_CX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 10 Jul 2010 15:55:25 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id CD596B0045; Sat, 10 Jul 2010 11:55:23 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o6AFtNsI012184; Sat, 10 Jul 2010 11:55:23 -0400 Date: Sat, 10 Jul 2010 15:55:00 -0000 From: Jack Howarth To: Joern Rennecke Cc: gcc@gcc.gnu.org Subject: Re: warnings as errors in gcc/gcc/config/i386/i386.c Message-ID: <20100710155523.GA12171@bromo.med.uc.edu> References: <20100710054542.GA8319@bromo.med.uc.edu> <20100710031151.ydh03b5kg044k440-nzlynne@webmail.spamcop.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100710031151.ydh03b5kg044k440-nzlynne@webmail.spamcop.net> User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2010-07/txt/msg00156.txt.bz2 On Sat, Jul 10, 2010 at 03:11:51AM -0400, Joern Rennecke wrote: > Quoting Jack Howarth : > >> Also, I don't seem able to suppress this build failure with... > > I think fcode should be assigned some value in the default case instead. > >> Is that expected behavior in current gcc trunk? > > Strange, I just bootstrapped r162030 with a small unrelated change on gcc16 > (x86_64-unknown-linux-gnu), and it didn't complain about this... > > /home/amylaar/pr44874/bldxx/./prev-gcc/g++ > -B/home/amylaar/pr44874/bldxx/./prev-gcc/ > -B/home/amylaar/instxx/x86_64-unknown-linux-gnu/bin/ -nostdinc++ > -I/home/amylaar/pr44874/bldxx/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu > -I/home/amylaar/pr44874/bldxx/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include > -I/home/amylaar/pr44874/gcc/libstdc++-v3/libsupc++ > -L/home/amylaar/pr44874/bldxx/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > -c -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual > -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. > -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include > -I../../gcc/gcc/../libcpp/include -I/opt/cfarm/mpfr-2.4.1/include > -I/opt/cfarm/mpc-0.8/include -I../../gcc/gcc/../libdecnumber > -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber \ > ../../gcc/gcc/config/i386/i386.c -o i386.o The change suggested by Iain Sandoe of... Index: gcc/config/i386/i386.c =================================================================== --- gcc/config/i386/i386.c (revision 162037) +++ gcc/config/i386/i386.c (working copy) @@ -30002,7 +30002,7 @@ tree itype = TREE_TYPE (vec_type); bool u = TYPE_UNSIGNED (itype); enum machine_mode vmode = TYPE_MODE (vec_type); - enum ix86_builtins fcode = fcode; /* Silence bogus warning. */ + enum ix86_builtins fcode = IX86_BUILTIN_MAX; bool ok = TARGET_SSE2; switch (vmode) eliminates the bootstrap failure on x86_64-apple-darwin10 when --enable-build-with-cxx is used.. Jack