aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/tree-pretty-print.c')
-rw-r--r--gcc-4.4.0/gcc/tree-pretty-print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/tree-pretty-print.c b/gcc-4.4.0/gcc/tree-pretty-print.c
index a5ab07542..6a2fb0262 100644
--- a/gcc-4.4.0/gcc/tree-pretty-print.c
+++ b/gcc-4.4.0/gcc/tree-pretty-print.c
@@ -448,6 +448,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
if ((flags & TDF_LINENO) && EXPR_HAS_LOCATION (node))
{
expanded_location xloc = expand_location (EXPR_LOCATION (node));
+ int discriminator = get_discriminator_from_locus (EXPR_LOCATION (node));
pp_character (buffer, '[');
if (xloc.file)
{
@@ -455,6 +456,11 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
pp_string (buffer, " : ");
}
pp_decimal_int (buffer, xloc.line);
+ if (discriminator)
+ {
+ pp_string (buffer, " discrim ");
+ pp_decimal_int (buffer, discriminator);
+ }
pp_string (buffer, "] ");
}