Bugs introduced in GCC?

Richard M. Stallman rms at gnu.org
Sun Aug 17 22:32:41 UTC 2008


Are the statements below true?
Is the Ubuntu patch really 5 MB?
If so, what is it meant to change?



From: John Regehr <regehr at cs.utah.edu>

...the default C 
compiler for Ubuntu [GNU/]Linux 8.04 is a patched gcc-4.2.3 which (on x86) 
miscompiles this rather simple function:

int func_1 (void)
{
   signed char l_11 = 1;
   unsigned char l_12 = -1;
   return (l_11 > l_12);
}

The emitted code returns 1 instead of 0.  An unpatched gcc-4.2.3 compiles 
this correctly.  The patch for the Ubuntu version of this compiler is 
larger than 5 MB.




More information about the Ubuntu-devel-discuss mailing list