aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-02-23 13:41:43 +0100
committerEric Botcazou <ebotcazou@gcc.gnu.org>2004-02-23 12:41:43 +0000
commitbba745c19d4fa3c59a9233f7e7e3b0b92977e662 (patch)
tree2e44e37a0e7aecf9918a26fd85248ec003ba70c1 /gcc/builtins.c
parent29f4ceab97334d8e361a103dae4254766414acf5 (diff)
downloadgcc-bba745c19d4fa3c59a9233f7e7e3b0b92977e662.zip
gcc-bba745c19d4fa3c59a9233f7e7e3b0b92977e662.tar.gz
gcc-bba745c19d4fa3c59a9233f7e7e3b0b92977e662.tar.bz2
re PR c/14188 (Suggestion: improve warning message for call through incompatible type)
PR c/14188 * builtins.c (expand_builtin_va_arg): Emit an informative message if a trap is generated. * c-typeck.c (build_function_call): Likewise. Co-Authored-By: Falk Hueffner <falk@debian.org> From-SVN: r78294
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 7e5953a..895c835 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -4134,6 +4134,7 @@ expand_builtin_va_arg (tree valist, tree type)
/* We can, however, treat "undefined" any way we please.
Call abort to encourage the user to fix the program. */
+ inform ("if this code is reached, the program will abort");
expand_builtin_trap ();
/* This is dead code, but go ahead and finish so that the