summaryrefslogtreecommitdiffstats
path: root/gcc/system.h
Commit message (Collapse)AuthorAgeFilesLines
* * cccp.c: Don't define HOST_WIDE_INT. Replace all occurrences ofghazi1999-02-151-11/+0
| | | | | | | | | | | | | | WIDE_INT with WIDEST_INT. * cexp.y: Likewise. Don't define unsigned_HOST_WIDE_INT, CHAR_BIT or HOST_BITS_PER_WIDE_INT. Replace occurrences of PRINTF_PROTO_1() style with PVPROTO() ATTRIBUTE_PRINTF_1 style macros. Replace occurrences of "unsigned_HOST" with "unsigned HOST". Provide a definition of variable `c89' when compiling a test binary and set it. * system.h: Don't define the PRINTF_PROTO_* macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25217 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Provide a definition for HOST_WIDEST_INT, etc.ghazi1999-02-121-0/+28
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25164 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h (_, N_): Remove dummy i18n macros.law1999-02-091-4/+0
| | | | | | | | | * protoize.c: Move inclusion of intl.h to after system.h. * cexp.y: Include intl.h. * cexp.c: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25117 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-02-09 16:42 -0500 Zack Weinberg <zack@rabi.columbia.edu>zack1999-02-091-0/+33
| | | | | | | | | | | * cppfiles.c (finclude): Handle pipes properly under old BSD derivatives. 1999-02-09 16:42 -0500 Melissa O'Neill <oneill@cs.sfu.ca> * system.h: Provide fallback definitions for S_ISCHR, S_ISSOCK, S_ISFIFO, O_NONBLOCK, and O_NOCTTY. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25111 138bc75d-0d04-0410-961f-82ee72b054a4
* * README.g77, gcc.c, gcc.texi: Update email addresses.law1999-02-061-1/+1
| | | | | | | * invoke.texi system.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25064 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h (inline, const): Handle these for stage2 (and later) gcc.ghazi1999-02-011-1/+12
| | | | | | | | * dwarf2out.c (inline): Don't define. * dwarfout.c (inline): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24950 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forlaw1999-01-271-0/+11
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24879 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h (bcopy): Implement with memmove not memcpy.rth1999-01-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24727 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h (abort): Supply more detailed information on how togerald1999-01-081-2/+4
| | | | | | | report an Internal Compiler Error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24571 138bc75d-0d04-0410-961f-82ee72b054a4
* More copyright fixes. Oh what fun.law1999-01-061-1/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24536 138bc75d-0d04-0410-961f-82ee72b054a4
* * cccp.c: Don't define MIN/MAX anymore.ghazi1998-12-161-0/+9
| | | | | | | | | * cpplib.c: Likewise. * machmode.h: Likewise. * system.h: Provide definitions for MIN/MAX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24339 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Test for availability of putc_unlocked, fputc_unlocked,law1998-12-071-0/+15
| | | | | | | | | | | and fputs_unlocked. * configure: Rebuilt. * system.h: If the *_unlocked functions are available use them instead of the locked counterparts by defining macros. * config.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24175 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Include libiberty.h.ghazi1998-11-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-aux-info.c: Remove prototypes for concat/concat3. Change function `concat' from fixed parameters to variable parameters, as is done in libiberty. All callers of concat/concat3 changed to use the new `concat' with variable args. * cccp.c: Remove things made redundant by libiberty.h and/or conform to libiberty standards. * cexp.y: Likewise. * collect2.c: Likewise. * config/1750a/1750a.h: Likewise. * cppalloc.c: Likewise. * cppexp.c: Likewise. * cppfiles.c: Likewise. * cpphash.c: Likewise. * cpplib.c: Likewise. * dyn-string.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * gcov.c: Likewise. * genattr.c: Likewise. * genattrtab.c: Likewise. * gencheck.c: Likewise. * gencodes.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * gengenrtl.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. * getpwd.c: Likewise. * halfpic.c: Likewise. * hash.c: Likewise. * mips-tdump.c: Likewise. Wrap malloc/realloc/calloc prototypes in NEED_DECLARATION_* macros. * mips-tfile.c: Remove things made redundant by libiberty.h and/or conform to libiberty standards. (fatal): Fix const-ification of variable `format' in !ANSI_PROTOTYPES case. * prefix.c: Remove things made redundant by libiberty.h and/or conform to libiberty standards. * print-rtl.c: Rename variable `spaces' to `xspaces' to avoid conflicting with function `spaces' from libiberty. * profile.c: Remove things made redundant by libiberty.h and/or conform to libiberty standards. * protoize.c: Likewise. * rtl.h: Likewise. * scan.h: Likewise. * tlink.c: Likewise. * toplev.c: Likewise. * toplev.h: Likewise. * tree.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23931 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Look for <sys/stat.h>.rth1998-11-231-0/+3
| | | | | | | * system.h: Include it before substitute S_ISREG definitions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23812 138bc75d-0d04-0410-961f-82ee72b054a4
* * cccp.c (S_ISREG, S_ISDIR): Delete defines.law1998-11-231-0/+11
| | | | | | | | * cpplib.c, gcc.c: Likewise. * system.h (S_ISREG, S_ISDIR): Define if not already defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23785 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h).ghazi1998-11-191-0/+17
| | | | | | | | | | | Instead call AC_HEADER_SYS_WAIT. * collect2.c: Don't provide defaults for sys/wait.h macros. * gcc.c: Likewise. * protoize.c: Likewise. Also, don't include sys/wait.h. * system.h: Include sys/wait.h and provide macro defaults. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23712 138bc75d-0d04-0410-961f-82ee72b054a4
* * gansidecl.h: Prepend a "G" to the macro wrapping this fileghazi1998-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (to distinguish it from the macro wrapping ansidecl.h.) Include libiberty's ansidecl.h. Remove all redundant definitions. Define the PROTO() style macros in terms of the PARAMS() ones. * calls.c (emit_library_call): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to use ANSI variable args. (emit_library_call_value): Likewise. * cccp.c (error): Likewise. (warning): Likewise. (error_with_line): Likewise. (warning_with_line): Likewise. (pedwarn): Likewise. (pedwarn_with_line): Likewise. (pedwarn_with_file_and_line): Likewise. (fatal): Likewise. * cexp.y (error): Likewise. (pedwarn): Likewise. (warning): Likewise. * collect2.c (fatal_perror): Likewise. (fatal): Likewise. (error): Likewise. * combine.c (gen_rtx_combine): Likewise. * cpperror.c (cpp_message): Likewise. (cpp_fatal): Likewise. * cpplib.c (cpp_error): Likewise. (cpp_warning): Likewise. (cpp_pedwarn): Likewise. (cpp_error_with_line): Likewise. (cpp_warning_with_line): Likewise. (cpp_pedwarn_with_line): Likewise. (cpp_pedwarn_with_file_and_line): Likewise. * cpplib.h: Don't define PARAMS() macro. * demangle.h: Likewise. * doprint.c (checkit): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to use ANSI variable args. * emit-rtl.c (gen_rtx): Likewise. (gen_rtvec): Likewise. * final.c (asm_fprintf): Likewise. * fix-header.c (cpp_message): Likewise. (fatal): Likewise. (cpp_fatal): Likewise. * gcc.c (concat): Likewise. (fatal): Likewise. (error): Likewise. * genattr.c (fatal): Likewise. * genattrtab.c (attr_rtx): Likewise. (attr_printf): Likewise. (fatal): Likewise. * gencodes.c (fatal): Likewise. * genconfig.c (fatal): Likewise. * genemit.c (fatal): Likewise. * genextract.c (fatal): Likewise. * genflags.c (fatal): Likewise. * genopinit.c (fatal): Likewise. * genoutput.c (fatal): Likewise. (error): Likewise. * genpeep.c (fatal): Likewise. * genrecog.c (fatal): Likewise. * halfpic.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to declare `tree_node' and `rtx_def'. * hash.h: Don't define stuff we get from gansidecl.h. * mips-tfile.c: Likewise. Define __proto() in terms of PARAMS(). (fatal): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to use ANSI variable args. (error): Likewise. * prefix.c (concat): Likewise. * scan.h: Likewise. * system.h: Likewise. * toplev.c (error_with_file_and_line): Likewise. (error_with_decl): Likewise. (error_for_asm): Likewise. (error): Likewise. (fatal): Likewise. (warning_with_file_and_line): Likewise. (warning_with_decl): Likewise. (warning_for_asm): Likewise. (warning): Likewise. (pedwarn): Likewise. (pedwarn_with_decl): Likewise. (pedwarn_with_file_and_line): Likewise. (sorry): Likewise. (really_sorry): Likewise. * toplev.h: Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to declare `tree_node' and `rtx_def'. * tree.c (build): Switch on ANSI_PROTOTYPES, not __STDC__, when deciding whether to use ANSI variable args. (build_nt): Likewise. (build_parse_node): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23577 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for strsignal, for platforms which have it but don't haveghazi1998-09-131-0/+14
| | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22403 138bc75d-0d04-0410-961f-82ee72b054a4
* * aclocal.m4 (GCC_HEADER_STRING): New macro to detect if it isghazi1998-09-031-3/+8
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22204 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Include stdarg.h/varargs.h, make sure they are orderedghazi1998-08-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21997 138bc75d-0d04-0410-961f-82ee72b054a4
* Add the ability to GCC_NEED_DECLARATION{S} for looking in arbitraryghazi1998-06-301-0/+16
| | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20831 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove autoconf things and OS header stuff (namely NULL) from gansidecl.h:ghazi1998-06-301-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20814 138bc75d-0d04-0410-961f-82ee72b054a4
* Consolidate strerror handling, as well as getcwd/getwd.ghazi1998-06-281-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20779 138bc75d-0d04-0410-961f-82ee72b054a4
* Add _() and N_() macros.drepper1998-06-031-7/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20209 138bc75d-0d04-0410-961f-82ee72b054a4
* Consolidate support for "String-ification" into system.h:ghazi1998-05-121-0/+18
| | | | | | | | | * system.h: Define the STRINGIFY macro here. * protoize.c: Not here. * gengenrtl.c (DEF_RTL_EXPR): Use the STRINGIFY macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19696 138bc75d-0d04-0410-961f-82ee72b054a4
* * acconfig.h (HAVE_VOLATILE): Insert stub for autoconf.law1998-05-101-0/+6
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19653 138bc75d-0d04-0410-961f-82ee72b054a4
* The isascii check is needed by system.h.ghazi1998-05-061-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19572 138bc75d-0d04-0410-961f-82ee72b054a4
* Be more careful when including <time.h> and <sys/file.h> in system.h.ghazi1998-05-061-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19571 138bc75d-0d04-0410-961f-82ee72b054a4
* Redefine abort to report linenumber and filename of the errormeissner1998-04-271-0/+29
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19423 138bc75d-0d04-0410-961f-82ee72b054a4
* I've backed out of including stat.h via system.h because stat.h canghazi1998-02-281-1/+0
| | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18289 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Fix return type of bcmp prototype from `void' to `int'.law1998-02-151-3/+7
| | | | | | | | Make bcopy, bcmp and bzero prototypes explicitly `extern'. Add a prototype for getenv. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18018 138bc75d-0d04-0410-961f-82ee72b054a4
* law1998-02-131-0/+188
* system.h: New file to get common systems includes and various definitions and declarations based on autoconf macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17891 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud