Bug#633352: gcc-4.4: function name incorrect in -Wstrict-overflow diagnostic

2011-07-09 Thread James Youngman
Package: gcc-4.4 Version: 4.4.5-8 Severity: minor The shell script below reproduces this problem. Notice that the function name is incorrect (on my system the name shown is "T.4"). I get this result when I run the script: ~$ sh t98.sh t98.c: In function ‘T.4’: t98.c:5: warning: assuming signed

Bug#629010: gcc-4.4: typo in warning "logical '&&' with non-zero constant will always evaluate as true"

2011-06-02 Thread James Youngman
Package: gcc-4.4 Version: 4.4.5-8 Severity: minor The && in the warning message below should probably be ||. ~$ cat typo.c #include const char *validchars = "123"; char x = 'y'; int main (int argc, char *argv[]) { return (1 || (0 == strchr (argv[0], x))); } ~$ gcc-Wlogical-op -O2 typo.c