]> git.ipfire.org Git - thirdparty/gcc.git/commit
Consolidate strerror handling, as well as getcwd/getwd.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 28 Jun 1998 06:09:57 +0000 (06:09 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 28 Jun 1998 06:09:57 +0000 (06:09 +0000)
commit6cd5dccd5ecef2d9cefce8c61c7a83fe6b1a0c76
tree6f091a195512741bb4eb68f404e752087fb5691e
parent984e3c38b51824e200729c1a8d4a87800d654fe6
Consolidate strerror handling, as well as getcwd/getwd.

        * configure.in (GCC_NEED_DECLARATIONS): Add strerror, getcwd and
        getwd.
        * acconfig.m4: Add stubs for NEED_DECLARATION_STRERROR,
        NEED_DECLARATION_GETCWD and NEED_DECLARATION_GETWD.
        * cccp.c: Remove strerror()/sys_nerr/sys_errlist decls.
        (my_strerror): Add prototype and make it static.
        * collect2.c: Likewise.
        * cpplib.c: Likewise.
        * gcc.c: Likewise, but keep `my_strerror' extern.
        * protoize.c: Likewise.
        * pexecute.c (my_strerror): Add argument to prototype.
        * system.h: Add prototypes for getcwd, getwd and strerror.  Add
        extern decls for sys_nerr and sys_errlist.  Make abort decl
        explicitly extern.
        * getpwd.c: Remove decls for getwd and getcwd.

From-SVN: r20779
13 files changed:
gcc/ChangeLog
gcc/acconfig.h
gcc/cccp.c
gcc/collect2.c
gcc/config.in
gcc/configure
gcc/configure.in
gcc/cpplib.c
gcc/gcc.c
gcc/getpwd.c
gcc/pexecute.c
gcc/protoize.c
gcc/system.h