This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]