diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-19 22:00:17 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-19 22:00:17 +0000 |
commit | 27dcfa6af0bef90e3258e5152c68afe3d0cc847c (patch) | |
tree | 163a6e9ec9c5a6d6b6fb3992fc241f3ce2dbfdb8 /contrib | |
parent | c13cc80a47785dc3a70a079e22923657fb7ebce3 (diff) | |
download | gcc-27dcfa6af0bef90e3258e5152c68afe3d0cc847c.tar.gz |
* uninclude: Fix third argument to gensub.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/uninclude | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index c15df12886a..f9e1126dc99 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 8ba28e5cfb7..5612e655a98 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 { |