aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-ada-spec.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2013-11-04 07:24:44 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2013-11-04 07:24:44 +0000
commit94159ecf929a26211ec28c455ea38063591deda7 (patch)
tree0a4a887f309eb204b419aa7d22bdd10ddede977a /gcc/c-family/c-ada-spec.h
parent846276fae10922d24c9be666e264aa8058384de4 (diff)
downloadgcc-94159ecf929a26211ec28c455ea38063591deda7.zip
gcc-94159ecf929a26211ec28c455ea38063591deda7.tar.gz
gcc-94159ecf929a26211ec28c455ea38063591deda7.tar.bz2
c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
c-family/ * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL. (dump_ada_specs): Adjust prototype of second callback. * c-ada-spec.c (cpp_check): New global variable. (dump_ada_nodes): Remove cpp_check parameter and do not pass it down. (print_generic_ada_decl): Likewise. (has_static_fields): Change return type to bool and add guard. (has_nontrivial_methods): New predicate. (is_tagged_type): Change return type to bool. (separate_class_package): Call has_nontrivial_methods. (pp_ada_tree_identifier): Minor tweaks. (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node. (dump_ada_array_domains): Likewise. (dump_ada_array_type): Likewise. (dump_template_types): Remove cpp_check parameter and do not pass it to dump_generic_ada_node. (dump_ada_template): Likewise. (dump_generic_ada_node): Remove cpp_check parameter and do not pass it recursively. (print_ada_methods): Change return type to integer. Remove cpp_check parameter and do not pass it down. (dump_nested_types): Remove cpp_check parameter and do not pass it to dump_generic_ada_node. (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before accessing methods. (print_ada_struct_decl): Remove cpp_check parameter and do not pass it down. Use has_nontrivial_methods to recognize C++ classes. Use return value of print_ada_methods. (dump_ads): Rename cpp_check parameter to check and adjust prototype. Set cpp_check to it before invoking dump_ada_nodes. (dump_ada_specs): Likewise. cp/ * decl2.c (cpp_check): Change type of first parameter and deal with IS_TRIVIAL. From-SVN: r204344
Diffstat (limited to 'gcc/c-family/c-ada-spec.h')
-rw-r--r--gcc/c-family/c-ada-spec.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c-family/c-ada-spec.h b/gcc/c-family/c-ada-spec.h
index 0bc249f..64f0ecd 100644
--- a/gcc/c-family/c-ada-spec.h
+++ b/gcc/c-family/c-ada-spec.h
@@ -29,13 +29,14 @@ typedef enum {
IS_CONSTRUCTOR,
IS_DESTRUCTOR,
IS_COPY_CONSTRUCTOR,
- IS_TEMPLATE
+ IS_TEMPLATE,
+ IS_TRIVIAL
} cpp_operation;
extern location_t decl_sloc (const_tree, bool);
extern void collect_ada_nodes (tree, const char *);
extern void collect_source_ref (const char *);
extern void dump_ada_specs (void (*)(const char *),
- int (*)(tree, cpp_operation));
+ int (*)(const_tree, cpp_operation));
#endif /* ! C_ADA_SPEC_H */