From: Jan-Benedict Glaw Date: Wed, 31 Jul 2013 09:34:04 +0000 (+0000) Subject: gen-pass-instances.awk: Fix offset of substr(). X-Git-Tag: upstream/12.2.0~68580 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ac499bbd13164c0702e5410adfa1b927b1a048c;p=platform%2Fupstream%2Fgcc.git gen-pass-instances.awk: Fix offset of substr(). 2013-07-31 Jan-Benedict Glaw * gen-pass-instances.awk: Fix offset of substr(). From-SVN: r201364 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8bc3c8..8bc760e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-07-31 Jan-Benedict Glaw + + * gen-pass-instances.awk: Fix offset of substr(). + 2013-07-31 David Malcolm * Makefile.in (pass-instances.def): New. diff --git a/gcc/gen-pass-instances.awk b/gcc/gen-pass-instances.awk index 41b5e75..a7367ae 100644 --- a/gcc/gen-pass-instances.awk +++ b/gcc/gen-pass-instances.awk @@ -55,7 +55,7 @@ function handle_line() else pass_counts[pass_name] = 1; printf "%s, %s%s\n", - substr(line, 0, pass_starts_at + len_of_pass_name - 1), + substr(line, 1, pass_starts_at + len_of_pass_name - 1), pass_counts[pass_name], substr(line, pass_starts_at + len_of_pass_name); } else {