This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: enable-checking: Tree check: expected real_cst, have var_decl in fold-const
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: enable-checking: Tree check: expected real_cst, have var_decl in fold-const
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 30 Oct 1999 22:12:45 -0600
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <u8emecc46n.fsf@gromit.rhein-neckar.de>you write:
>
> With --enable-checking I get the following ICE. I'm using the current
> CVS snapshot, updated at 09:00 UTC today (30th Oct).
>
> stage1/xgcc -Bstage1/ -B/opt/gcc-2.96/i686-pc-linux-gnu/bin/ -c -DIN_GCC
> -W
> -Wall -O2 -g -O2 -DHAVE_CONFIG_H -I. -I../../cvs/gcc/gcc
> -I../../cvs/gcc/gcc/config -I../../cvs/gcc/gcc/../include
> ../../cvs/gcc/gcc/global.c
> ../../cvs/gcc/gcc/global.c: In function `find_reg':
> ../../cvs/gcc/gcc/global.c:1165: Tree check: expected real_cst, have var_de
> cl
> ../../cvs/gcc/gcc/global.c:1165: Internal compiler error in `fold', at fold
> -const.c:5754
> Please submit a full bug report.
This should be fixed now. We missed a case where we needed to verify that
a tree node was a REAL_CST before peeking at REAL_VALUE_CST.
jeff