aboutsummaryrefslogtreecommitdiff
path: root/gcc/graph.c
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2021-09-13 19:49:49 +0200
commitb18a97e5dd0935e1c4a626c230f21457d0aad3d5 (patch)
treec1818f41af6fe780deafb6cd6a183f32085fe654 /gcc/graph.c
parente76a53644c9d70e998c0d050e9a456af388c6b61 (diff)
downloadgcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.zip
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.gz
gcc-b18a97e5dd0935e1c4a626c230f21457d0aad3d5.tar.bz2
Merged current trunk to branch.
Diffstat (limited to 'gcc/graph.c')
-rw-r--r--gcc/graph.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/graph.c b/gcc/graph.c
index c77478b..9acd1d5 100644
--- a/gcc/graph.c
+++ b/gcc/graph.c
@@ -1,5 +1,5 @@
/* Output routines for graphical representation.
- Copyright (C) 1998-2020 Free Software Foundation, Inc.
+ Copyright (C) 1998-2021 Free Software Foundation, Inc.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
Rewritten for DOT output by Steven Bosscher, 2012.
@@ -133,10 +133,11 @@ draw_cfg_node_succ_edges (pretty_printer *pp, int funcdef_no, basic_block bb)
weight = 10;
}
else if (e->flags & EDGE_FALLTHRU)
- {
- color = "blue";
- weight = 100;
- }
+ weight = 100;
+ else if (e->flags & EDGE_TRUE_VALUE)
+ color = "forestgreen";
+ else if (e->flags & EDGE_FALSE_VALUE)
+ color = "darkorange";
if (e->flags & EDGE_ABNORMAL)
color = "red";