aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-03-31 01:52:42 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-03-31 01:52:42 -0800
commit9602f5a04b6c2a3877b8001b8ee7df74cfde4a9c (patch)
tree08485e14eaa9f1372587d43f25c3a7c01bc9dfc4 /gcc/stmt.c
parentb56bc85a40b31394439c3a29ddaf71f17654b83d (diff)
downloadgcc-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/stmt.c')
-rw-r--r--gcc/stmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index d732047..2db32e8 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3667,9 +3667,7 @@ expand_nl_goto_receivers (thisblock)
if (any_invalid)
{
expand_nl_goto_receiver ();
- emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "abort"), LCT_NORETURN,
- VOIDmode, 0);
- emit_barrier ();
+ expand_builtin_trap ();
}
nonlocal_goto_handler_labels = label_list;