summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
Commit message (Collapse)AuthorAgeFilesLines
* Add extra protection in case strrchr already definedmeissner1998-04-201-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19343 138bc75d-0d04-0410-961f-82ee72b054a4
* Switch to strrchr if available instead of rindexmeissner1998-04-201-4/+14
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19341 138bc75d-0d04-0410-961f-82ee72b054a4
* * protoize.c (creat, read, write): Do not declare.law1998-04-081-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19061 138bc75d-0d04-0410-961f-82ee72b054a4
* More system.h cutover patches:ghazi1998-04-061-55/+12
| | | | | | | | | | | | | * c-parse.in: Include system.h, and remove stuff now made redundant. * cccp.c: Likewise. * cexp.y: Likewise. * protoize.c: Likewise. Properly check for cpp stringification. * Makefile.in (c-parse.o, cccp.o, cexp.o, protoize.o, unprotoize.o): Depend on system.h. * objc/Make-lang.in (objc-parse.o): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19020 138bc75d-0d04-0410-961f-82ee72b054a4
* * Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12law1998-04-041-29/+59
| | | | | | | | | 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
* Fix more warnings...ghazi1998-03-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-lang.c (finish_file): Wrap variable `void_list_node' with macro test !ASM_OUTPUT_CONSTRUCTOR || !ASM_OUTPUT_DESTRUCTOR. * calls.c (emit_call_1): Wrap variable `already_popped' with macro test !ACCUMULATE_OUTGOING_ARGS. * collect2.c (write_c_file_glob): Wrap function definition in macro test !LD_INIT_SWITCH. * combine.c (try_combine): Wrap variables `cc_use' and `compare_mode' in macro test EXTRA_CC_MODES. * cpplib.c (do_ident): Remove unused variable `len'. (skip_if_group): Remove unused variables `at_beg_of_line' and `after_ident'. (cpp_get_token): Remove unused variable `dummy'. * dbxout.c (scope_labelno): Move static variable definition inside the one function scope where it is used. (dbxout_function_end): Wrap prototype and definition in macro test !NO_DBX_FUNCTION_END. * dwarf2out.c (add_subscript_info): Wrap variable `dimension_number' in macro test !MIPS_DEBUGGING_INFO. * expr.c (expand_builtin_setjmp): Move declaration of variable `i' into the scope where it is used. Wrap empty else-statement body in braces. * fix-header.c: Fix typo in comment. (inf_skip_spaces): Cast results of INF_UNGET to (void). (check_protection, main): Likewise. * flow.c (find_basic_blocks_1): Remove dangling comment text. * function.c (contains): Wrap prototype and definition in macro test HAVE_prologue || HAVE_epilogue. (fixup_var_refs_1): Remove unused variable `width'. * gen-protos.c (main): Remove unused variable `optr'. * haifa-sched.c (debug_control_flow): Remove unused variable `j'. * libgcc2.c (__udiv_w_sdiv): Provide dummy return value of 0. (__sjpopnthrow): Remove unused variable `jmpbuf'. (__throw): Remove unused variable `val'. * protoize.c: Check for a previously existing definition before defining *_OK macros. * scan-decls.c (scan_decls): Remove unused variable `old_written'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18654 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix warious warnings:ghazi1998-02-281-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-aux-info.c: Include string.h/strings.h. * pa.c: Include stdlib.h. (pa_combine_instructions): Prototype the function. (pa_can_combine_p, forward_branch_p, shadd_constant_p): Likewise. (reloc_needed): Add default case for enumeration switch. (remove_useless_addtr_insns): Remove unused variable `all'. (hppa_expand_prologue): Add explicit braces to avoid ambiguous `else'. (output_function_epilogue): Remove unused variable `i'. (output_millicode_call): Remove unused variable `link'. (shadd_constant_p, forward_branch_p): Make the function static. (following_call): Explicitly declare to return int. (pa_reorg): Declare as void. (pa_combine_instructions): Declare as static void. Add parentheses around && within ||. * pa.h: Add prototypes for pa_reorg, symbolic_operand, following_call, function_label_operand, lhs_lshift_cint_operand and zdepi_cint_p. * pa.md: Add parentheses around && within ||. * cppalloc.c: Include stdlib.h. * cpperror.c (cpp_print_containing_files): Remove unused variable `i'. Fix format specifier in fprintf. * cse.c (cse_around_loop): Add explicit braces to avoid ambiguous `else'. (delete_dead_from_cse): Wrap variable `tem' in macro HAVE_cc0. * expr.c (expand_expr): Add parentheses around && within ||. * final.c (app_enable): Replace fprintf with fputs where there are no format specifiers and no trailing argument after the string. Eg, when printing ASM_APP_ON/ASM_APP_OFF. (app_disable): Likewise. (final_end_function): Likewise. (final_scan_insn): Likewise. Remove unused variable `set'. (profile_function): Wrap empty if-statement body in {} brackets. * function.c: Include stdlib.h. (pad_below): Wrap prototype and definition in ARGS_GROW_DOWNWARD. (reposition_prologue_and_epilogue_notes): Add parentheses around assignment used as truth value. * integrate.c (expand_inline_function): Wrap variable `cc0_insn' in macro HAVE_cc0. * jump.c (jump_optimize): Wrap variable `q' in macro HAVE_cc0. Remove unused variable `prev1'. * libgcc2.c (__bb_exit_trace_func): Add parentheses around && within ||. Fix format specifier in fprintf. (__bb_init_prg): Add parentheses around assignment used as truth value. * local-alloc.c: Include stdlib.h. (requires_inout): Add parentheses around assignment used as truth value. * loop.c (analyze_loop_iterations): Wrap prototype and definition in macro HAVE_decrement_and_branch_on_count. (insert_bct, instrument_loop_bct): Likewise. (move_movables): Add parentheses around assignment used as truth value. (consec_sets_invariant_p): Likewise. (maybe_eliminate_biv_1): Wrap variable `new' in macro HAVE_cc0. * objc/objc-act.c: Include stdlib.h. (lookup_method_in_protocol_list): Wrap empty else-statement body in braces. (lookup_protocol_in_reflist): Likewise. (objc_add_static_instance): Remove unused variables `decl_expr' and `decl_spec'. (get_objc_string_decl): Remove unused variable `decl'. (generate_static_references): Remove unused variables `idecl' and `instance'. (check_protocols): Wrap empty else-statement body in braces. * protoize.c: Include stdlib.h. (substr): Add parentheses around assignment used as truth value. (abspath): Likewise. (shortpath): Likewise. * regmove.c (fixup_match_1): Add parentheses around assignment used as truth value. * reload.c (push_secondary_reload): Remove unused variable `i'. (find_reloads): Add parentheses around assignment used as truth value. * reload1.c: Include stdlib.h. * rtl.h: Correct typo in prototype of offsettable_memref_p. * stmt.c (add_case_node): Add parentheses around assignment used as truth value. (case_tree2list): Likewise. * tree.c (valid_machine_attribute): Wrap variable `decl_attr_list' in macro VALID_MACHINE_DECL_ATTRIBUTE. Wrap variable `type_attr_list' in macro VALID_MACHINE_TYPE_ATTRIBUTE. (merge_attributes): Add explicit braces to avoid ambiguous `else'. * unroll.c (copy_loop_body): Wrap variable `cc0_insn' in macro HAVE_cc0. * varasm.c: Include stdlib.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18290 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from gcc-2.8law1997-12-071-17/+27
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16987 138bc75d-0d04-0410-961f-82ee72b054a4
* Patches from Fred Fish for systems with sys/varargs.h but not varargs.h.wilson1997-09-121-0/+7
| | | | | | | | | | | | * protoize.c: Include <varargs.h> only if HAVE_VARARGS_H is defined. If not defined, include <sys/varargs.h> if HAVE_SYS_VARARGS_H is defined. * configure.in: Test for varargs.h and sys/varargs.h. * configure: Regenerate with autoconf. * config.in: Regenerate with autoheader. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15420 138bc75d-0d04-0410-961f-82ee72b054a4
* * cccp.c (sys_errlist): Remove special 4.4bsd declaration.law1997-09-011-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | * collect2.c (sys_errlist): Likewise. * cpplib.c (sys_errlist): Likewise. * gcc.c (sys_errlist): Likewise. * protoize (sys_errlist): Likewise. * configure.in: Check for strerror. * xm-freebsd.h (HAVE_STRERROR): Remove definition. * xm-gnu.h (HAVE_STRERROR): Likewise. * xm-linux.h (HAVE_STRERROR): Likewise. * xm-netbsd.h (HAVE_STRERROR): Likewise. * xm-bsd386.h (HAVE_STRERROR): Likewise. * xm-cygwin32.h (HAVE_STRERROR): Likewise. * xm-dos.h (HAVE_STRERROR): Likewise. * xm-mingw32.h (HAVE_STRERROR): Likewise. * xm-pa.h (HAVE_STRERROR): Likewise. * xm-papro.h (HAVE_STRERROR): Likewise. * xm-sysv4.h (HAVE_STRERROR): Likewise. * configure, config.in: Rebuilt. Remove the need to define HAVE_STRERROR for each host port. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15011 138bc75d-0d04-0410-961f-82ee72b054a4
* (link): Eliminate definition on Win32.kenner1997-06-271-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14342 138bc75d-0d04-0410-961f-82ee72b054a4
* reformat a little to match GNU coding standards.mrs1997-05-061-6/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14024 138bc75d-0d04-0410-961f-82ee72b054a4
* Use symbolic codes for exit.kenner1997-04-201-22/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13938 138bc75d-0d04-0410-961f-82ee72b054a4
* * protoize.c: Update test for win32 (&& ! cygwin32).dje1996-08-181-4/+1
| | | | | | | (kill): Delete decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12650 138bc75d-0d04-0410-961f-82ee72b054a4
* formatting tweaksmrs1996-07-031-19/+19
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12390 138bc75d-0d04-0410-961f-82ee72b054a4
* * protoize.c: Include gansidecl.h.dje1996-06-101-70/+49
| | | | | | | | | | | | (my_execvp): Delete. (choose_temp_base,pexecute,pwait): Declare. (PEXECUTE_{FIRST,LAST,SEARCH}): Define. (execvp): Delete decl. (usage): Fix typo. (gen_aux_info_file): Rewrite to use pexecute/pwait. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12267 138bc75d-0d04-0410-961f-82ee72b054a4
* (reverse_def_dec_list): Silence compiler warnings.kenner1995-10-091-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10437 138bc75d-0d04-0410-961f-82ee72b054a4
* (do_cleaning): Don't blank out backslash-escaped newlines in doublekenner1995-09-141-1/+3
| | | | | | | quoted strings. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10355 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix spelling errors.kenner1995-08-281-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10289 138bc75d-0d04-0410-961f-82ee72b054a4
* (reverse_def_dec_list): Delete const qualifiers from local variables,kenner1995-07-101-5/+5
| | | | | | | and delete casts which were casting away const. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10113 138bc75d-0d04-0410-961f-82ee72b054a4
* (default_include): Use name and two ints to be compatible withkenner1995-06-201-11/+11
| | | | | | | definition of INCLUDE_DEFAULTS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10019 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kenner1995-06-151-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9964 138bc75d-0d04-0410-961f-82ee72b054a4
* Changed WINNT to _WIN32.kenner1995-05-161-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9732 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typos in comments.kenner1995-05-161-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9712 138bc75d-0d04-0410-961f-82ee72b054a4
* (edit_fn_definition): Fix mispelled local `have_flotsam'.kenner1995-05-161-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9709 138bc75d-0d04-0410-961f-82ee72b054a4
* (gen_aux_info_file): Use strerror #ifdef HAVE_STRERROR.kenner1995-05-031-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9568 138bc75d-0d04-0410-961f-82ee72b054a4
* (sys_nerr): Really declare ifndef HAVE_STRERROR.dje1995-04-281-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9529 138bc75d-0d04-0410-961f-82ee72b054a4
* Removed __NetBSD__ from conditional.kenner1995-04-251-25/+55
| | | | | | | | | | Declare strerror if HAVE_STRERROR is defined; otherwise declare sys_errlist and sys_nerr. (my_strerror): New function. (errno): Don't define if already defined as a macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9449 138bc75d-0d04-0410-961f-82ee72b054a4
* Use the phrase `preprocessing directive' consistently.kenner1995-03-301-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9259 138bc75d-0d04-0410-961f-82ee72b054a4
* Added #ifdef's WINNT.kenner1995-02-211-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9018 138bc75d-0d04-0410-961f-82ee72b054a4
* Update comments.kenner1995-01-251-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8811 138bc75d-0d04-0410-961f-82ee72b054a4
* [!POSIX]: Only define O_RDONLY and O_WRONLY if they are not alreadymib1994-11-081-0/+5
| | | | | | | defined for us. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8404 138bc75d-0d04-0410-961f-82ee72b054a4
* Include <sys/wait.h> on a POSIX systemian1994-10-051-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8218 138bc75d-0d04-0410-961f-82ee72b054a4
* If the POSIX.1 wait macros are defined, use them.ian1994-10-041-4/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8213 138bc75d-0d04-0410-961f-82ee72b054a4
* Do the 4.4BSD sys_errlist modification for NetBSD also.mycroft1994-07-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7707 138bc75d-0d04-0410-961f-82ee72b054a4
* Include <dirent.h>, not <sys/dir.h> on Concurrent.kenner1994-06-231-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7530 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix copyright notice.kenner1994-03-301-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6923 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
* (process_aux_info_file): Properly start over on file error.kenner1994-02-281-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6669 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove declarations of setjmp and longjmp.kenner1993-12-151-11/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6240 138bc75d-0d04-0410-961f-82ee72b054a4
* (save_def_or_dec): Correct typo in change of Nov 23. Makerms1993-11-241-5/+5
| | | | | | | sure pointers within def_dec_p are valid before it is freed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6156 138bc75d-0d04-0410-961f-82ee72b054a4
* (save_def_or_dec): If function's aux info doesn't endrms1993-11-241-5/+12
| | | | | | | | with a closeparen, ignore it. (xmalloc, xrealloc): Cast result of malloc. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6152 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove declarations for malloc and realloc.kenner1993-11-191-2/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6120 138bc75d-0d04-0410-961f-82ee72b054a4
* (safe_write): Return right away after safe_write.rms1993-11-051-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6017 138bc75d-0d04-0410-961f-82ee72b054a4
* (safe_read, safe_write): Handle EINTR.rms1993-11-051-3/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6015 138bc75d-0d04-0410-961f-82ee72b054a4
* (safe_write, safe_read): Really use arg DESC.rms1993-11-031-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5983 138bc75d-0d04-0410-961f-82ee72b054a4
* (safe_read): New function.rms1993-11-021-22/+44
| | | | | | | (process_aux_info_file, edit_file): Use safe_read. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5977 138bc75d-0d04-0410-961f-82ee72b054a4
* (edit_file): Use safe_write.rms1993-11-021-7/+22
| | | | | | | (safe_write): New subroutine. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5972 138bc75d-0d04-0410-961f-82ee72b054a4
* [__NeXT__]: Don't declare setjmp or longjmp.rms1993-10-261-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5894 138bc75d-0d04-0410-961f-82ee72b054a4
* (sys_errlist): Conditionalize declaration for BSD 4.4.wilson1993-10-201-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5843 138bc75d-0d04-0410-961f-82ee72b054a4