@@ -1685,7 +1685,6 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok,
return;
}
/* Function definition (nested or otherwise). */
- timevar_push (TV_PARSE_FUNC);
if (nested)
{
pedwarn (here, OPT_pedantic, "ISO C forbids nested functions");
@@ -39,7 +39,6 @@ along with GCC; see the file COPYING3. If not see
#include "target.h"
#include "convert.h"
#include "langhooks.h"
-#include "pph.h"
#include "c-family/c-objc.h"
#include "timevar.h"
@@ -1757,9 +1756,7 @@ implicit_conversion (tree to, tree from, tree expr, bool c_cast_p,
cand = build_user_type_conversion_1 (to, expr, convflags);
if (cand)
- {
- conv = cand->second_conv;
- }
+ conv = cand->second_conv;
/* We used to try to bind a reference to a temporary here, but that
is now handled after the recursive call to this function at the end
@@ -5014,9 +5011,7 @@ build_new_op_1 (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3,
if (resolve_args (arglist, complain) == NULL)
result = error_mark_node;
else
- {
- result = build_over_call (cand, LOOKUP_NORMAL, complain);
- }
+ result = build_over_call (cand, LOOKUP_NORMAL, complain);
}
else
{
@@ -1177,8 +1177,6 @@ cp_genericize (tree fndecl)
pointer_set_destroy (wtd.p_set);
VEC_free (tree, heap, wtd.bind_expr_stack);
- /* FIXME pph: save function to hunk. */
-
/* Do everything else. */
c_genericize (fndecl);
@@ -33,7 +33,6 @@ along with GCC; see the file COPYING3. If not see
#include "hashtab.h"
#include "target.h"
#include "parser.h"
-#include "pph.h"
enum c_language_kind c_language = clk_cxx;
static void cp_init_ts (void);
@@ -54,8 +54,6 @@ along with GCC; see the file COPYING3. If not see
#include "pointer-set.h"
#include "splay-tree.h"
#include "plugin.h"
-#include "langhooks.h"
-#include "pph.h"
/* Possible cases of bad specifiers type used by bad_specifiers. */
enum bad_spec_place {
@@ -1180,8 +1178,8 @@ validate_constexpr_redeclaration (tree old_decl, tree new_decl)
NEWDECL_IS_FRIEND is true if NEWDECL was declared as a friend. */
-static tree
-duplicate_decls_internal (tree newdecl, tree olddecl, bool newdecl_is_friend)
+tree
+duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
{
unsigned olddecl_uid = DECL_UID (olddecl);
int olddecl_friend = 0, types_match = 0, hidden_friend = 0;
@@ -2301,28 +2299,6 @@ duplicate_decls_internal (tree newdecl, tree olddecl, bool newdecl_is_friend)
return olddecl;
}
-
-
-/* Wrapper for duplicate_decls_internal used by PPH support to
- decide whether NEWDECL or OLDDECL should be removed from the
- AST catching data structures. This is necessary when NEWDECL
- is a re-declaration of OLDDECL. */
-
-tree
-duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
-{
- tree gooddecl;
-
- gooddecl = duplicate_decls_internal (newdecl, olddecl, newdecl_is_friend);
-
- /* If duplicate_decls_internal returns NULL, it means that NEWDECL
- is not a re-declaration of OLDDECL, so nothing needs to be done
- in that case. */
- if (gooddecl == NULL_TREE)
- return NULL_TREE;
-
- return gooddecl;
-}
/* Return zero if the declaration NEWDECL is valid
when the declaration OLDDECL (assumed to be for the same name)
@@ -11503,7 +11479,6 @@ xref_tag_1 (enum tag_types tag_code, tree name,
{
t = make_class_type (code);
TYPE_CONTEXT (t) = context;
- /* FIXME pph: creating incomplete class. */
t = pushtag (name, t, scope);
}
}
@@ -45,7 +45,6 @@ along with GCC; see the file COPYING3. If not see
#include "timevar.h"
#include "tree-iterator.h"
#include "vecprim.h"
-#include "pph.h"
/* The type of functions taking a tree, and some additional data, and
returning an int. */
@@ -1215,7 +1215,6 @@ create_pseudo_type_info (int tk, const char *real_name, ...)
/* Create the pseudo type. */
pseudo_type = make_class_type (RECORD_TYPE);
finish_builtin_struct (pseudo_type, pseudo_name, fields, NULL_TREE);
- DECL_ARTIFICIAL (TYPE_NAME (pseudo_type)) = 1; /* FIXME pph: Right? */
CLASSTYPE_AS_BASE (pseudo_type) = pseudo_type;
ti = VEC_index (tinfo_s, tinfo_descs, tk);
@@ -1911,7 +1911,7 @@ ggc_collect (void)
if (G.allocated < allocated_last_gc + min_expand && !ggc_force_collect)
return;
- timevar_start (TV_GC);
+ timevar_push (TV_GC);
if (!quiet_flag)
fprintf (stderr, " {GC %luk -> ", (unsigned long) G.allocated / 1024);
if (GGC_DEBUG_LEVEL >= 2)
@@ -1943,7 +1943,7 @@ ggc_collect (void)
invoke_plugin_callbacks (PLUGIN_GGC_END, NULL);
- timevar_stop (TV_GC);
+ timevar_pop (TV_GC);
if (!quiet_flag)
fprintf (stderr, "%luk}", (unsigned long) G.allocated / 1024);
@@ -1984,7 +1984,7 @@ ggc_collect (void)
struct alloc_zone *zone;
bool marked = false;
- timevar_start (TV_GC);
+ timevar_push (TV_GC);
if (!ggc_force_collect)
{
@@ -2003,7 +2003,7 @@ ggc_collect (void)
if (allocated < allocated_last_gc + min_expand)
{
- timevar_stop (TV_GC);
+ timevar_pop (TV_GC);
return;
}
}
@@ -2076,7 +2076,7 @@ ggc_collect (void)
invoke_plugin_callbacks (PLUGIN_GGC_END, NULL);
- timevar_stop (TV_GC);
+ timevar_pop (TV_GC);
}
/* Print allocation statistics. */
@@ -309,7 +309,7 @@ extern void lhd_end_section (void);
LANG_HOOKS_EH_RUNTIME_TYPE, \
LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS, \
LANG_HOOKS_EH_USE_CXA_END_CLEANUP, \
- LANG_HOOKS_DEEP_UNSHARING, \
+ LANG_HOOKS_DEEP_UNSHARING \
}
#endif /* GCC_LANG_HOOKS_DEF_H */
@@ -1275,7 +1275,6 @@ lto_output_tree_header (struct output_block *ob, tree expr)
EXPR on the reading side (such as the number of slots in
variable sized nodes). */
tag = lto_tree_code_to_tag (code);
- gcc_assert ((unsigned) tag < (unsigned) LTO_NUM_TAGS);
output_record_start (ob, tag);
/* The following will cause bootstrap miscomparisons. Enable with care. */
@@ -47,7 +47,7 @@ DEFTIMEVAR (TV_NAME_LOOKUP , "|name lookup")
DEFTIMEVAR (TV_OVERLOAD , "|overload resolution")
/* Time spent garbage-collecting. */
-DEFTIMEVAR (TV_GC , "|garbage collection")
+DEFTIMEVAR (TV_GC , "garbage collection")
/* Time spent generating dump files. */
DEFTIMEVAR (TV_DUMP , "dump files")
@@ -575,8 +575,6 @@ compile_file (void)
/* Compilation is now finished except for writing
what's left of the symbol table output. */
- timevar_stop (TV_PHASE_PARSING);
-
if (flag_syntax_only || flag_wpa)
return;
@@ -593,8 +591,6 @@ compile_file (void)
return;
}
- timevar_start (TV_PHASE_GENERATE);
-
varpool_assemble_pending_decls ();
finish_aliases_2 ();
@@ -1909,8 +1905,6 @@ do_compile (void)
if (!no_backend)
backend_init ();
- timevar_stop (TV_PHASE_SETUP);
-
/* Language-dependent initialization. Returns true on success. */
if (lang_dependent_init (main_input_filename))
{