Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-16 Thread Martin Michlmayr
* Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-11 16:34]: > does not work: > /usr/lib/gcc-snapshot/bin/gcc -O2 -o a.o a.c > a.c: In function 'main': > a.c:12: warning: passing argument 1 of 'bar' discards qualifiers from > pointer target type This bogus warning is the same bug as #403596 --

Processed: Re: Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-16 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: > forwarded 423407 http://gcc.gnu.org/PR31959 Bug#423407: gcc-snapshot: invalid warning in -O2 Noted your statement that Bug has been forwarded to http://gcc.gnu.org/PR31959. > tags 423407 + upstream Bug#423407: gcc-snapshot: invalid warning

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-16 Thread Martin Michlmayr
forwarded 423407 http://gcc.gnu.org/PR31959 tags 423407 + upstream retitle 423407 ICE in expand_builtin_expect, at builtins.c:5112 severity 423407 minor thanks * Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-16 16:32]: > both are still here (the wrong warning *and* the ICE), with: > gcc-snapshot

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-16 Thread Pierre Habouzit
On Wed, May 16, 2007 at 03:33:50PM +0200, Martin Michlmayr wrote: > * Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-11 17:51]: > > btree.c: In function 'fbtree_fetch': > > btree.c:988: internal compiler error: in expand_builtin_expect, at > > builtins.c:5089 > > Please submit a full bug report, >

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-16 Thread Martin Michlmayr
* Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-11 17:51]: > btree.c: In function 'fbtree_fetch': > btree.c:988: internal compiler error: in expand_builtin_expect, at > builtins.c:5089 > Please submit a full bug report, I've uploaded a new version of gcc-snapshot. Can you please check if this ICE

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-11 Thread Pierre Habouzit
On Fri, May 11, 2007 at 04:46:28PM +0200, Martin Michlmayr wrote: > * Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-11 16:34]: > > does not work: > > /usr/lib/gcc-snapshot/bin/gcc -O2 -o a.o a.c > > a.c: In function 'main': > > a.c:12: warning: passing argument 1 of 'bar' discards qualifiers f

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-11 Thread Martin Michlmayr
* Pierre Habouzit <[EMAIL PROTECTED]> [2007-05-11 16:34]: > does not work: > /usr/lib/gcc-snapshot/bin/gcc -O2 -o a.o a.c > a.c: In function 'main': > a.c:12: warning: passing argument 1 of 'bar' discards qualifiers from > pointer target type I wonder if that's the same as #403596 (note tha

Bug#423407: gcc-snapshot: invalid warning in -O2

2007-05-11 Thread Pierre Habouzit
Package: gcc-snapshot Version: 20070422-1 Severity: important sample code: = #include #include #include static int bar(void *p) { return (int)(intptr_t)p; } static int foo(const void *p) { return bar((void *)p); } int main(void) { printf("%d\n