This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Your recent expr.c change breaks Ada
- From: Graham Stott <graham dot stott at btinternet dot com>
- To: jason at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 02 Aug 2002 22:14:42 +0100
- Subject: Your recent expr.c change breaks Ada
Jason,
This change break bootstrap with Ada
2002-08-02 Jason Merrill <jason@redhat.com>
* langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
* langhooks.c (lhd_expr_size): Define default.
* langhooks.h (struct lang_hooks): Add expr_size.
* explow.c (expr_size): Call it.
* expr.c (store_expr): Don't copy an expression of size zero.
(expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
to store.
* Makefile.in (builtins.o): Depend on langhooks.h.
With --enable-checking=tree,misc,rtl I get this abort during building of stage2
===========================GNAT BUG DETECTED==============================+
| 3.3 20020802 (experimental) (i686-pc-linux-gnu) GCC error: |
| RTL check: expected code `const_int', have `reg' in expand_expr, at |
| expr.c:6815 |
| Error detected at /usr/local/src/gcc3.2/gcc/gcc/ada/s-secsta.ads:65:14 |
Cheers
Graham