From owner-freebsd-toolchain@FreeBSD.ORG Fri May 18 07:08:58 2012 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AA27106566B; Fri, 18 May 2012 07:08:58 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 39E8C8FC0A; Fri, 18 May 2012 07:08:57 +0000 (UTC) Received: by laai10 with SMTP id i10so2600169laa.13 for ; Fri, 18 May 2012 00:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=X8L9RH6HBQMnVRGOueaFjiU3nYL4QOrjNzzNCbtGdz0=; b=MG1O02tOInQuRcQBPTBnWZZaOACt6nuW47uM7M35AXzHqqU/oVmRCyamRuBESToCuU 0aQdEbByZSSDWbSs1NR+64i39eao1NLxy40ZBxyX29POo3SE9TENy2/ziWQyJElls3c1 fyG9/iqYYFNr+2tZuW/Y45wfRfSglINST2CokH3FBpT89qmLpP0TzI3QYMHnfu5AtJPI XovkK4TTfMZR1DVKcPprm+WiJMN3rVDsC6lP0W0ALbE+IyzMnggBCb+MIjASd+YH9k/1 8AuDwB4vhOih07mDs8n5l9pvgsVXIn1AGEdwmpSopnMnf+jb1rjU+Lrgsav9fvyv/21W BXIQ== Received: by 10.112.24.194 with SMTP id w2mr4262068lbf.75.1337324935801; Fri, 18 May 2012 00:08:55 -0700 (PDT) Received: from localhost ([78.157.92.5]) by mx.google.com with ESMTPS id gv8sm11154210lab.14.2012.05.18.00.08.46 (version=SSLv3 cipher=OTHER); Fri, 18 May 2012 00:08:54 -0700 (PDT) Date: Fri, 18 May 2012 10:08:46 +0300 From: Gleb Kurtsou To: Pedro Giffuni Message-ID: <20120518070846.GB1071@reks> References: <4FB51CDF.3040306@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FB51CDF.3040306@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@FreeBSD.org, freebsd-toolchain@FreeBSD.org Subject: Re: GCC update for testing X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2012 07:08:58 -0000 On (17/05/2012 10:44), Pedro Giffuni wrote: > Hi; > > I took a bunch of patches that were merged into the GCC 4.1 branch > (under GPLv2) and prepared a patch for merging them into our base > gcc. These are supposed to be bug fixes only. > > You can get the patch here: > http://people.freebsd.org/~pfg/patches/patch-contrib-gcc > And, for those really interested, the log is here: > http://people.freebsd.org/~pfg/patches/gcc41-pr-log Could you check if patch fixes this issue: http://marc.info/?l=freebsd-hackers&m=132348021530691&w=2 I've disabled gcc from base locally since discovering it. Thanks, Gleb. > It may be my imagination but the patch seems to be causing more > warnings than usual and it breaks the kernel here: > > ____ > $ make > cc -c -O2 -Os -pipe -fno-strict-aliasing -march=athlon64 -std=c99 -g > -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -nostdinc -I. -I../../.. > -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include > opt_global.h -fno-common -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 > -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse > -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -fstack-protector -Werror ../../../cam/scsi/scsi_sa.c > cc1: warnings being treated as errors > ../../../cam/scsi/scsi_sa.c: In function 'samount': > ../../../cam/scsi/scsi_sa.c:1887: warning: 'comp_supported' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:1888: warning: 'write_protect' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:1887: warning: 'comp_enabled' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2728: warning: 'current_speed' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2728: note: 'current_speed' was declared here > ../../../cam/scsi/scsi_sa.c:2727: warning: 'current_density' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2727: note: 'current_density' was declared here > ../../../cam/scsi/scsi_sa.c:2725: warning: 'current_blocksize' may be > used uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2725: note: 'current_blocksize' was declared > here > ../../../cam/scsi/scsi_sa.c:2728: warning: 'current_speed' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2728: note: 'current_speed' was declared here > ../../../cam/scsi/scsi_sa.c:2725: warning: 'current_blocksize' may be > used uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2725: note: 'current_blocksize' was declared > here > ../../../cam/scsi/scsi_sa.c:2728: warning: 'current_speed' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2728: note: 'current_speed' was declared here > ../../../cam/scsi/scsi_sa.c:2725: warning: 'current_blocksize' may be > used uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2725: note: 'current_blocksize' was declared > here > ../../../cam/scsi/scsi_sa.c:2728: warning: 'current_speed' may be used > uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2728: note: 'current_speed' was declared here > ../../../cam/scsi/scsi_sa.c:2725: warning: 'current_blocksize' may be > used uninitialized in this function > ../../../cam/scsi/scsi_sa.c:2725: note: 'current_blocksize' was declared > here > *** Error code 1 > ... > ____ > > Other stuff I tested (Apache OpenOffice) builds fine. > > cheers, > > Pedro. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"