From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32756 invoked by alias); 24 Apr 2002 15:35:30 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 32701 invoked from network); 24 Apr 2002 15:35:25 -0000 Received: from unknown (HELO ep09.kernel.pl) (212.87.11.162) by sources.redhat.com with SMTP; 24 Apr 2002 15:35:25 -0000 Received: (qmail 7482 invoked by uid 566); 24 Apr 2002 15:35:23 -0000 Date: Wed, 24 Apr 2002 08:40:00 -0000 From: Michal Moskal To: gcc@gcc.gnu.org Subject: gcc-3.1 ICE on ppc-linux, regression wrt 2.95 Message-ID: <20020424153523.GA3572@ep09.kernel.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-SW-Source: 2002-04/txt/msg01242.txt.bz2 Following code, compiled with 'gcc -O2 -c' : #define NULL 0 #define PATH_MAX 1024 extern int verbose; int pkgdir_update(int *npatches) { char foo[PATH_MAX], tmpath[PATH_MAX], path[PATH_MAX]; char *linebuf = NULL; int line_size = 0, nread, nerr = 0; while ((nread = getline(&linebuf, &line_size, NULL)) > 0) { char *p; if ((p = strchr(p, ' ')) == NULL) { nerr++; break; } (*npatches)++; } if (*npatches == 0) /* outdated and no patches */ nerr++; if (nerr == 0) { if (vf_localdirpath(tmpath, sizeof(tmpath), path) < (int)sizeof(tmpath)) { verbose--; /* verbosity need to be reorganized... */ rm_dir_files(tmpath); verbose++; } } return nerr == 0; } causes gcc 3.1 20020415 to ICE. Reading specs from /usr/lib/gcc-lib/ppc-pld-linux/3.1/specs Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,gcov,java,objc,ksi,ada --enable-long-long --enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --with-slibdir=/lib --without-x ppc-pld-linux Thread model: posix gcc version 3.1 20020415 (prerelease) Example was destiled from bigger source (poldek pkg managment tool by Pawel Gajda), I'm unable to cut it down. It compiles fine with gcc 2.95. -- : Michal Moskal :::::::: malekith/at/pld.org.pl : GCS {C,UL}++++$ a? !tv : PLD Linux ::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h