[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Fri, May 11, 2007 at 04:46:28PM +0200, Martin Michlmayr wrote:
> * Pierre Habouzit <madcoder@debian.org> [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 that I haven't actually
> looked at the code yet).
> 
> > FWIW under other circumstances I even got an ICE, but I wasn't able
> > to reduce the testcase, and the code that generated it is not really
> > ..  well open, so I can't give the full file sadly.
> 
> What was the exact error message?


cc1: warnings being treated as errors
btree.c: In function 'bt_deref':
btree.c:164: error: passing argument 1 of 'vbt_deref' discards qualifiers from pointer target type
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,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.

  The fist error is the reduced testcase I showed earlier (it seems it
does not like unconstifying types), I was unable to reduce the second
one.

Cheers,
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpEzUuYi1cRk.pgp
Description: PGP signature


Reply to: