Kernel: Linux 2.6.24-rc3 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.2 depends on:
ii binutils 2.18.1~cvs20071027-1 The GNU assembler, linker and bina
ii cpp-4.2 4.2.2-3 The GNU C preprocessor
ii gcc-4.2-base 4.2.2-3 The GNU Compiler Collection (base
ii libc6 2.6.1-6 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-3 GCC support library
ii libgomp1 4.2.2-3 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.2 recommends:
ii libc6-dev 2.6.1-6 GNU C Library: Development Librari
-- no debconf information
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
On Tuesday 20 November 2007, Frans Pop wrote:
> The following test program will result in "OMG,-10==10 in linux!" when
> compiled with both gcc-4.1 and gcc-4.2.
Just tested that gcc-3.3 and gcc-3.4 are also affected.
Note that this issue is in theory pretty serious as in principle _any_
binary package in the archive could be affected.
A patch is available at:
http://www.nabble.com/-PATCH--Fix-PR34130,-extract_muldiv-broken-t4826688.html
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
11-20-2007, 01:53 PM
Bastian Blank
Bug#452108: gcc-4.2: Incorrect results with abs()
On Tue, Nov 20, 2007 at 03:09:17PM +0100, Frans Pop wrote:
> The following test program will result in "OMG,-10==10 in linux!" when
> compiled with both gcc-4.1 and gcc-4.2.
Further information:
| int i = 2;
| int a = -10 * abs (i - 1);
| int b = 10 * abs (i - 1);
compiles to (original tree)
| int i = 2;
| int a = ABS_EXPR <i * -10 + 10>;
| int b = ABS_EXPR <i * 10 + -10>;
| int i = 2;
| int a = -10 * abs (i);
| int b = 10 * abs (i);
compiles to
| int i = 2;
| int a = ABS_EXPR <i> * -10;
| int b = ABS_EXPR <i> * 10;
Bastian
--
There is a multi-legged creature crawling on your shoulder.
-- Spock, "A Taste of Armageddon", stardate 3193.9
11-20-2007, 02:42 PM
Frans Pop
Bug#452108: gcc-4.2: Incorrect results with abs()
found 452113 4.1.1-21
found 452114 3.3.5-13
found 452114 3.3.6-15
found 452115 3.4.3-13sarge1
found 452115 3.4.6-5
thanks
On Tuesday 20 November 2007, Frans Pop wrote:
> Just tested that gcc-3.3 and gcc-3.4 are also affected.
Sarge and Etch versions of 3.3, 3.4 and 4.1 are affected as well.
gcc-2.95 (2.95.4-{22,27}) is _not_ affected.
--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org