* 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
--
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
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,
>
* 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
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
* 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
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
7 matches
Mail list logo