[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#178386: marked as done (gcc-3.2: Warns wrong about unreachable code)



Your message dated Fri, 18 Apr 2003 09:55:02 +0200
with message-id <16031.44886.455954.521096@gargle.gargle.HOWL>
and subject line Bug#178386: gcc-3.2: Warns wrong about unreachable code
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Jan 2003 20:30:03 +0000
>From anthony@derobert.net Sat Jan 25 14:30:02 2003
Return-path: <anthony@derobert.net>
Received: from ip68-100-128-98.nv.nv.cox.net (mx02.derobert.net) [68.100.128.98] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18cWwE-0005E4-00; Sat, 25 Jan 2003 14:30:02 -0600
Received: from bohr.local ([192.168.65.5])
	by mx02.derobert.net with esmtp (Exim 3.22 #1 (Red Hat Linux))
	id 18cWwC-0004jA-00; Sat, 25 Jan 2003 15:30:00 -0500
Received: from anthony by bohr.local with local (Exim 3.36 #1 (Debian))
	id 18cWw8-0005k9-00; Sat, 25 Jan 2003 15:30:00 -0500
From: Anthony DeRobertis <asd@suespammers.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-3.2: Warns wrong about unreachable code
X-Mailer: reportbug 1.50
Date: Sat, 25 Jan 2003 15:29:56 -0500
Message-Id: <E18cWw8-0005k9-00@bohr.local>
Sender: Anthony DeRobertis <anthony@bohr.local>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-2.1 required=5.0
	tests=PGP_SIGNATURE,SPAM_PHRASE_00_01,SUPERLONG_LINE
	version=2.41
X-Spam-Level: 

Package: gcc-3.2
Version: 1:3.2.1-0pre3
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gcc-3.2 -Wall -pedantic -ansi -Werror -march=i486 -mcpu=i486 -Os	\
       -Wunreachable-code -g -o salt-generator salt-generator.c
cc1: warnings being treated as errors
salt-generator.c: In function `main':
salt-generator.c:47: warning: will never be executed
make: *** [salt-generator] Error 1

Line 47 is the "do {" line below. Lines around it are:
		for (x = 0; x < SALT_SIZE; ++x) {
			do {
				errno = 0;
				read_cnt = read(rand, &buf, 1);
			} while (read_cnt == -1 && (errno == EINTR || errno == EAGAIN));
SALT_SIZE is 16.

Fully pre-processed source comming up as soon as I get the bug number to
mail it to.

anthony@bohr:salt-generator$ gcc-3.2 -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.1 20020924 (Debian prerelease)


- -- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux bohr 2.4.16 #2 SMP Wed Nov 28 05:25:00 EST 2001 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages gcc-3.2 depends on:
ii  binutils                  2.13.90.0.10-1 The GNU assembler, linker and bina
ii  cpp-3.2                   1:3.2.1-0pre3  The GNU C preprocessor.
ii  gcc-3.2-base              1:3.2.1-0pre3  The GNU Compiler Collection (base 
ii  libc6                     2.2.5-14.3     GNU C Library: Shared libraries an
ii  libgcc1                   1:3.2.1-0pre3  GCC support library.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+MvPI+z+IwlXqWf4RAibVAJ90cvYkQXB/M+DB+Ox83IQ0YAO/MwCeMUJk
WFz1DX16nbCTXu8SbFI3KUI=
=RGjZ
-----END PGP SIGNATURE-----

---------------------------------------
Received: (at 178386-done) by bugs.debian.org; 18 Apr 2003 07:59:52 +0000
>From doko@cs.tu-berlin.de Fri Apr 18 02:59:51 2003
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 196Qml-00051X-00; Fri, 18 Apr 2003 02:59:51 -0500
Received: from bolero.cs.tu-berlin.de (daemon@bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id JAA29884;
	Fri, 18 Apr 2003 09:55:02 +0200 (MET DST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id h3I7t2926286;
	Fri, 18 Apr 2003 09:55:02 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <16031.44886.455954.521096@gargle.gargle.HOWL>
Date: Fri, 18 Apr 2003 09:55:02 +0200
To: Anthony DeRobertis <asd@suespammers.org>, 178386-done@bugs.debian.org
Subject: Re: Bug#178386: gcc-3.2: Warns wrong about unreachable code
In-Reply-To: <E18cWw8-0005k9-00@bohr.local>
References: <E18cWw8-0005k9-00@bohr.local>
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Delivered-To: 178386-done@bugs.debian.org
X-Spam-Status: No, hits=-1.3 required=4.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01
	version=2.44
X-Spam-Level: 

Anthony DeRobertis writes:
> Package: gcc-3.2
> Version: 1:3.2.1-0pre3
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> gcc-3.2 -Wall -pedantic -ansi -Werror -march=i486 -mcpu=i486 -Os	\
>        -Wunreachable-code -g -o salt-generator salt-generator.c
> cc1: warnings being treated as errors
> salt-generator.c: In function `main':
> salt-generator.c:47: warning: will never be executed
> make: *** [salt-generator] Error 1
> 
> Line 47 is the "do {" line below. Lines around it are:
> 		for (x = 0; x < SALT_SIZE; ++x) {
> 			do {
> 				errno = 0;
> 				read_cnt = read(rand, &buf, 1);
> 			} while (read_cnt == -1 && (errno == EINTR || errno == EAGAIN));
> SALT_SIZE is 16.

Fixed in gcc-3.3 and current gcc-3.2 (3.2.3-0pre9).



Reply to: