From 7ec1104f8f9ca3bcaccf254655fd322d5dd93a1f Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 8 Aug 2019 15:28:43 +0100 Subject: [PATCH 070/124] FIXME: update comment in diagnostic-path.h --- gcc/diagnostic-path.h | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/gcc/diagnostic-path.h b/gcc/diagnostic-path.h index 353437d..87986b2 100644 --- a/gcc/diagnostic-path.h +++ b/gcc/diagnostic-path.h @@ -35,25 +35,28 @@ along with GCC; see the file COPYING3. If not see requires a non-NULL parameter 29 | PyList_Append(list, item); | ^~~~~~~~~~~~~~~~~~~~~~~~~ - test.c:25:10: note: (1) when 'PyList_New' fails, returning NULL - 25 | list = PyList_New(0); - | ^~~~~~~~~~~~~ - 26 | - 27 | for (i = 0; i < count; i++) { - | ~~~~~~~~~ - | | - | (2) when 'i < count' - 28 | item = PyLong_FromLong(random()); - 29 | PyList_Append(list, item); - | ~~~~ - | | - | (3) when calling 'PyList_Append', passing - | NULL as argument 1 + 'make_a_list_of_random_ints_badly': events 1-3 + | + | 25 | list = PyList_New(0); + | | ^~~~~~~~~~~~~ + | | | + | | (1) when 'PyList_New' fails, returning NULL + | 26 | + | 27 | for (i = 0; i < count; i++) { + | | ~~~ + | | | + | | (2) when 'i < count' + | 28 | item = PyLong_FromLong(random()); + | 29 | PyList_Append(list, item); + | | ~~~~~~~~~~~~~~~~~~~~~~~~~ + | | | + | | (3) when calling 'PyList_Append', passing NULL as argument 1 + | The diagnostic-printing code has consolidated the path into a single - note, since all the events are near each other and within the same + run of events, since all the events are near each other and within the same function; more complicated examples (such as interprocedural paths) - might be printed as multiple notes. */ + might be printed as multiple runs of events. */ /* Abstract base classes, describing events within a path, and the paths themselves. */ -- 1.8.5.3