aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-12 15:31:02 +0000
committerygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-12 15:31:02 +0000
commit083a7dfaa8685c30e2ca94f978c3da809a2dc42c (patch)
tree3b24d4afb43eaf3dbb0c04e6872d204d8171a313 /contrib
parent805b88682af9bf5287ef6a0e2adb9d52a5cd506b (diff)
2015-05-12 Yury Gribov <y.gribov@samsung.com>
* mklog: Ignore preprocessor directives. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/mklog3
2 files changed, 5 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 0e99a29a10b..8035bc395a2 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2015-05-12 Yury Gribov <y.gribov@samsung.com>
+
+ * mklog: Ignore preprocessor directives.
+
2015-04-22 Jakub Jelinek <jakub@redhat.com>
* gennews (files): Add files for GCC 5.
diff --git a/contrib/mklog b/contrib/mklog
index f7974a7bd15..455614bfb42 100755
--- a/contrib/mklog
+++ b/contrib/mklog
@@ -131,7 +131,6 @@ sub is_unified_hunk_start {
}
# Check if line is a top-level declaration.
-# TODO: ignore preprocessor directives except maybe #define ?
sub is_top_level {
my ($function, $is_context_diff) = (@_);
if (is_unified_hunk_start ($function)
@@ -143,7 +142,7 @@ sub is_top_level {
} else {
$function =~ s/^.//;
}
- return $function && $function !~ /^[\s{]/;
+ return $function && $function !~ /^[\s{#]/;
}
# Read contents of .diff file