diff options
author | Jason Merrill <jason@redhat.com> | 2016-04-13 16:11:29 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-04-13 16:11:29 -0400 |
commit | 2ee35bea2e5f0241fff589ddc038c9d8eb444fb9 (patch) | |
tree | f4446c9a372328e1c80530640ab77106661bfe34 /gcc/cp/cp-tree.h | |
parent | 5655267ca161de13e553dbfc0b7e58962fbb2443 (diff) | |
download | gcc-2ee35bea2e5f0241fff589ddc038c9d8eb444fb9.zip gcc-2ee35bea2e5f0241fff589ddc038c9d8eb444fb9.tar.gz gcc-2ee35bea2e5f0241fff589ddc038c9d8eb444fb9.tar.bz2 |
Warn about empty parameter ABI with -Wabi=9.
* call.c (empty_class_msg, mark_for_abi_warning)
(warn_empty_class_abi): New.
(build_call_a): Use them.
* decl.c (store_parm_decls): Use mark_for_abi_warning.
* error.c (pp_format_to_string): New.
From-SVN: r234960
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index faea452..8d721c7 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -5540,6 +5540,8 @@ extern tree build_addr_func (tree, tsubst_flags_t); extern void set_flags_from_callee (tree); extern tree build_call_a (tree, int, tree*); extern tree build_call_n (tree, int, ...); +extern void mark_for_abi_warning (tree, tree); +extern void warn_empty_class_abi (tree, location_t); extern bool null_ptr_cst_p (tree); extern bool null_member_pointer_value_p (tree); extern bool sufficient_parms_p (const_tree); @@ -5894,6 +5896,7 @@ extern bool pedwarn_cxx98 (location_t, int, const char *, extern location_t location_of (tree); extern void qualified_name_lookup_error (tree, tree, tree, location_t); +extern tree pp_format_to_string (const char *, ...); /* in except.c */ extern void init_exception_processing (void); |