aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-04-24 16:18:46 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-04-24 16:18:46 +0000
commit833229510cb13aa643a6005f60882daec616e2b7 (patch)
tree35dd8b11788bce7a6dab65c4d291872b84068f45 /gcc/c-common.h
parent194ac52ab4a35f22abafaec46ac22ac303a61ab8 (diff)
downloadgcc-833229510cb13aa643a6005f60882daec616e2b7.zip
gcc-833229510cb13aa643a6005f60882daec616e2b7.tar.gz
gcc-833229510cb13aa643a6005f60882daec616e2b7.tar.bz2
c-common.h (check_builtin_function_arguments): Declare.
2008-04-24 Richard Guenther <rguenther@suse.de> * c-common.h (check_builtin_function_arguments): Declare. * c-common.c (validate_nargs): New function. (check_builtin_function_arguments): Likewise. * c-typeck.c (build_function_call): Call check_builtin_function_arguments. * builtins.c (fold_builtin_classify): Remove error reporting code. (fold_builtin_unordered_cmp): Likewise. (fold_builtin_1): Likewise. (fold_builtin_n): Likewise. cp/ * typeck.c (cp_build_function_call): Call check_builtin_function_arguments. * gcc.dg/builtin-constant_p-1.c: New testcase. * gcc.dg/builtin-errors.c: Adjust expected error. From-SVN: r134635
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 3ca3c8b..c403bee 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -666,6 +666,7 @@ extern void check_function_arguments_recurse (void (*)
unsigned HOST_WIDE_INT),
void *, tree,
unsigned HOST_WIDE_INT);
+extern bool check_builtin_function_arguments (tree, int, tree *);
extern void check_function_format (tree, int, tree *);
extern void set_Wformat (int);
extern tree handle_format_attribute (tree *, tree, tree, int, bool *);