diff options
author | Richard Henderson <rth@redhat.com> | 2002-03-31 01:52:42 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-03-31 01:52:42 -0800 |
commit | 9602f5a04b6c2a3877b8001b8ee7df74cfde4a9c (patch) | |
tree | 08485e14eaa9f1372587d43f25c3a7c01bc9dfc4 /gcc/expr.h | |
parent | b56bc85a40b31394439c3a29ddaf71f17654b83d (diff) | |
download | gcc-9602f5a04b6c2a3877b8001b8ee7df74cfde4a9c.zip gcc-9602f5a04b6c2a3877b8001b8ee7df74cfde4a9c.tar.gz gcc-9602f5a04b6c2a3877b8001b8ee7df74cfde4a9c.tar.bz2 |
builtins.c (expand_builtin_va_arg): Give warnings not errors for promoted argument types; build trap.
* builtins.c (expand_builtin_va_arg): Give warnings not errors for
promoted argument types; build trap.
(expand_builtin_trap): New.
(expand_builtin): Use it.
* stmt.c (expand_nl_goto_receivers): Likewise.
* expr.h (expand_builtin_trap): Declare.
* libfuncs.h (LTI_abort, abort_libfunc): New.
* optabs.c (init_optabs): Init abort_libfunc.
* gcc.dg/va-arg-1.c: Expect warnings, not errors.
From-SVN: r51643
Diffstat (limited to 'gcc/expr.h')
-rw-r--r-- | gcc/expr.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -340,7 +340,6 @@ extern rtx get_condition PARAMS ((rtx, rtx *)); extern rtx gen_cond_trap PARAMS ((enum rtx_code, rtx, rtx, rtx)); /* Functions from builtins.c: */ -#ifdef TREE_CODE extern rtx expand_builtin PARAMS ((tree, rtx, rtx, enum machine_mode, int)); extern void std_expand_builtin_va_start PARAMS ((int, tree, rtx)); extern rtx std_expand_builtin_va_arg PARAMS ((tree, tree)); @@ -348,12 +347,11 @@ extern rtx expand_builtin_va_arg PARAMS ((tree, tree)); extern void default_init_builtins PARAMS ((void)); extern rtx default_expand_builtin PARAMS ((tree, rtx, rtx, enum machine_mode, int)); -#endif - extern void expand_builtin_setjmp_setup PARAMS ((rtx, rtx)); extern void expand_builtin_setjmp_receiver PARAMS ((rtx)); extern void expand_builtin_longjmp PARAMS ((rtx, rtx)); extern rtx expand_builtin_saveregs PARAMS ((void)); +extern void expand_builtin_trap PARAMS ((void)); extern HOST_WIDE_INT get_varargs_alias_set PARAMS ((void)); extern HOST_WIDE_INT get_frame_alias_set PARAMS ((void)); extern void record_base_value PARAMS ((unsigned int, rtx, int)); |