Bug#452108: gcc-4.2: Incorrect results with abs()

2007-11-20 Thread Frans Pop
Package: gcc-4.2 Version: 4.2.2-3 Severity: important At least gcc-4.2 and gcc-4.1 but probably also earlier versions are affected by a bug discussed on the linux-kernel list [1]. The following test program will result in OMG,-10==10 in linux! when compiled with both gcc-4.1 and gcc-4.2. int

Bug#452108: gcc-4.2: Incorrect results with abs()

2007-11-20 Thread Bastian Blank
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

Bug#452108: gcc-4.2: Incorrect results with abs()

2007-11-20 Thread Frans Pop
tags 452108 + patch clone 452108 -1 -2 -3 reassign -1 gcc-4.1 4.1.2-17 reassign -2 gcc-3.3 1:3.3.6-15 reassign -3 gcc-3.4 3.4.6-6 thanks 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.

Bug#452108: gcc-4.2: Incorrect results with abs()

2007-11-20 Thread Frans Pop
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.