]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* uninclude: Fix third argument to gensub.
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 22:00:17 +0000 (22:00 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jan 2016 22:00:17 +0000 (22:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232589 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/uninclude

index c15df12886a0f9d42ddde063029770bebca902a5..f9e1126dc999a56ea8057740dc7b45ebd88cf22a 100644 (file)
@@ -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
index 8ba28e5cfb7a25c60253d8b37d6413128e225c3a..5612e655a985ca54d4aa95647440aa0eafe7d721 100755 (executable)
@@ -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 {