langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
authorJason Merrill <jason@redhat.com>
Fri, 2 Aug 2002 11:57:22 +0000 (07:57 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 2 Aug 2002 11:57:22 +0000 (07:57 -0400)
commita77a9a18c058d41eeb634e6c6a6f56d9bae04d55
tree72cdfa1019e7a95a9c990b7e0b9711b69f589e01
parent367aa58580632b0bef67f5bbcc41009eb8a09381
langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.

        * 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.

        * cp-lang.c (LANG_HOOKS_EXPR_SIZE): Define.
        (cp_expr_size): New fn.
        * call.c (build_over_call): Lose empty class hackery.
        (convert_arg_to_ellipsis): Promote non-POD warning to error.
        * typeck.c (build_modify_expr): Don't use save_expr on an lvalue.

From-SVN: r55983
gcc/ChangeLog
gcc/Makefile.in
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-lang.c
gcc/cp/typeck.c
gcc/explow.c
gcc/expr.c
gcc/langhooks-def.h
gcc/langhooks.c
gcc/langhooks.h