OSDN Git Service

2009-10-08 Daniel Gutson <dgutson@codesourcery.com>
authordgutson <dgutson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2009 15:14:41 +0000 (15:14 +0000)
committerdgutson <dgutson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2009 15:14:41 +0000 (15:14 +0000)
commitfb7548b44ac873fca0beda9d10c8acfbfd33fdcb
treef496006babd0cc6d4ae1f11b988d6c0fc1307d4d
parentc517c03e797724f29bb05b32893119585b74e4b6
2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
        Daniel Jacobowitz  <dan@codesourcery.com>
        Pedro Alves  <pedro@codesourcery.com>

        libiberty/
        * argv.c (consume_whitespace): New function.
        (only_whitespace): New function.
        (buildargv): Always use ISSPACE by calling consume_whitespace.
        (expandargv): Skip empty files.  Do not stop at the first empty
        argument (calling only_whitespace)..
        * testsuite/test-expandargv.c: (test_data): Test empty lines
        and empty arguments.
        (run_tests): Fix false positives due to shorter arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152560 138bc75d-0d04-0410-961f-82ee72b054a4
libiberty/ChangeLog
libiberty/argv.c
libiberty/testsuite/test-expandargv.c