aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-01-19 22:00:17 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2016-01-19 22:00:17 +0000
commit4a8c29cc7af55c3278bea0912e52b8739d274480 (patch)
tree163a6e9ec9c5a6d6b6fb3992fc241f3ce2dbfdb8
parentac0653cf6dfc82fcfeab8a964c587db9b2dbb809 (diff)
downloadgcc-4a8c29cc7af55c3278bea0912e52b8739d274480.zip
gcc-4a8c29cc7af55c3278bea0912e52b8739d274480.tar.gz
gcc-4a8c29cc7af55c3278bea0912e52b8739d274480.tar.bz2
* uninclude: Fix third argument to gensub.
From-SVN: r232589
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/uninclude2
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index c15df12..f9e1126 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2016-01-19 Jonathan Wakely <jwakely@redhat.com>
+
+ * uninclude: Fix third argument to gensub.
+
2016-01-04 Jakub Jelinek <jakub@redhat.com>
* update-copyright.py (GCCCopyright): Add NVIDIA Corporation
diff --git a/contrib/uninclude b/contrib/uninclude
index 8ba28e5..5612e65 100755
--- a/contrib/uninclude
+++ b/contrib/uninclude
@@ -38,7 +38,7 @@ BEGIN {
!skipping && $0 ~ cppline &&
(exclude == "" || $3 !~ exclude) && (include == "" || $3 ~ include) {
skipping = 1;
- printf "%s\n", "#include <" gensub(cppline, "\\2", "", $0) ">"
+ printf "%s\n", "#include <" gensub(cppline, "\\2", 1, $0) ">"
next;
}
skipping && /^# [0-9]+ / && $3 == lastincluded {