12 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
d2cabf1629 Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary header...
Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary
header files when searching for function declarations.  Use this
functionality to check for getrlimit/setrlimit.
        * aclocal.m4 (GCC_NEED_DECLARATION): Accept an optional second
        argument, which is typically preprocessor code used to draw in
        additional header files when looking for a function declaration.
        (GCC_NEED_DECLARATIONS): Likewise.
        * configure.in (GCC_NEED_DECLARATIONS): Add checks for getrlimit
        and setrlimit, search for them in sys/resource.h.
        * acconfig.h: Add stubs for NEED_DECLARATION_GETRLIMIT and
        NEED_DECLARATION_SETRLIMIT.
        * system.h: Prototype getrlimit/setrlimit if necessary.

From-SVN: r20831
1998-06-30 11:10:55 +00:00
Kaveh R. Ghazi
51db713ffd Remove autoconf things and OS header stuff (namely NULL) from gansidecl.h:
* gansidecl.h (ATTRIBUTE_UNUSED): Use __unused__ not `unused'.
        Don't define NULL here.  Also, remove all vestiges of autoconf
        based checks for bcmp/bcopy/bzero/index/rindex.
        * system.h: Immediately after including stdio.h, check for and if
        necessary provide a default definition of NULL.

From-SVN: r20814
1998-06-30 06:11:43 +00:00
Kaveh R. Ghazi
6cd5dccd5e 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
1998-06-28 06:09:57 +00:00
Ulrich Drepper
9b91d8f4ed Add _() and N_() macros.
From-SVN: r20209
1998-06-03 09:14:21 +00:00
Kaveh R. Ghazi
d4ba0ead26 Consolidate support for "String-ification" into system.h:
* system.h: Define the STRINGIFY macro here.
        * protoize.c: Not here.
        * gengenrtl.c (DEF_RTL_EXPR): Use the STRINGIFY macro.

From-SVN: r19696
1998-05-12 07:36:02 +00:00
Jeff Law
e9b4fabf5c acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.
* acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.
        * alocal.m4 (GCC_C_VOLATILE): New autoconf test.
        * configure.in: Use GCC_C_VOLATILE.
        * system.h (volatile): Define as empty if no volatile support is
        available.
        * genemit.c (output_add_clobbers): Removed unused variable 'i' from
        generated fucntion.

From-SVN: r19653
1998-05-09 19:27:49 -06:00
Kaveh R. Ghazi
8f81384fec The isascii check is needed by system.h.
* configure.in (AC_CHECK_FUNCS): Add isascii.
        (GCC_NEED_DECLARATIONS): Add atof.
        * system.h: Provide prototypes for abort, atof, atol and sbrk here.
        * rtl.c, rtl.h, toplev.c, tree.h: Not here.

From-SVN: r19572
1998-05-06 08:36:04 +00:00
Kaveh R. Ghazi
e572c0c68c Be more careful when including <time.h> and <sys/file.h> in system.h.
Consolidate O_RDONLY/O_WRONLY fallback definitions from various files
into system.h.
        * system.h: Wrap time.h and sys/file.h in autoconf checks.
        Provide default definitions for O_RDONLY and O_WRONLY here.
        * cccp.c, cpplib.c, fix-header.c, gcc.c, protoize.c: Not here.

From-SVN: r19571
1998-05-06 07:58:27 +00:00
Michael Meissner
22c4957e6b Redefine abort to report linenumber and filename of the error
From-SVN: r19423
1998-04-27 08:49:53 +00:00
Kaveh R. Ghazi
c580105315 I've backed out of including stat.h via system.h because stat.h can define...
I've backed out of including stat.h via system.h because stat.h can
define static functions (eg on x86 svr4 according to jfc@mit.edu)
causing code bloat.
        * system.h: Remove sys/stat.h.
        * gcc.c: Add sys/stat.h.

From-SVN: r18289
1998-02-28 06:11:54 +00:00
Kaveh R. Ghazi
79e1184485 system.h: Fix return type of bcmp prototype from void' to int'.
* system.h: Fix return type of bcmp prototype from `void' to `int'.
        Make bcopy, bcmp and bzero prototypes explicitly `extern'.
        Add a prototype for getenv.

From-SVN: r18018
1998-02-15 13:36:23 -07:00
Kaveh R. Ghazi
aca6948338 system.h: New file to get common systems includes and various definitions and...
* system.h: New file to get common systems includes and various
	definitions and declarations based on autoconf macros.

From-SVN: r17891
1998-02-12 17:22:24 -07:00