summaryrefslogtreecommitdiff
path: root/gcc/mips-tfile.c
Commit message (Collapse)AuthorAgeFilesLines
* * gansidecl.h: Prepend a "G" to the macro wrapping this fileghazi1998-11-081-17/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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
* Warning fixes:ghazi1998-10-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (flow.o): Depend on recog.h. * cpplib.h (directive_table): Add missing initializiers. (finclude): Change type of variable `bsize' to size_t. * cse.c (rtx_cost): Mark parameter `outer_code' with ATTRIBUTE_UNUSED. * dwarfout.h (dwarfout_label): Wrap prototype in macro RTX_CODE. * fix-header.c (lookup_std_proto): Cast the result of `strlen' to `int' when comparing against one. (cpp_file_line_for_message): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (cpp_fatal): Mark parameter `pfile' with ATTRIBUTE_UNUSED. * flow.c: Include recog.h. (sbitmap_copy): Cast arguments 1 & 2 of `bcopy' to (PTR). * function.c (thread_prologue_and_epilogue_insns): Mark parameter `f' with ATTRIBUTE_UNUSED. (reposition_prologue_and_epilogue_notes): Likewise. * genopinit.c (gen_insn): Cast argument of ctype functions to `unsigned char'. * haifa-sched.c: Include recog.h. (blockage_range): Cast result of UNIT_BLOCKED macro to (int) when comparing against one. * libgcc2.a (__throw): Revert ATTRIBUTE_UNUSED change for now. * mips-tfile.c (parse_end): Cast the argument of ctype function to `unsigned char'. (parse_ent): Likewise. (parse_input): Likewise. * optabs.c (init_libfuncs): Likewise. * protoize.c (find_rightmost_formals_list): Likewise. * recog.h (const_double_operand): Fix typo in prototype. * tlink.c (scan_linker_output): Cast the argument of ctype function to `unsigned char'. * toplev.c (check_lang_option): Cast the result of `strlen' to `int' when comparing against one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23155 138bc75d-0d04-0410-961f-82ee72b054a4
* Add support for strsignal, for platforms which have it but don't haveghazi1998-09-131-11/+25
| | | | | | | | | | | | | | | | 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
* * system.h: Include stdarg.h/varargs.h, make sure they are orderedghazi1998-08-261-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Redesign GCC_FUNC_PRINTF_PTR so that it doesn't define HOST_PTR_PRINTFghazi1998-07-061-0/+2
| | | | | | | | | | | | | | | | | | | directly. Instead, autoconf will only determine whether "%p" works and its up to machmode.h to base its definition of HOST_PTR_PRINTF on that. This ensures that machmode.h is always included to get the definition of HOST_PTR_PRINTF for lossy hosts or cross compiles where "%p" is not found. * aclocal.m4 (GCC_FUNC_PRINTF_PTR): Don't define HOST_PTR_PRINTF. Instead, define a new macro HAVE_PRINTF_PTR which only signifies whether we have the %p format specifier or not. * acconfig.h: Delete stub for HOST_PTR_PRINTF, add HAVE_PRINTF_PTR. * machmode.h (HOST_PTR_PRINTF): When determining the definition, check HAVE_PRINTF_PTR to see whether "%p" is okay. * mips-tfile.c: Include machmode.h to get HOST_PTR_PRINTF. * Makefile.in (mips-tfile.o): Depend on machmode.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20953 138bc75d-0d04-0410-961f-82ee72b054a4
* * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forlaw1998-06-291-2/+2
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20808 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-221-34/+84
| | | | | | | | | | | | | | | | | | | | | * mips-tfile.c (add_local_symbol): Cast width format specifier to int. (add_ext_symbol): Likewise. (add_file): Likewise. (parse_def): Likewise. (write_varray): Use HOST_PTR_PRINTF to print a pointer. Fix remaining format specifiers and arguments. (write_object): Likewise, several times. (read_seek): Likewise. (out_of_bounds): Likewise. (allocate_cluster): Likewise. (xmalloc): Likewise. (xcalloc): Likewise. (xrealloc): Likewise. (xfree): Likewise. * mips-tdump.c (print_symbol): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20654 138bc75d-0d04-0410-961f-82ee72b054a4
* Finish incomplete change started by Kenner.wilson1998-05-191-1/+1
| | | | | | | | | | | | | * configure.in (*-*-linux-gnu*): Delete NO_STAB_H from xm_defines. (powerpcle-*-cygwin32): Delete xm_defines. * final.c, mips-tfile.c, xcoffout.c, config/mips/mips.c: Use HAVE_STAB_H instead of NO_STAB_H. * config/xm-linux.h (NO_STAB_H): Delete. (HAVE_STAB_H): Undefine. * config/i386/xm-go32.h (NO_STAB_H): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19886 138bc75d-0d04-0410-961f-82ee72b054a4
* Handle missing vfprintf() & _doprnt() functions with linked in modules,ghazi1998-05-071-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | plus do some general cleanup of variable argument handling. * aclocal.m4 (GCC_FUNC_VFPRINTF_DOPRNT): New macro. * configure.in: Add a call to GCC_FUNC_VFPRINTF_DOPRNT. (AC_CHECK_HEADERS): Remove unused check for varargs.h,sys/varargs.h. (AC_CHECK_FUNCS): Remove unused check for vprintf. * Makefile.in: Add support for linking in vfprintf.c and doprint.c. (cccp.o): Depend on gansidecl.h. (cexp.o): Likewise. * cccp.c: Convert from using PRINTF_ALIST/PRINTF_DCL to VPROTO as per the rest of gcc source. * cexp.y: Likewise. Include gansidecl.h and remove all code made redundant. * cccp.c: Remove checks for HAVE_VPRINTF and the associated code used when vfprintf is missing. * cexp.y: Likewise. * gcc.c: Likewise. * genattrtab.c: Likewise. * mips-tfile.c: Likewise. * toplev.c: Likewise. * vfprintf.c: New file. * doprint.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19610 138bc75d-0d04-0410-961f-82ee72b054a4
* typo typo fixes fixeslaw1998-05-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19601 138bc75d-0d04-0410-961f-82ee72b054a4
* More system.h cutover...ghazi1998-05-061-56/+21
| | | | | | | | | | | | * Makefile.in (mips-tfile.o, mips-tdump.o): Depend on system.h. * mips-tdump.c: Include system.h, remove redundant headers. * mips-tfile.c: Likewise. Convert all ctype function calls to macro versions defined in system.h. * objc/Make-lang.in (objc-act.o): Depend on system.h. * objc/objc-act.c: Include system.h, remove redundant headers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19573 138bc75d-0d04-0410-961f-82ee72b054a4
* * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12law1998-04-041-2/+3
| | | | | | | | | for details. * haifa-sched.c: Mirror recent changes from gcc2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18984 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Find declaration for sbrk.rth1998-01-191-1/+3
| | | | | | | | | | * acconfig.h (NEED_DECLARATION_SBRK): New tag. * config.in, configure: Rebuild. * mips-tfile.c: Properly protect declaration of sbrk and free. * toplev.c: Properly protect declaration of sbrk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17417 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from gcc-2.8law1997-12-071-12/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16987 138bc75d-0d04-0410-961f-82ee72b054a4
* Update mainline egcs to gcc2 snapshot 971021.law1997-11-021-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16278 138bc75d-0d04-0410-961f-82ee72b054a4
* * collect2.c: Change DONT_DECLARE_SYS_SIGLIST to SYS_SIGLIST_DECLARED.law1997-09-011-1/+1
| | | | | | | | | | | | | | * mips-tfile.c: Likewise. * gcc.texi: DONT_DECLARE_SYS_SIGLIST: Remove docs. * xm-linux.h (DONT_DECLARE_SYS_SIGLIST): Delete definition. * xm-freebsd.h, xm-bsd386.h, xm-sysv4.h, xm-sol2.h: Likewise. * configure.in: Check for sys_siglist declaration. * configure, config.in: Rebuilt. Fix conflicting sys_siglist decls once and for all. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15007 138bc75d-0d04-0410-961f-82ee72b054a4
* reformat a little to match GNU coding standards.mrs1997-05-061-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14024 138bc75d-0d04-0410-961f-82ee72b054a4
* formatting tweaksmrs1996-07-031-174/+174
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12390 138bc75d-0d04-0410-961f-82ee72b054a4
* (malloc, calloc, realloc): Don't define for anybody.kenner1995-08-311-3/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10298 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kenner1995-06-151-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9961 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typos in comments.kenner1995-05-161-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9712 138bc75d-0d04-0410-961f-82ee72b054a4
* (fatal, error): Make first arg const to avoid warning.kenner1995-04-241-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9436 138bc75d-0d04-0410-961f-82ee72b054a4
* Check target endianness at run time, not compile timeian1994-11-161-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8470 138bc75d-0d04-0410-961f-82ee72b054a4
* (update_headers): Do not copy stStatic symbols that result fromkenner1994-04-111-0/+3
| | | | | | | internal labels. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7023 138bc75d-0d04-0410-961f-82ee72b054a4
* (update_headers): Copy stStatic symbols from the old local symbolkenner1994-04-061-0/+33
| | | | | | | | table to the new local symbol table if they did not get added via debugging psuedo ops. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6971 138bc75d-0d04-0410-961f-82ee72b054a4
* Include <stdarg.h> instead of "gstdarg.h"; similarly for varargs.kenner1994-03-301-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6922 138bc75d-0d04-0410-961f-82ee72b054a4
* (update_headers): Align symbol table sections, usingkenner1994-03-201-0/+15
| | | | | | | | ALIGN_SYMTABLE_OFFSET. Provide a default definition which does no alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6833 138bc75d-0d04-0410-961f-82ee72b054a4
* Use PVPROTO for varargs prototypes.kenner1994-03-111-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6744 138bc75d-0d04-0410-961f-82ee72b054a4
* * mips-tfile.c (fatal, error): Don't use prototypes ifndef HAVE_VPRINTF.dje1994-02-261-0/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6629 138bc75d-0d04-0410-961f-82ee72b054a4
* (fatal, error): Add ! HAVE_VPRINTF versions.wilson1994-02-211-0/+23
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6598 138bc75d-0d04-0410-961f-82ee72b054a4
* Use PROTO for varargs functions.kenner1994-02-101-15/+33
| | | | | | | If __STDC__, include gstdarg and use ANSI form of varargs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6517 138bc75d-0d04-0410-961f-82ee72b054a4
* (sys_siglist): Don't declare if NO_SYS_SIGLIST orwilson1994-02-061-0/+8
| | | | | | | | DONT_DECLARE_SYS_SIGLIST are defined. (catch_signal): Add code for NO_SYS_SIGLIST case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6493 138bc75d-0d04-0410-961f-82ee72b054a4
* (add_local_symbol): Index in the external symbol must point to localkenner1993-10-121-1/+4
| | | | | | | symbol table entry for procedures. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5758 138bc75d-0d04-0410-961f-82ee72b054a4
* (WORD_ALIGN): Fix typo in last change.kenner1993-10-101-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5708 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't define memory functions on Alpha.kenner1993-10-081-3/+5
| | | | | | | | (Ptrdiff_t): Always `long'. (WORD_ALIGN): Make portable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5676 138bc75d-0d04-0410-961f-82ee72b054a4
* [CROSS_COMPILE]: Include mips/a.out.h.rms1993-09-221-6/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5381 138bc75d-0d04-0410-961f-82ee72b054a4
* Do not divide by sizes by 0.meissner1993-05-101-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4413 138bc75d-0d04-0410-961f-82ee72b054a4
* Change "illegal" to "invalid" in error messages.rms1993-04-041-21/+25
| | | | | | | (parse_stabs_common): Allow nonzero ignored fields in .stabs/.stabn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4011 138bc75d-0d04-0410-961f-82ee72b054a4
* Allow for cross compilation.meissner1992-10-291-1/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2649 138bc75d-0d04-0410-961f-82ee72b054a4
* Allow line numbers of 0.meissner1992-10-231-4/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2574 138bc75d-0d04-0410-961f-82ee72b054a4
* Ignore a stab line number of 0, until G++ fixes bug.meissner1992-10-221-3/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2562 138bc75d-0d04-0410-961f-82ee72b054a4
* Allow a stab line number of 0, since G++ generates it; check for >= 2**20.meissner1992-10-221-1/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2561 138bc75d-0d04-0410-961f-82ee72b054a4
* Allow spaces in tag names.meissner1992-10-151-10/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2479 138bc75d-0d04-0410-961f-82ee72b054a4
* Undo some of the index changes, and write our own index/rindex.meissner1992-10-021-23/+61
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2304 138bc75d-0d04-0410-961f-82ee72b054a4
* RISC-OS 5.0 changes.meissner1992-10-011-51/+50
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2303 138bc75d-0d04-0410-961f-82ee72b054a4
* RISC-OS rev 5, DEC OSF/1 changes.meissner1992-09-261-0/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2256 138bc75d-0d04-0410-961f-82ee72b054a4
* properly close comment.meissner1992-09-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2047 138bc75d-0d04-0410-961f-82ee72b054a4
* Put include of stdio.h after GCC header files (for i860-stardent-sysv4).kenner1992-08-201-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1905 138bc75d-0d04-0410-961f-82ee72b054a4
* entered into RCSmeissner1992-07-231-6/+48
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1675 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***meissner1992-07-231-7/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1674 138bc75d-0d04-0410-961f-82ee72b054a4