Bug#318959: gcc-4.0: compiles broken code
Package: gcc-4.0
Version: 4.0.1-2
Severity: grave
Justification: renders package unusable
gcc-4.0 generates code that gives false results for this
tiny program:
#include <stdio.h>
#include <math.h>
int main()
{
volatile double a = 1.04837e+06, b = 1.04866e+06;
printf("%li %li\n", lround(a), lround(b));
return 0;
}
compilation with -O1 or -O2 gives wrong results for
lround(b), although the number would fit the long
variable obviously.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages gcc-4.0 depends on:
ii binutils 2.16.1-2 The GNU assembler, linker
and bina
ii cpp-4.0 4.0.1-2 The GNU C preprocessor
ii gcc-4.0-base 4.0.1-2 The GNU Compiler Collection
(base
ii libc6 2.3.2.ds1-22 GNU C Library: Shared
libraries an
ii libgcc1 1:4.0.1-2 GCC support library
Versions of packages gcc-4.0 recommends:
ii libc6-dev 2.3.2.ds1-22 GNU C Library: Development
Librari
ii libmudflap0-dev 4.0.1-2 GCC mudflap support
libraries (dev
-- no debconf information
Reply to: