diff options
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/Make-lang.in | 8 | ||||
-rw-r--r-- | gcc/cp/config-lang.in | 34 | ||||
-rw-r--r-- | gcc/cp/constexpr.cc | 2 | ||||
-rw-r--r-- | gcc/cp/coroutines.cc | 2 | ||||
-rw-r--r-- | gcc/cp/cp-gimplify.cc | 4 | ||||
-rw-r--r-- | gcc/cp/cp-lang.cc | 4 | ||||
-rw-r--r-- | gcc/cp/cp-objcp-common.cc | 8 | ||||
-rw-r--r-- | gcc/cp/cp-objcp-common.h | 4 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 84 | ||||
-rw-r--r-- | gcc/cp/cvt.cc | 18 | ||||
-rw-r--r-- | gcc/cp/decl.cc | 8 | ||||
-rw-r--r-- | gcc/cp/decl2.cc | 2 | ||||
-rw-r--r-- | gcc/cp/error.cc | 2 | ||||
-rw-r--r-- | gcc/cp/init.cc | 4 | ||||
-rw-r--r-- | gcc/cp/lang-specs.h | 2 | ||||
-rw-r--r-- | gcc/cp/method.cc | 2 | ||||
-rw-r--r-- | gcc/cp/module.cc | 4 | ||||
-rw-r--r-- | gcc/cp/name-lookup.cc | 2 | ||||
-rw-r--r-- | gcc/cp/name-lookup.h | 2 | ||||
-rw-r--r-- | gcc/cp/parser.cc | 4 | ||||
-rw-r--r-- | gcc/cp/parser.h | 2 | ||||
-rw-r--r-- | gcc/cp/pt.cc | 4 | ||||
-rw-r--r-- | gcc/cp/semantics.cc | 6 | ||||
-rw-r--r-- | gcc/cp/tree.cc | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.cc | 8 | ||||
-rw-r--r-- | gcc/cp/vtable-class-hierarchy.cc | 2 |
26 files changed, 113 insertions, 113 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 98eca81..2de4e47 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -120,15 +120,15 @@ cp-warn = $(STRICT_WARN) # compute checksum over all object files and the options # re-use the checksum from the prev-final stage so it passes # the bootstrap comparison and allows comparing of the cc1 binary -cc1plus-checksum.c : build/genchecksum$(build_exeext) checksum-options \ +cc1plus-checksum.cc : build/genchecksum$(build_exeext) checksum-options \ $(CXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS) if [ -f ../stage_final ] \ && cmp -s ../stage_current ../stage_final; then \ - cp ../prev-gcc/cc1plus-checksum.c cc1plus-checksum.c; \ + cp ../prev-gcc/cc1plus-checksum.cc cc1plus-checksum.cc; \ else \ build/genchecksum$(build_exeext) $(CXX_OBJS) $(BACKEND) $(CODYLIB) $(LIBDEPS) \ - checksum-options > cc1plus-checksum.c.tmp && \ - $(srcdir)/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c; \ + checksum-options > cc1plus-checksum.cc.tmp && \ + $(srcdir)/../move-if-change cc1plus-checksum.cc.tmp cc1plus-checksum.cc; \ fi cc1plus$(exeext): $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(CODYLIB) $(LIBDEPS) $(c++.prev) diff --git a/gcc/cp/config-lang.in b/gcc/cp/config-lang.in index 46696b2..9ac3dee 100644 --- a/gcc/cp/config-lang.in +++ b/gcc/cp/config-lang.in @@ -36,22 +36,22 @@ gtfiles="\ \$(srcdir)/c-family/c-common.h \$(srcdir)/c-family/c-objc.h \ \$(srcdir)/c-family/c-pragma.h \$(srcdir)/cp/decl.h \ \$(srcdir)/cp/parser.h \ -\$(srcdir)/c-family/c-common.c \$(srcdir)/c-family/c-format.c \ -\$(srcdir)/c-family/c-cppbuiltin.c \$(srcdir)/c-family/c-pragma.c \ -\$(srcdir)/cp/call.c \$(srcdir)/cp/class.c \$(srcdir)/cp/constexpr.c \ +\$(srcdir)/c-family/c-common.cc \$(srcdir)/c-family/c-format.cc \ +\$(srcdir)/c-family/c-cppbuiltin.cc \$(srcdir)/c-family/c-pragma.cc \ +\$(srcdir)/cp/call.cc \$(srcdir)/cp/class.cc \$(srcdir)/cp/constexpr.cc \ \$(srcdir)/cp/constraint.cc \$(srcdir)/cp/coroutines.cc \ -\$(srcdir)/cp/cp-gimplify.c \ -\$(srcdir)/cp/cp-lang.c \$(srcdir)/cp/cp-objcp-common.c \ -\$(srcdir)/cp/decl.c \$(srcdir)/cp/decl2.c \ -\$(srcdir)/cp/except.c \ -\$(srcdir)/cp/friend.c \ -\$(srcdir)/cp/init.c \ -\$(srcdir)/cp/lambda.c \$(srcdir)/cp/lex.c \$(srcdir)/cp/logic.cc \ -\$(srcdir)/cp/mangle.c \$(srcdir)/cp/method.c \$(srcdir)/cp/module.cc \ -\$(srcdir)/cp/name-lookup.c \ -\$(srcdir)/cp/parser.c \$(srcdir)/cp/pt.c \ -\$(srcdir)/cp/rtti.c \ -\$(srcdir)/cp/semantics.c \ -\$(srcdir)/cp/tree.c \$(srcdir)/cp/typeck2.c \ -\$(srcdir)/cp/vtable-class-hierarchy.c \ +\$(srcdir)/cp/cp-gimplify.cc \ +\$(srcdir)/cp/cp-lang.cc \$(srcdir)/cp/cp-objcp-common.cc \ +\$(srcdir)/cp/decl.cc \$(srcdir)/cp/decl2.cc \ +\$(srcdir)/cp/except.cc \ +\$(srcdir)/cp/friend.cc \ +\$(srcdir)/cp/init.cc \ +\$(srcdir)/cp/lambda.cc \$(srcdir)/cp/lex.cc \$(srcdir)/cp/logic.cc \ +\$(srcdir)/cp/mangle.cc \$(srcdir)/cp/method.cc \$(srcdir)/cp/module.cc \ +\$(srcdir)/cp/name-lookup.cc \ +\$(srcdir)/cp/parser.cc \$(srcdir)/cp/pt.cc \ +\$(srcdir)/cp/rtti.cc \ +\$(srcdir)/cp/semantics.cc \ +\$(srcdir)/cp/tree.cc \$(srcdir)/cp/typeck2.cc \ +\$(srcdir)/cp/vtable-class-hierarchy.cc \ " diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc index d0da4a7..f73496f 100644 --- a/gcc/cp/constexpr.cc +++ b/gcc/cp/constexpr.cc @@ -6550,7 +6550,7 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx, tree t, } /* fall through */ case CONST_DECL: - /* We used to not check lval for CONST_DECL, but darwin.c uses + /* We used to not check lval for CONST_DECL, but darwin.cc uses CONST_DECL for aggregate constants. */ if (lval) return t; diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc index f9a8af8..1792bf6 100644 --- a/gcc/cp/coroutines.cc +++ b/gcc/cp/coroutines.cc @@ -4387,7 +4387,7 @@ morph_fn_to_coro (tree orig, tree *resumer, tree *destroyer) If we encounter a fatal error we might return a now-empty body. Note, the returned ramp body is not 'popped', to be compatible with - the way that decl.c handles regular functions, the scope pop is done + the way that decl.cc handles regular functions, the scope pop is done in the caller. */ tree newbody = push_stmt_list (); diff --git a/gcc/cp/cp-gimplify.cc b/gcc/cp/cp-gimplify.cc index ad61030..0166ef6 100644 --- a/gcc/cp/cp-gimplify.cc +++ b/gcc/cp/cp-gimplify.cc @@ -1,4 +1,4 @@ -/* C++-specific tree lowering bits; see also c-gimplify.c and gimple.c. +/* C++-specific tree lowering bits; see also c-gimplify.cc and gimple.cc. Copyright (C) 2002-2022 Free Software Foundation, Inc. Contributed by Jason Merrill <jason@redhat.com> @@ -553,7 +553,7 @@ cp_gimplify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p) gimplify_modify_expr gimplifies the RHS before the LHS, but that isn't quite strong enough in two cases: - 1) gimplify.c wants to leave a CALL_EXPR on the RHS, which would + 1) gimplify.cc wants to leave a CALL_EXPR on the RHS, which would mean it's evaluated after the LHS. 2) the value calculation of the RHS is also sequenced before the diff --git a/gcc/cp/cp-lang.cc b/gcc/cp/cp-lang.cc index f35e325..7861f93 100644 --- a/gcc/cp/cp-lang.cc +++ b/gcc/cp/cp-lang.cc @@ -103,7 +103,7 @@ static void cxx_omp_finish_decl_inits (void); /* Each front end provides its own lang hook initializer. */ struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; -/* Lang hook routines common to C++ and ObjC++ appear in cp/cp-objcp-common.c; +/* Lang hook routines common to C++ and ObjC++ appear in cp/cp-objcp-common.cc; there should be very few routines below. */ /* The following function does something real, but only in Objective-C++. */ @@ -226,7 +226,7 @@ get_template_argument_pack_elems_folded (const_tree t) } /* The C++ version of the enum_underlying_base_type langhook. - See also cp/semantics.c (finish_underlying_type). */ + See also cp/semantics.cc (finish_underlying_type). */ static tree cxx_enum_underlying_base_type (const_tree type) diff --git a/gcc/cp/cp-objcp-common.cc b/gcc/cp/cp-objcp-common.cc index b31c9e3..8f74802 100644 --- a/gcc/cp/cp-objcp-common.cc +++ b/gcc/cp/cp-objcp-common.cc @@ -100,7 +100,7 @@ cp_tree_size (enum tree_code code) /* Returns true if T is a variably modified type, in the sense of C99. FN is as passed to variably_modified_p. This routine needs only check cases that cannot be handled by the - language-independent logic in tree.c. */ + language-independent logic in tree.cc. */ bool cp_var_mod_type_p (tree type, tree fn) @@ -280,7 +280,7 @@ cp_unit_size_without_reusable_padding (tree type) return TYPE_SIZE_UNIT (type); } -/* Stubs to keep c-opts.c happy. */ +/* Stubs to keep c-opts.cc happy. */ void push_file_scope (void) { @@ -291,7 +291,7 @@ pop_file_scope (void) { } -/* c-pragma.c needs to query whether a decl has extern "C" linkage. */ +/* c-pragma.cc needs to query whether a decl has extern "C" linkage. */ bool has_c_linkage (const_tree decl) { @@ -356,7 +356,7 @@ cp_pushdecl (tree decl) } /* Get the global value binding of NAME. Called directly from - c-common.c, not via a hook. */ + c-common.cc, not via a hook. */ tree identifier_global_value (tree name) diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h index 6c53bdf..4c13731 100644 --- a/gcc/cp/cp-objcp-common.h +++ b/gcc/cp/cp-objcp-common.h @@ -21,7 +21,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_CP_OBJCP_COMMON #define GCC_CP_OBJCP_COMMON -/* In cp/objcp-common.c, cp/cp-lang.c and objcp/objcp-lang.c. */ +/* In cp/objcp-common.c, cp/cp-lang.cc and objcp/objcp-lang.cc. */ extern tree cp_get_debug_type (const_tree); extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t, @@ -43,7 +43,7 @@ extern tree cxx_simulate_record_decl (location_t, const char *, array_slice<const tree>); /* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks - specific to C++ or ObjC++ go in cp/cp-lang.c and objcp/objcp-lang.c, + specific to C++ or ObjC++ go in cp/cp-lang.cc and objcp/objcp-lang.cc, respectively. */ #undef LANG_HOOKS_FREE_LANG_DATA diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index f8225c1..e428df0 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2027,7 +2027,7 @@ make_temp_override (T& var, type_identity_t<T> overrider) #define cp_noexcept_operand scope_chain->noexcept_operand -struct named_label_entry; /* Defined in decl.c. */ +struct named_label_entry; /* Defined in decl.cc. */ struct named_label_hash : ggc_remove <named_label_entry *> { @@ -2160,7 +2160,7 @@ struct GTY(()) language_function { #define current_function_return_value \ (cp_function_chain->x_return_value) -/* In parser.c. */ +/* In parser.cc. */ extern tree cp_literal_operator_id (const char *); #define NON_ERROR(NODE) ((NODE) == error_mark_node ? NULL_TREE : (NODE)) @@ -5277,7 +5277,7 @@ more_aggr_init_expr_args_p (const aggr_init_expr_arg_iterator *iter) /* A language-specific token attached to the OpenMP data clauses to hold code (or code fragments) related to ctors, dtors, and op=. - See semantics.c for details. */ + See semantics.cc for details. */ #define CP_OMP_CLAUSE_INFO(NODE) \ TREE_TYPE (OMP_CLAUSE_RANGE_CHECK (NODE, OMP_CLAUSE_PRIVATE, \ OMP_CLAUSE__CONDTEMP_)) @@ -5587,7 +5587,7 @@ extern int comparing_specializations; FIXME we should always do this except during deduction/ordering. */ extern int comparing_dependent_aliases; -/* In parser.c. */ +/* In parser.cc. */ /* Nonzero if we are parsing an unevaluated operand: an operand to sizeof, typeof, or alignof. This is a count since operands to @@ -5622,7 +5622,7 @@ public: c_inhibit_evaluation_warnings = inhibit; } }; -/* in pt.c */ +/* in pt.cc */ /* These values are used for the `STRICT' parameter to type_unification and fn_type_unification. Their meanings are described with the @@ -5655,11 +5655,11 @@ struct GTY((for_user)) spec_entry tree spec; /* The specialization itself. */ }; -/* in class.c */ +/* in class.cc */ extern int current_class_depth; -/* in decl.c */ +/* in decl.cc */ /* An array of static vars & fns. */ extern GTY(()) vec<tree, va_gc> *static_decls; @@ -6029,7 +6029,7 @@ const unsigned int STF_STRIP_DEPENDENT = 1U << 1; ? TYPE_TI_TEMPLATE (NODE) \ : TYPE_NAME (NODE)) -/* in lex.c */ +/* in lex.cc */ extern void init_reswords (void); @@ -6477,7 +6477,7 @@ extern int class_dump_id; extern int module_dump_id; extern int raw_dump_id; -/* in call.c */ +/* in call.cc */ extern bool check_dtor_name (tree, tree); int magic_varargs_p (tree); @@ -6621,7 +6621,7 @@ extern bool cp_handle_deprecated_or_unavailable (tree, tsubst_flags_t = tf_warni extern void cp_warn_deprecated_use_scopes (tree); extern tree get_function_version_dispatcher (tree); -/* in class.c */ +/* in class.cc */ extern tree build_vfield_ref (tree, tree); extern tree build_if_in_charge (tree true_stmt, tree false_stmt = void_node); extern tree build_base_path (enum tree_code, tree, @@ -6707,7 +6707,7 @@ extern bool uniquely_derived_from_p (tree, tree); extern bool publicly_uniquely_derived_p (tree, tree); extern tree common_enclosing_class (tree, tree); -/* in cvt.c */ +/* in cvt.cc */ extern tree convert_to_reference (tree, tree, int, int, tree, tsubst_flags_t); extern tree convert_from_reference (tree); @@ -6734,12 +6734,12 @@ extern tree tx_unsafe_fn_variant (tree); extern bool fnptr_conv_p (tree, tree); extern tree strip_fnptr_conv (tree); -/* in name-lookup.c */ +/* in name-lookup.cc */ extern void maybe_push_cleanup_level (tree); extern tree maybe_push_decl (tree); extern tree current_decl_namespace (void); -/* decl.c */ +/* decl.cc */ extern tree poplevel (int, int, int); extern void cxx_init_decl_processing (void); enum cp_tree_node_structure_enum cp_tree_node_structure @@ -6854,7 +6854,7 @@ extern tree build_explicit_specifier (tree, tsubst_flags_t); extern void do_push_parm_decls (tree, tree, tree *); extern tree do_aggregate_paren_init (tree, tree); -/* in decl2.c */ +/* in decl2.cc */ extern void record_mangling (tree, bool); extern void overwrite_mangling (tree, tree); extern void note_mangling_alias (tree, tree); @@ -6922,7 +6922,7 @@ extern bool cp_omp_mappable_type (tree); extern bool cp_omp_emit_unmappable_type_notes (tree); extern void cp_check_const_attributes (tree); -/* in error.c */ +/* in error.cc */ extern const char *type_as_string (tree, int); extern const char *type_as_string_translate (tree, int); extern const char *decl_as_string (tree, int); @@ -6942,7 +6942,7 @@ extern location_t location_of (tree); extern void qualified_name_lookup_error (tree, tree, tree, location_t); -/* in except.c */ +/* in except.cc */ extern void init_exception_processing (void); extern tree expand_start_catch_block (tree); extern void expand_end_catch_block (void); @@ -6971,7 +6971,7 @@ extern tree template_parms_to_args (tree); extern tree template_parms_level_to_args (tree); extern tree generic_targs_for (tree); -/* in expr.c */ +/* in expr.cc */ extern tree cplus_expand_constant (tree); extern tree mark_use (tree expr, bool rvalue_p, bool read_p, location_t = UNKNOWN_LOCATION, @@ -6985,7 +6985,7 @@ extern tree mark_type_use (tree); extern tree mark_discarded_use (tree); extern void mark_exp_read (tree); -/* friend.c */ +/* friend.cc */ extern int is_friend (tree, tree); extern void make_friend_class (tree, tree, bool); extern void add_friend (tree, tree, bool); @@ -6995,7 +6995,7 @@ extern tree do_friend (tree, tree, tree, extern void set_global_friend (tree); extern bool is_global_friend (tree); -/* in init.c */ +/* in init.cc */ extern tree expand_member_init (tree); extern void emit_mem_initializers (tree); extern tree build_aggr_init (tree, tree, int, @@ -7035,7 +7035,7 @@ extern int diagnose_uninitialized_cst_or_ref_member (tree, bool, bool); extern tree build_vtbl_address (tree); extern bool maybe_reject_flexarray_init (tree, tree); -/* in lex.c */ +/* in lex.cc */ extern void cxx_dup_lang_specific_decl (tree); extern tree unqualified_name_lookup_error (tree, location_t = UNKNOWN_LOCATION); @@ -7061,7 +7061,7 @@ extern uintptr_t module_token_cdtor (cpp_reader *, uintptr_t); extern uintptr_t module_token_lang (int type, int keyword, tree value, location_t, uintptr_t); -/* in method.c */ +/* in method.cc */ extern void init_method (void); extern tree make_thunk (tree, bool, tree, tree); extern void finish_thunk (tree); @@ -7191,10 +7191,10 @@ extern void module_begin_main_file (cpp_reader *, line_maps *, extern void module_preprocess_options (cpp_reader *); extern bool handle_module_option (unsigned opt, const char *arg, int value); -/* In optimize.c */ +/* In optimize.cc */ extern bool maybe_clone_body (tree); -/* In parser.c */ +/* In parser.cc */ extern tree cp_convert_range_for (tree, tree, tree, tree, unsigned int, bool, unsigned short); extern void cp_convert_omp_range_for (tree &, vec<tree, va_gc> *, tree &, @@ -7208,7 +7208,7 @@ extern location_t defparse_location (tree); extern void maybe_show_extern_c_location (void); extern bool literal_integer_zerop (const_tree); -/* in pt.c */ +/* in pt.cc */ extern tree canonical_type_parameter (tree); extern void push_access_scope (tree); extern void pop_access_scope (tree); @@ -7406,7 +7406,7 @@ extern tree add_outermost_template_args (tree, tree); extern tree add_extra_args (tree, tree, tsubst_flags_t, tree); extern tree build_extra_args (tree, tree, tsubst_flags_t); -/* in rtti.c */ +/* in rtti.cc */ /* A vector of all tinfo decls that haven't been emitted yet. */ extern GTY(()) vec<tree, va_gc> *unemitted_tinfo_decls; @@ -7424,7 +7424,7 @@ extern unsigned get_pseudo_tinfo_index (tree); extern tree get_pseudo_tinfo_type (unsigned); extern tree build_if_nonnull (tree, tree, tsubst_flags_t); -/* in search.c */ +/* in search.cc */ extern tree get_parent_with_private_access (tree decl, tree binfo); extern bool accessible_base_p (tree, tree, bool); extern tree lookup_base (tree, tree, base_access, @@ -7468,7 +7468,7 @@ extern bool shared_member_p (tree); extern bool any_dependent_bases_p (tree = current_nonlambda_class_type ()); extern bool maybe_check_overriding_exception_spec (tree, tree); -/* in semantics.c */ +/* in semantics.cc */ extern void push_deferring_access_checks (deferring_kind); extern void resume_deferring_access_checks (void); extern void stop_deferring_access_checks (void); @@ -7718,7 +7718,7 @@ extern tree most_general_lambda (tree); extern tree finish_omp_target (location_t, tree, tree, bool); extern void finish_omp_target_clauses (location_t, tree, tree *); -/* in tree.c */ +/* in tree.cc */ extern int cp_tree_operand_length (const_tree); extern int cp_tree_code_length (enum tree_code); extern void cp_free_lang_data (tree t); @@ -7873,7 +7873,7 @@ extern tree cxx_copy_lang_qualifiers (const_tree, const_tree); extern void cxx_print_statistics (void); extern bool maybe_warn_zero_as_null_pointer_constant (tree, location_t); -/* in ptree.c */ +/* in ptree.cc */ extern void cxx_print_xnode (FILE *, tree, int); extern void cxx_print_decl (FILE *, tree, int); extern void cxx_print_type (FILE *, tree, int); @@ -7882,7 +7882,7 @@ extern void cxx_print_error_function (diagnostic_context *, const char *, struct diagnostic_info *); -/* in typeck.c */ +/* in typeck.cc */ /* Says how we should behave when comparing two arrays one of which has unknown bounds. */ enum compare_bounds_t { bounds_none, bounds_either, bounds_first }; @@ -8059,7 +8059,7 @@ extern tree finish_binary_fold_expr (tree, tree, int); extern tree treat_lvalue_as_rvalue_p (tree, bool); extern bool decl_in_std_namespace_p (tree); -/* in typeck2.c */ +/* in typeck2.cc */ extern void require_complete_eh_spec_types (tree, tree); extern void cxx_incomplete_type_diagnostic (location_t, const_tree, const_tree, diagnostic_t); @@ -8129,7 +8129,7 @@ extern tree build_functional_cast (location_t, tree, tree, extern tree add_exception_specifier (tree, tree, tsubst_flags_t); extern tree merge_exception_specifiers (tree, tree); -/* in mangle.c */ +/* in mangle.cc */ extern void init_mangle (void); extern void mangle_decl (tree); extern const char *mangle_type_string (tree); @@ -8152,10 +8152,10 @@ extern void mangle_module_substitution (int); extern void mangle_identifier (char, tree); extern tree mangle_module_global_init (int); -/* in dump.c */ +/* in dump.cc */ extern bool cp_dump_tree (void *, tree); -/* In cp/cp-objcp-common.c. */ +/* In cp/cp-objcp-common.cc. */ extern alias_set_type cxx_get_alias_set (tree); extern bool cxx_warn_unused_global_decl (const_tree); @@ -8165,7 +8165,7 @@ extern void cxx_initialize_diagnostics (diagnostic_context *); extern int cxx_types_compatible_p (tree, tree); extern bool cxx_block_may_fallthru (const_tree); -/* in cp-gimplify.c */ +/* in cp-gimplify.cc */ extern int cp_gimplify_expr (tree *, gimple_seq *, gimple_seq *); extern void cp_genericize (tree); @@ -8192,7 +8192,7 @@ extern tree process_stmt_hotness_attribute (tree, location_t); extern bool simple_empty_class_p (tree, tree, tree_code); extern tree fold_builtin_source_location (location_t); -/* in name-lookup.c */ +/* in name-lookup.cc */ extern tree strip_using_decl (tree); /* Tell the binding oracle what kind of binding we are looking for. */ @@ -8206,7 +8206,7 @@ enum cp_oracle_request create bindings when needed by the C compiler. The oracle is told the name and type of the binding to create. It can call pushdecl or the like to ensure the binding is visible; or do nothing, - leaving the binding untouched. c-decl.c takes note of when the + leaving the binding untouched. c-decl.cc takes note of when the oracle has been called and will not call it again if it fails to create a given binding. */ @@ -8216,7 +8216,7 @@ extern cp_binding_oracle_function *cp_binding_oracle; /* Set during diagnostics to record the failed constraint. This is a TREE_LIST whose VALUE is the constraint and whose PURPOSE are the - instantiation arguments Defined in pt.c. */ + instantiation arguments Defined in pt.cc. */ extern tree current_failed_constraint; @@ -8324,18 +8324,18 @@ struct atom_hasher : default_hash_traits<tree> /* in logic.cc */ extern bool subsumes (tree, tree); -/* In class.c */ +/* In class.cc */ extern void set_current_access_from_decl (tree); extern void cp_finish_injected_record_type (tree); -/* in vtable-class-hierarchy.c */ +/* in vtable-class-hierarchy.cc */ extern void vtv_compute_class_hierarchy_transitive_closure (void); extern void vtv_generate_init_routine (void); extern void vtv_save_class_info (tree); extern void vtv_recover_class_info (void); extern void vtv_build_vtable_verify_fndecl (void); -/* In constexpr.c */ +/* In constexpr.cc */ /* Representation of entries in the constexpr function definition table. */ struct GTY((for_user)) constexpr_fundef { @@ -8416,7 +8416,7 @@ struct uid_sensitive_constexpr_evaluation_checker void cp_tree_c_finish_parsing (); -/* In cp-ubsan.c */ +/* In cp-ubsan.cc */ extern void cp_ubsan_maybe_instrument_member_call (tree); extern void cp_ubsan_instrument_member_accesses (tree *); extern tree cp_ubsan_maybe_instrument_downcast (location_t, tree, tree, tree); diff --git a/gcc/cp/cvt.cc b/gcc/cp/cvt.cc index 187ea88..e9803c1 100644 --- a/gcc/cp/cvt.cc +++ b/gcc/cp/cvt.cc @@ -52,12 +52,12 @@ static void diagnose_ref_binding (location_t, tree, tree, tree); Here is a list of all the functions that assume that widening and narrowing is always done with a NOP_EXPR: - In convert.c, convert_to_integer[_maybe_fold]. - In c-typeck.c, build_binary_op_nodefault (boolean ops), + In convert.cc, convert_to_integer[_maybe_fold]. + In c-typeck.cc, build_binary_op_nodefault (boolean ops), and c_common_truthvalue_conversion. - In expr.c: expand_expr, for operands of a MULT_EXPR. - In fold-const.c: fold. - In tree.c: get_narrower and get_unwidened. + In expr.cc: expand_expr, for operands of a MULT_EXPR. + In fold-const.cc: fold. + In tree.cc: get_narrower and get_unwidened. C++: in multiple-inheritance, converting between pointers may involve adjusting them by a delta stored within the class definition. */ @@ -1386,9 +1386,9 @@ convert_to_void (tree expr, impl_conv_void implicit, tsubst_flags_t complain) /* Emit a warning (if enabled) when the "effect-less" INDIRECT_REF operation is stripped off. Note that we don't warn about - an expression with TREE_NO_WARNING set. (For an example of - such expressions, see build_over_call in call.c.) + such expressions, see build_over_call in call.cc.) - automatic dereferencing of references, since the user cannot - control it. (See also warn_if_unused_value() in c-common.c.) */ + control it. (See also warn_if_unused_value() in c-common.cc.) */ if (warn_unused_value && implicit != ICV_CAST && (complain & tf_warning) @@ -1711,7 +1711,7 @@ convert_force (tree type, tree expr, int convtype, tsubst_flags_t complain) if (code == POINTER_TYPE) return convert_to_pointer_force (type, e, complain); - /* From typeck.c convert_for_assignment */ + /* From typeck.cc convert_for_assignment */ if (((TYPE_PTR_P (TREE_TYPE (e)) && TREE_CODE (e) == ADDR_EXPR && TREE_CODE (TREE_TYPE (TREE_TYPE (e))) == METHOD_TYPE) || integer_zerop (e) @@ -2008,7 +2008,7 @@ type_promotes_to (tree type) /* The routines below this point are carefully written to conform to the standard. They use the same terminology, and follow the rules - closely. Although they are used only in pt.c at the moment, they + closely. Although they are used only in pt.cc at the moment, they should presumably be used everywhere in the future. */ /* True iff EXPR can be converted to TYPE via a qualification conversion. diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc index 0e37f1a..2dade75 100644 --- a/gcc/cp/decl.cc +++ b/gcc/cp/decl.cc @@ -4268,7 +4268,7 @@ make_unbound_class_template_raw (tree context, tree name, tree parm_list) The calls to set_global_binding below should be eliminated. Built-in types should not be looked up name; their names are keywords that the parser can recognize. However, there - is code in c-common.c that uses identifier_global_value to look up + is code in c-common.cc that uses identifier_global_value to look up built-in types by name. */ void @@ -4610,7 +4610,7 @@ cxx_init_decl_processing (void) else new_eh_spec = noexcept_false_spec; - /* Ensure attribs.c is initialized. */ + /* Ensure attribs.cc is initialized. */ init_attributes (); extvisattr = build_tree_list (get_identifier ("externally_visible"), @@ -9721,7 +9721,7 @@ check_class_member_definition_namespace (tree decl) /* These checks only apply to member functions and static data members. */ gcc_assert (VAR_OR_FUNCTION_DECL_P (decl)); - /* We check for problems with specializations in pt.c in + /* We check for problems with specializations in pt.cc in check_specialization_namespace, where we can issue better diagnostics. */ if (processing_specialization) @@ -18098,7 +18098,7 @@ cxx_maybe_build_cleanup (tree decl, tsubst_flags_t complain) id = TREE_VALUE (TREE_VALUE (attr)); /* Look up the name to find the cleanup function to call. It is important to use lookup_name here because that is what is - used in c-common.c:handle_cleanup_attribute when performing + used in c-common.cc:handle_cleanup_attribute when performing initial checks on the attribute. Note that those checks include ensuring that the function found is not an overloaded function, or an object with an overloaded call operator, diff --git a/gcc/cp/decl2.cc b/gcc/cp/decl2.cc index 899a800..69b9744 100644 --- a/gcc/cp/decl2.cc +++ b/gcc/cp/decl2.cc @@ -2449,7 +2449,7 @@ maybe_emit_vtables (tree ctype, vec<tree> &consteval_vtables) } /* For abstract classes, the destructor has been removed from the - vtable (in class.c's build_vtbl_initializer). For a compiler- + vtable (in class.cc's build_vtbl_initializer). For a compiler- generated destructor, it hence might not have been generated in this translation unit - and with '#pragma interface' it might never get generated. */ diff --git a/gcc/cp/error.cc b/gcc/cp/error.cc index 8a3b7b5..1ab0c25 100644 --- a/gcc/cp/error.cc +++ b/gcc/cp/error.cc @@ -1931,7 +1931,7 @@ dump_function_name (cxx_pretty_printer *pp, tree t, int flags) tree name = DECL_NAME (t); /* We can get here with a decl that was synthesized by language- - independent machinery (e.g. coverage.c) in which case it won't + independent machinery (e.g. coverage.cc) in which case it won't have a lang_specific structure attached and DECL_CONSTRUCTOR_P will crash. In this case it is safe just to print out the literal name. */ diff --git a/gcc/cp/init.cc b/gcc/cp/init.cc index ccc4f5e..668a84d 100644 --- a/gcc/cp/init.cc +++ b/gcc/cp/init.cc @@ -2340,7 +2340,7 @@ is_class_type (tree type, int or_else) @@ Prints out lousy diagnostics for operator <typename> @@ fields. - @@ This function should be rewritten and placed in search.c. */ + @@ This function should be rewritten and placed in search.cc. */ tree build_offset_ref (tree type, tree member, bool address_p, @@ -3260,7 +3260,7 @@ build_new_1 (vec<tree, va_gc> **placement, tree type, tree nelts, to make sure it doesn't exceed the implementation-defined maximum, as required by C++ 14 (in C++ 11 this requirement isn't explicitly stated but it's enforced anyway -- see - grokdeclarator in cp/decl.c). */ + grokdeclarator in cp/decl.cc). */ if (complain & tf_error) { size = cp_fully_fold (size); diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h index f69b86b..f35c9fa 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h @@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ -/* This is the contribution to the `default_compilers' array in gcc.c for +/* This is the contribution to the `default_compilers' array in gcc.cc for g++. */ #ifndef CPLUSPLUS_CPP_SPEC diff --git a/gcc/cp/method.cc b/gcc/cp/method.cc index fe1147c..903ee66 100644 --- a/gcc/cp/method.cc +++ b/gcc/cp/method.cc @@ -37,7 +37,7 @@ static void do_build_copy_assign (tree); static void do_build_copy_constructor (tree); static tree make_alias_for_thunk (tree); -/* Called once to initialize method.c. */ +/* Called once to initialize method.cc. */ void init_method (void) diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc index 0134130..81ceef9 100644 --- a/gcc/cp/module.cc +++ b/gcc/cp/module.cc @@ -12823,7 +12823,7 @@ specialization_add (bool decl_p, spec_entry *entry, void *data_) { /* We exclusively use decls to locate things. Make sure there's no mismatch between the two specialization tables we keep. - pt.c optimizes instantiation lookup using a complicated + pt.cc optimizes instantiation lookup using a complicated heuristic. We don't attempt to replicate that algorithm, but observe its behaviour and reproduce it upon read back. */ @@ -14879,7 +14879,7 @@ module_state::read_cluster (unsigned snum) } } - /* Look, function.c's interface to cfun does too much for us, we + /* Look, function.cc's interface to cfun does too much for us, we just need to restore the old value. I do not want to go redesigning that API right now. */ #undef cfun diff --git a/gcc/cp/name-lookup.cc b/gcc/cp/name-lookup.cc index caa23d3..29b7f2e 100644 --- a/gcc/cp/name-lookup.cc +++ b/gcc/cp/name-lookup.cc @@ -3073,7 +3073,7 @@ check_extern_c_conflict (tree decl) } /* Returns a list of C-linkage decls with the name NAME. Used in - c-family/c-pragma.c to implement redefine_extname pragma. */ + c-family/c-pragma.cc to implement redefine_extname pragma. */ tree c_linkage_bindings (tree name) diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h index 781d6b9..68d0872 100644 --- a/gcc/cp/name-lookup.h +++ b/gcc/cp/name-lookup.h @@ -59,7 +59,7 @@ struct GTY(()) cxx_binding { }; /* Datatype used to temporarily save C++ bindings (for implicit - instantiations purposes and like). Implemented in decl.c. */ + instantiations purposes and like). Implemented in decl.cc. */ struct GTY(()) cxx_saved_binding { /* The name of the current binding. */ tree identifier; diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index 97e9aea..b262b76 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -51,7 +51,7 @@ along with GCC; see the file COPYING3. If not see /* The lexer. */ /* The cp_lexer_* routines mediate between the lexer proper (in libcpp - and c-lex.c) and the C++ parser. */ + and c-lex.cc) and the C++ parser. */ /* The various kinds of non integral constant we encounter. */ enum non_integral_constant { @@ -4339,7 +4339,7 @@ cp_parser_identifier (cp_parser* parser) However, C99 6.4.5p4 says that this results in a wide string literal. We follow C99 here, for consistency with the C front end. - This code is largely lifted from lex_string() in c-lex.c. + This code is largely lifted from lex_string() in c-lex.cc. FUTURE: ObjC++ will need to handle @-strings here. */ static cp_expr diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h index 163c487..d688fd1 100644 --- a/gcc/cp/parser.h +++ b/gcc/cp/parser.h @@ -434,7 +434,7 @@ struct GTY(()) cp_parser { }; -/* In parser.c */ +/* In parser.cc */ extern void debug (cp_token &ref); extern void debug (cp_token *ptr); extern void cp_lexer_debug_tokens (vec<cp_token, va_gc> *); diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc index 0fa4a16..4a2b33e 100644 --- a/gcc/cp/pt.cc +++ b/gcc/cp/pt.cc @@ -6765,7 +6765,7 @@ has_value_dependent_address (tree op) /* The next set of functions are used for providing helpful explanatory diagnostics for failed overload resolution. Their messages should be indented by two spaces for consistency with the messages in - call.c */ + call.cc */ static int unify_success (bool /*explain_p*/) @@ -10963,7 +10963,7 @@ push_tinst_level_loc (tree tldcl, tree targs, location_t loc) if (tinst_depth >= max_tinst_depth) { - /* Tell error.c not to try to instantiate any templates. */ + /* Tell error.cc not to try to instantiate any templates. */ at_eof = 2; fatal_error (input_location, "template instantiation depth exceeds maximum of %d" diff --git a/gcc/cp/semantics.cc b/gcc/cp/semantics.cc index 089ea5f..8e22944 100644 --- a/gcc/cp/semantics.cc +++ b/gcc/cp/semantics.cc @@ -5,7 +5,7 @@ Copyright (C) 1998-2022 Free Software Foundation, Inc. Written by Mark Mitchell (mmitchell@usa.net) based on code found - formerly in parse.y and pt.c. + formerly in parse.y and pt.cc. This file is part of GCC. @@ -8009,7 +8009,7 @@ finish_omp_clauses (tree clauses, enum c_omp_region_type ort) || OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_DETACH)) /* For attach/detach clauses, set OMP_CLAUSE_SIZE (representing a bias) to zero here, so it is not set erroneously to the pointer - size later on in gimplify.c. */ + size later on in gimplify.cc. */ OMP_CLAUSE_SIZE (c) = size_zero_node; if (REFERENCE_REF_P (t) && TREE_CODE (TREE_OPERAND (t, 0)) == COMPONENT_REF) @@ -10781,7 +10781,7 @@ finish_omp_atomic (location_t loc, enum tree_code code, enum tree_code opcode, } /* Avoid -Wunused-value warnings here, the whole construct has side-effects - and even if it might be wrapped from fold-const.c or c-omp.c wrapped + and even if it might be wrapped from fold-const.cc or c-omp.cc wrapped in some tree that appears to be unused, the value is not unused. */ warning_sentinel w (warn_unused_value); finish_expr_stmt (stmt); diff --git a/gcc/cp/tree.cc b/gcc/cp/tree.cc index 7f7de86..d27f64f 100644 --- a/gcc/cp/tree.cc +++ b/gcc/cp/tree.cc @@ -5542,7 +5542,7 @@ cp_save_expr (tree expr) return save_expr (expr); } -/* Initialize tree.c. */ +/* Initialize tree.cc. */ void init_tree (void) @@ -6000,7 +6000,7 @@ cp_free_lang_data (tree t) DECL_CHAIN (t) = NULL_TREE; } -/* Stub for c-common. Please keep in sync with c-decl.c. +/* Stub for c-common. Please keep in sync with c-decl.cc. FIXME: If address space support is target specific, then this should be a C target hook. But currently this is not possible, because this function is called via REGISTER_TARGET_PRAGMAS. */ diff --git a/gcc/cp/typeck.cc b/gcc/cp/typeck.cc index 8029b2b..3a28d63 100644 --- a/gcc/cp/typeck.cc +++ b/gcc/cp/typeck.cc @@ -395,7 +395,7 @@ cp_common_type (tree t1, tree t2) /* For __intN types, either the type is __int128 (and is lower priority than the types checked above, but higher than other 128-bit types) or it's known to not be the same size as other - types (enforced in toplev.c). Prefer the unsigned type. */ + types (enforced in toplev.cc). Prefer the unsigned type. */ for (i = 0; i < NUM_INT_N_ENTS; i ++) { if (int_n_enabled_p [i] @@ -948,7 +948,7 @@ strip_array_domain (tree type) return cp_build_type_attribute_variant (t2, TYPE_ATTRIBUTES (type)); } -/* Wrapper around cp_common_type that is used by c-common.c and other +/* Wrapper around cp_common_type that is used by c-common.cc and other front end optimizations that remove promotions. Return the common type for two arithmetic types T1 and T2 under the @@ -2584,7 +2584,7 @@ rationalize_conditional_expr (enum tree_code code, tree t, { location_t loc = cp_expr_loc_or_input_loc (t); - /* For MIN_EXPR or MAX_EXPR, fold-const.c has arranged things so that + /* For MIN_EXPR or MAX_EXPR, fold-const.cc has arranged things so that the first operand is always the one to be used if both operands are equal, so we know what conditional expression this used to be. */ if (TREE_CODE (t) == MIN_EXPR || TREE_CODE (t) == MAX_EXPR) @@ -10529,7 +10529,7 @@ check_return_expr (tree retval, bool *no_warning) current_function_returns_value = 1; /* And signal caller that TREE_NO_WARNING should be set on the RETURN_EXPR to avoid control reaches end of non-void function - warnings in tree-cfg.c. */ + warnings in tree-cfg.cc. */ *no_warning = true; } /* Check for a return statement with a value in a function that diff --git a/gcc/cp/vtable-class-hierarchy.cc b/gcc/cp/vtable-class-hierarchy.cc index 4c6e2f2..79cb5f8 100644 --- a/gcc/cp/vtable-class-hierarchy.cc +++ b/gcc/cp/vtable-class-hierarchy.cc @@ -108,7 +108,7 @@ along with GCC; see the file COPYING3. If not see structures used for collecting the class hierarchy data and building/maintaining the vtable map variable data are defined in gcc/vtable-verify.h, because they are used both here and in - gcc/vtable-verify.c. */ + gcc/vtable-verify.cc. */ #include "config.h" #include "system.h" |