From 3bb2bbd68419ce4e777a89bf43ea7e5781dd787f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 1 Jul 2008 01:57:36 +0000 Subject: awk: fix a case with multiple -f options. simplify -f file reading. function old new delta parse_expr 833 841 +8 qrealloc 33 36 +3 next_input_file 203 198 -5 afopen 22 - -22 ftello 41 - -41 ftell 41 - -41 __GI_ftell 41 - -41 awk_main 1002 944 -58 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 2/2 up/down: 11/-208) Total: -197 bytes text data bss dec hex filename 804232 610 6804 811646 c627e busybox_old 804120 610 6804 811534 c620e busybox_unstripped --- testsuite/awk.tests | 7 +++++++ testsuite/awk_t1.tar.bz2 | Bin 0 -> 15955 bytes 2 files changed, 7 insertions(+) create mode 100644 testsuite/awk_t1.tar.bz2 (limited to 'testsuite') diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 91657418d..f69da2cc9 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests @@ -17,4 +17,11 @@ testing "awk -F case 5" "awk -F '[#]' '{ print NF }'" "4\n" "" "#abc##zz\n" testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n" testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n" +tar xjf awk_t1.tar.bz2 +testing "awk 'gcc build bug'" \ + "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk