Ada bootstrap broken on x86 and x86_64
Jan Hubicka
hubicka@ucw.cz
Mon Sep 6 21:28:00 GMT 2004
> Different failures, my last successful builds where on thursday.
>
> Laurent
>
> LAST_UPDATED Mon Sep 6 20:02:44 UTC 2004
>
> On x86 in stage2:
>
> <<
> stage1/xgcc -Bstage1/ -B/home/guerby/work/gcc/install/install-20040906T220450/i686-pc-linux-gnu/bin/ -c -g -O2 -gnatpg -gnata -g -O1 -fno-inline \
> -I- -I. -Iada -I/home/guerby/work/gcc/version-head/gcc/ada /home/guerby/work/gcc/version-head/gcc/ada/a-except.adb -o ada/a-except.o
> +===========================GNAT BUG DETECTED==============================+
> | 3.5.0 20040906 (experimental) (i686-pc-linux-gnu) GCC error: |
> | in peel_address, at tree-ssa-loop-ivopts.c:2562 |
> | Error detected at a-exexda.adb:312:8 |
> >>
Hi,
this should fix the problem. I think that the actual value of ADDR_EXPR
(VIEW_CONVERT_EXPR (something)) is equivalent to ADDR_EXPR (something)
so I can just ignore it when computing the offsets.
Honza
Index: tree-ssa-loop-ivopts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-loop-ivopts.c,v
retrieving revision 2.3
diff -c -3 -p -r2.3 tree-ssa-loop-ivopts.c
*** tree-ssa-loop-ivopts.c 6 Sep 2004 18:38:27 -0000 2.3
--- tree-ssa-loop-ivopts.c 6 Sep 2004 21:25:56 -0000
*************** peel_address (tree addr, unsigned HOST_W
*** 2541,2546 ****
--- 2541,2549 ----
return TREE_OPERAND (addr, 0);
+ case VIEW_CONVERT_EXPR:
+ return TREE_OPERAND (addr, 0);
+
case ARRAY_REF:
off = TREE_OPERAND (addr, 1);
More information about the Gcc
mailing list