aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
AgeCommit message (Collapse)AuthorFilesLines
1998-09-13Add support for strsignal, for platforms which have it but don't have ↵Kaveh R. Ghazi1-0/+14
sys_siglist (like Solaris 2.7.) Add support for strsignal, for platforms which have it but don't have sys_siglist (like Solaris 2.7.) * acconfig.h (NEED_DECLARATION_STRSIGNAL): Provide a stub. * collect2.c: Don't declare `sys_siglist' here. (my_strsignal): Prototype and define new function. Use it in place of `sys_siglist' hacks. * mips_tfile.c: Likewise. * configure.in (AC_CHECK_FUNCS): Check for strsignal. (GCC_NEED_DECLARATIONS): Likewise. * system.h (strsignal): Prototype it, if necessary. (sys_siglist): Declare it, if necessary. From-SVN: r22403
1998-09-03aclocal.m4 (GCC_HEADER_STRING): New macro to detect if it is safe to include ↵Kaveh R. Ghazi1-3/+8
both string.h and strings.h together. * aclocal.m4 (GCC_HEADER_STRING): New macro to detect if it is safe to include both string.h and strings.h together. (GCC_NEED_DECLARATION): Test STRING_WITH_STRINGS when deciding which headers to search for function declarations. Continue to prefer string.h over strings.h when both are not acceptable. * acconfig.h (STRING_WITH_STRINGS): Add stub. * configure.in: Call GCC_HEADER_STRING. * system.h: Test STRING_WITH_STRINGS when deciding which headers to include. Continue to prefer string.h over strings.h when both are not acceptable. From-SVN: r22204
1998-08-26system.h: Include stdarg.h/varargs.h...Kaveh R. Ghazi1-0/+7
* system.h: Include stdarg.h/varargs.h, make sure they are ordered correctly with regards to stdio.h. * calls.c: Remove stdarg.h/varargs.h. * cccp.c: Likewise. * cexp.y: Likewise. * combine.c: Likewise. * cpperror.c: Likewise. * cpplib.c: Likewise. * cpplib.h: Likewise. * doprint.c: Likewise. * emit-rtl.c: Likewise. * final.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * genattr.c: Likewise. * genattrtab.c: Likewise. * gencodes.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. * mips-tfile.c: Likewise. * prefix.c: Likewise. * protoize.c: Likewise. * regmove.c: Likewise. * toplev.c: Likewise. * tree.c: Likewise. * cp/errfn.c: Remove stdarg.h/varargs.h. * cp/tree.c: Likewise. From-SVN: r21997
1998-06-30Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitrary header...Kaveh R. Ghazi1-0/+16
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-30Remove autoconf things and OS header stuff (namely NULL) from gansidecl.h:Kaveh R. Ghazi1-0/+6
* 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-28Consolidate strerror handling, as well as getcwd/getwd.Kaveh R. Ghazi1-1/+20
* 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-03Add _() and N_() macros.Ulrich Drepper1-7/+12
From-SVN: r20209
1998-05-12Consolidate support for "String-ification" into system.h:Kaveh R. Ghazi1-0/+18
* 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-09acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.Jeff Law1-0/+6
* 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-06The isascii check is needed by system.h.Kaveh R. Ghazi1-2/+18
* 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-06Be more careful when including <time.h> and <sys/file.h> in system.h.Kaveh R. Ghazi1-4/+14
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-04-27Redefine abort to report linenumber and filename of the errorMichael Meissner1-0/+29
From-SVN: r19423
1998-02-28I've backed out of including stat.h via system.h because stat.h can define...Kaveh R. Ghazi1-1/+0
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-15system.h: Fix return type of bcmp prototype from `void' to `int'.Kaveh R. Ghazi1-3/+7
* 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-12system.h: New file to get common systems includes and various definitions and...Kaveh R. Ghazi1-0/+188
* system.h: New file to get common systems includes and various definitions and declarations based on autoconf macros. From-SVN: r17891