This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can't build gcc cvs trunk 20050409 gnat tools on sparc-linux:tree check: accessed operand 2 of view_convert_expr with 1 operands invisit_assignment, at tree-ssa-ccp.c:1074
- From: Laurent GUERBY <laurent at guerby dot net>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: schwab at suse dot de, gcc at gcc dot gnu dot org
- Date: Sun, 10 Apr 2005 01:07:02 +0200
- Subject: Re: Can't build gcc cvs trunk 20050409 gnat tools on sparc-linux:tree check: accessed operand 2 of view_convert_expr with 1 operands invisit_assignment, at tree-ssa-ccp.c:1074
- References: <10504091428.AA27371@vlsi1.ultra.nyu.edu>
On Sat, 2005-04-09 at 10:28 -0400, Richard Kenner wrote:
> It contains this line:
>
> orig_lhs = TREE_OPERAND (orig_lhs, 1);
>
> But orig_lhs is a VIEW_CONVERT_EXPR which has only one operand.
>
> That's certainly a typo. But I recall that that code has to go anyway.
I'm seeing the failure on x86-linux too:
stage1/xgcc -Bstage1/ -B/home/guerby/work/gcc/install/install-20050410T003153/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -gnatpg -gnata -I--I. -Iada -I/home/guerby/work/gcc/version-head/gcc/ada /home/guerby/work/gcc/version-head/gcc/ada/errout.adb -o ada/errout.o
+===========================GNAT BUG DETECTED==============================+
| 4.1.0 20050409 (experimental) (i686-pc-linux-gnu) GCC error: |
| tree check: accessed operand 2 of view_convert_expr with 1 operands |
| in visit_assignment, at tree-ssa-ccp.c:1074 |
| Error detected at errout.adb:2563:1 |
Should I replace ",1" by ",0" or is something more ambitious needed?
Laurent