aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/tree-pretty-print.c')
-rw-r--r--gcc-4.9/gcc/tree-pretty-print.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/gcc-4.9/gcc/tree-pretty-print.c b/gcc-4.9/gcc/tree-pretty-print.c
index 83d5ca62d..c3ec6c02d 100644
--- a/gcc-4.9/gcc/tree-pretty-print.c
+++ b/gcc-4.9/gcc/tree-pretty-print.c
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3. If not see
#include "dumpfile.h"
#include "value-prof.h"
#include "predict.h"
+#include "l-ipo.h"
#include <new> // For placement-new.
@@ -499,6 +500,7 @@ dump_omp_clause (pretty_printer *buffer, tree clause, int spc, int flags)
pp_string (buffer, "alloc");
break;
case OMP_CLAUSE_MAP_TO:
+ case OMP_CLAUSE_MAP_TO_PSET:
pp_string (buffer, "to");
break;
case OMP_CLAUSE_MAP_FROM:
@@ -519,6 +521,9 @@ dump_omp_clause (pretty_printer *buffer, tree clause, int spc, int flags)
if (OMP_CLAUSE_CODE (clause) == OMP_CLAUSE_MAP
&& OMP_CLAUSE_MAP_KIND (clause) == OMP_CLAUSE_MAP_POINTER)
pp_string (buffer, " [pointer assign, bias: ");
+ else if (OMP_CLAUSE_CODE (clause) == OMP_CLAUSE_MAP
+ && OMP_CLAUSE_MAP_KIND (clause) == OMP_CLAUSE_MAP_TO_PSET)
+ pp_string (buffer, " [pointer set, len: ");
else
pp_string (buffer, " [len: ");
dump_generic_node (buffer, OMP_CLAUSE_SIZE (clause),
@@ -667,6 +672,7 @@ static void
dump_location (pretty_printer *buffer, location_t loc)
{
expanded_location xloc = expand_location (loc);
+ int discriminator = get_discriminator_from_locus (loc);
pp_left_bracket (buffer);
if (xloc.file)
@@ -675,6 +681,11 @@ dump_location (pretty_printer *buffer, location_t loc)
pp_string (buffer, " : ");
}
pp_decimal_int (buffer, xloc.line);
+ if (discriminator)
+ {
+ pp_string (buffer, " discrim ");
+ pp_decimal_int (buffer, discriminator);
+ }
pp_string (buffer, "] ");
}
@@ -3437,12 +3448,18 @@ dump_function_header (FILE *dump_file, tree fdecl, int flags)
else
aname = "<unset-asm-name>";
- fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d",
- dname, aname, fun->funcdef_no);
+ if (L_IPO_COMP_MODE)
+ fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d:%d",
+ dname, aname, FUNC_DECL_MODULE_ID (fun),
+ FUNC_DECL_FUNC_ID (fun));
+ else
+ fprintf (dump_file, "\n;; Function %s (%s, funcdef_no=%d",
+ dname, aname, fun->funcdef_no + (flag_dyn_ipa? 1 : 0));
if (!(flags & TDF_NOUID))
fprintf (dump_file, ", decl_uid=%d", DECL_UID (fdecl));
if (node)
{
+ fprintf (dump_file, ", cgraph_uid=%d", node->uid);
fprintf (dump_file, ", symbol_order=%d)%s\n\n", node->order,
node->frequency == NODE_FREQUENCY_HOT
? " (hot)"