aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
AgeCommit message (Collapse)AuthorFilesLines
1998-10-14Add ATTRIBUTE_NORETURN in a bunch of places:Kaveh R. Ghazi1-4/+4
* cppalloc.c (memory_full): Mark function prototype with ATTRIBUTE_NORETURN. * demangle.h (collect_exit): Likewise. * fix-header.c (v_fatal, fatal): Likewise. * gcc.c (pfatal_with_name, pfatal_pexecute, fatal, fancy_abort): Likewise. * gcov.c (print_usage): Likewise. * genattr.c (fatal, fancy_abort): Likewise. * genattrtab.c (fatal, fancy_abort): Likewise. * gencodes.c (fatal, fancy_abort): Likewise. * genconfig.c (fatal, fancy_abort): Likewise. * genemit.c (fatal, fancy_abort): Likewise. * genextract.c (fatal, fancy_abort): Likewise. * genflags.c (fatal, fancy_abort): Likewise. * genopinit.c (fatal, fancy_abort): Likewise. * genoutput.c (fatal, fancy_abort): Likewise. * genpeep.c (fatal, fancy_abort): Likewise. * genrecog.c (fatal, fancy_abort): Likewise. * libgcc2.c (__eprintf, __default_terminate, __sjthrow, __sjpopnthrow, __throw): Likewise. * objc/objc-act.c (objc_fatal): Likewise. * protoize.c (usage, aux_info_corrupted, declare_source_confusing): Likewise. * rtl.c (dump_and_abort): Likewise. * rtl.h (sets_cc0_p): Likewise. * toplev.c (float_signal, pipe_closed): Likewise. From-SVN: r23084
1998-10-14Warning fixes:Kaveh R. Ghazi1-16/+20
* Makefile.in (sched.o): Depend on recog.h. * alias.c (REG_BASE_VALUE): Cast the result of REGNO() macro to (unsigned) when comparing against one. (find_base_value): Likewise. (record_base_value): Cast variable `regno' to (unsigned) when comparing against one. Cast the result of REGNO() macro to (unsigned) when comparing against one. (memrefs_conflict_p): Change type of variables `r_x' and `r_y' to unsigned. (init_alias_analysis): Add unsigned variable `ui'. Use it as loop variable where an unsigned index is needed. * caller-save.c (init_caller_save): Cast `-1' to (enum insn_code) before comparing against one. * collect2.c: Add prototypes for functions `error', `fatal' and `fatal_perror'. Make these functions take variable arguments instead of faking it with a fixed number of args. (write_c_file_stat): Cast the argument of ctype macro to (unsigned char). * combine.c (can_combine_p): Mark parameter `pred' with ATTRIBUTE_UNUSED. (find_split_point): Cast variable `src' to (unsigned HOST_WIDE_INT) when comparing against one. HOST_WIDE_INT) when comparing against one. (simplify_rtx): Cast 1 to (unsigned HOST_WIDE_INT) in shift. (simplify_logical): Likewise. (force_to_mode): Cast result of INTVAL() macro to (unsigned HOST_WIDE_INT) when comparing against one. Cast 1 to (unsigned HOST_WIDE_INT) in shift. (simplify_and_const_int): Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (merge_outer_ops): Cast variable const0 to `unsigned HOST_WIDE_INT' when comparing against the result of GET_MODE_MASK() macro. (simplify_comparison): Likewise for variable `c0'. Cast variable `const_op' to `unsigned HOST_WIDE_INT' when comparing against one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast the result of `GET_MODE_MASK()/2' to `HOST_WIDE_INT' when comparing against one. Cast `1' to `unsigned HOST_WIDE_INT' in shift. Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (distribute_notes): Wrap variable `cc0_setter' in macro `HAVE_cc0'. config/mips/mips.c (gen_int_relational): Cast result of INTVAL() macro to `unsigned HOST_WIDE_INT' when comparing against one. (output_block_move): Cast `sizeof' expression to (int) when comparing against one. (function_arg): Cast BITS_PER_WORD to `unsigned' when comparing against one. (save_restore_insns): Cast `base_offset' to `long' to match format specifier in fprintf. * config/mips/mips.h (Pmode): Cast the result of `Pmode' macro to `enum machine_mode'. * flow.c (life_analysis_1): Remove unused variable `insn'. * gcc.c (translate_options): Move variables `j' and `k' into the scope in which they are used. Change their types to `size_t'. (set_spec): Cast the argument of ctype macro to `unsigned char'. (read_specs): Likewise. (process_command): Cast `sizeof' to (int) when comparing against one. (do_spec_1): Cast the argument of ctype macro to `unsigned char'. (handle_braces): Cast both sides of `==' expression to `long' to ensure sign matching. (main): Cast variable `i' to `int' when comparing against one. * gcov-io.h (__fetch_long): Change type of parameter `bytes' from int to size_t. Cast variable `i' to size_t when comparing against one. * genattrtab.c (convert_set_attr_alternative): Remove unused parameter `insn_code'. All callers changed. (convert_set_attr): Likewise. * genrecog.c (add_to_sequence): Cast result of XVECLEN() macro to size_t when comparing against one. Likewise for variable `len'. * global.c (global_alloc): Cast variable `max_regno' to size_t when comparing against one. Likewise for variable `max_allocno'. * jump.c (sets_cc0_p): Mark parameter `x' with ATTRIBUTE_UNUSED. * local-alloc.c (validate_equiv_mem_from_store): Mark parameter `set' with ATTRIBUTE_UNUSED. (find_free_reg): Cast `sizeof' expression to (int) when comparing against one. * loop.c (count_loop_regs_set): Remove unused variable `dest'. (strength_reduce): Mark parameter `bct_p' with ATTRIBUTE_UNUSED. (get_condition): Cast variable `const_val' to `unsigned HOST_WIDE_INT' when comparing against one. Cast unsigned expression to HOST_WIDE_INT when comparing against one. (insert_loop_mem): Mark parameter `data' with ATTRIBUTE_UNUSED. (load_mems_and_recount_loop_regs_set): Cast variable `nregs' to `unsigned' when comparing against one. * protoize.c (is_id_char): Change type of parameter `ch' to unsigned char. (munge_compile_params): Cast argument of ctype macro to (const unsigned char). (process_aux_info_file): Cast variable `aux_info_size' to int when comparing against one. (forward_to_next_token_char): Cast argument of ctype macro to `const unsigned char'. (edit_formals_lists): Likewise. (find_rightmost_formals_list): Likewise. (add_local_decl): Likewise. (add_global_decls): Likewise. (edit_fn_definition): Likewise. (do_cleaning): Likewise. (scan_for_missed_items): Likewise. (edit_file): Cast variable `orig_size' to (int) when comparing against one. (main): Cast argument of ctype macro to `const unsigned char'. * recog.c (const_int_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED. * regclass.c (record_reg_classes): Change type of variable `c' to `unsigned char'. Cast `char' array index to `unsigned char'. * reload.c (push_secondary_reload): Cast argument to REG_CLASS_FROM_LETTER() macro to `unsigned char'. * reload1.c (calculate_needs): Cast `char' array index to `unsigned char'. (set_label_offsets): Change type of variable `i' to unsigned int. Cast result of XVECLEN() macro to unsigned when comparing against one. (mark_not_eliminable): Change type of variable `i' to unsigned. (order_regs_for_reload): Likewise. Cast `max_regno' to unsigned when comparing against one. (reload_as_needed): Cast macro NUM_ELIMINABLE_REGS to (int) when comparing against one. (choose_reload_regs): Hide unused label `fail'. (reload_cse_simplify_operands): Cast `char' array index to `unsigned char'. (reload_combine_note_store): Mark parameter `set' with ATTRIBUTE_UNUSED. Cast UNITS_PER_WORD to unsigned when comparing against one. (reload_cse_move2add): Remove unused variable `src2'. * sched.c: Include recog.h. (sched_note_set): Remove unused parameter `b'. All callers changed. (split_hard_reg_notes): Likewise for parameter `orig_insn'. (blockage_range): Cast result of UNIT_BLOCKED() macro to (int) when comparing against one. * stupid.c (stupid_find_reg): Mark parameter `changes_size' with ATTRIBUTE_UNUSED. Cast `sizeof' expression to (int) when comparing against one. * unroll.c (precondition_loop_p): Remove unused parameter `loop_end'. All callers changed. From-SVN: r23079
1998-10-09flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.Graham Stott1-6/+6
Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk> * flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use. * gcc.c (add_preprocessor_option): Correct typo when allocating memory, sizeof() argument had one too many `*'. (add_assembler_option): Likewise. (add_linker_option): Likewise. * gcov.c (output_data): Likewise. * local-alloc.c (memref_used_between_p): Likewise. (update_equiv_regs): Likewise. * loop.c (strength_reduce): Likewise. * reg-stack.c (record_asm_reg_life): Likewise. (subst_asm_stack_reg): Likewise. * reorg.c (dbr_schedule): Likewise. From-SVN: r22964
1998-09-28configure.in: new flags --with-ld and --with-as...Alexandre Oliva1-1/+21
* configure.in: new flags --with-ld and --with-as, equivalent to setting LD and AS environment variables. Test whether specified arguments are GNU commands, and report them with checking messages. Use the specified AS for configure tests too. * configure: ditto * acconfig.h: add DEFAULT_ASSEMBLER and DEFAULT_LINKER * config.in: ditto * gcc.c (find_a_file): when looking for `as' and `ld', return the DEFAULT program if it exists * collect2.c (main): use DEFAULT_LINKER if it exists * gcc.c (find_a_file): the test for existence of a full pathname was reversed From-SVN: r22629
1998-09-20Use GET_ENV_PATH_LIST for GCC_EXEC_PREFIX too. My goof, not Felix's.Jeff Law1-1/+1
From-SVN: r22513
1998-09-20c-lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT ().Felix Lee1-6/+6
* c-lex.c (init_lex): Use getenv ("LANG"), not GET_ENVIRONMENT (). * cccp.c (main): Likewise. * gcc.c (process_command): Similarly for "GCC_EXEC_PREFIX". * cccp.c, collect2.c, cpplib.c, gcc.c, config/i386/xm-cygwin32.h: Rename GET_ENVIRONMENT to GET_ENV_PATH_LIST, and fix some macro-use bugs. From-SVN: r22511
1998-09-20Makefile.in (LIBS): Link in libiberty.a.Per Bothner1-3/+3
* Makefile.in (LIBS): Link in libiberty.a. * c-common.c, gcc.c, toplev.c: Repalce (some) bcopy calls by memcpy. From-SVN: r22508
1998-09-04gcc.c (do_spec_1): [case 'o'] Account for lang_specific_extra_outfiles.Tom Tromey1-7/+19
* gcc.c (do_spec_1): [case 'o'] Account for lang_specific_extra_outfiles. (main): Correctly clear all slots in outfiles for lang_specific_extra_outfiles. Set input_file_number before calling lang_specific_pre_link. From-SVN: r22234
1998-08-26system.h: Include stdarg.h/varargs.h...Kaveh R. Ghazi1-6/+0
* 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-07-28gcc.c: Fix commentary describing %g, %u, %U, and %O.Craig Burley1-27/+54
d * gcc.c: Fix commentary describing %g, %u, %U, and %O. * gcc.c (do_spec_1): Fix support for %O so the temporary file name made for it the first time gets reused subsequently. From-SVN: r21450
1998-07-21gcc.c (do_spec): Call "error" not "warning".Jeffrey A Law1-1/+1
* gcc.c (do_spec): Call "error" not "warning". Opps. From-SVN: r21319
1998-07-20gcc.c (do_spec): Issue a warning for '%[]' usage.Jeffrey A Law1-16/+57
Tue Jul 21 00:31:01 1998 Jeffrey A Law (law@cygnus.com) * gcc.c (do_spec): Issue a warning for '%[]' usage. * Undo this change. * gcc.c: Delete %[spec] support. (do_spec_1, case '('): Likewise. (do_spec_1, case '['): Call error. From-SVN: r21314
1998-07-16gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.Nick Clifton1-1/+1
8 * gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix. From-SVN: r21229
1998-07-14Improve --help support.Nick Clifton1-26/+56
From-SVN: r21141
1998-07-13gcc.c (do_spec_1): Fix %O handling for secure temporary file creation.Weiwen Liu1-4/+15
8 * gcc.c (do_spec_1): Fix %O handling for secure temporary file creation. From-SVN: r21124
1998-07-13i386.h (CPP_486_SPEC, [...]): New specs.Jim Wilson1-56/+16
* i386/i386.h (CPP_486_SPEC, CPP_586_SPEC, CPP_686_SPEC): New specs. (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Use them. (EXTRA_SPECS): Support them. * gcc.c: Delete %[spec] support. (do_spec_1, case '('): Likewise. (do_spec_1, case '['): Call error. * i386/aix386ng.h, cygwin32.h, freebsd-elf.h, gas.h, isc.h, linux-aout.h, linux-oldld.h, linux.h, osfelf.h, osfrose.h, sco.h, sco4.h, sco4dbx.h, sco5.h, sol2.h, sysv3.h (CPP_SPEC): Delete %[cpp_cpu]. From-SVN: r21120
1998-07-13Add --help option.Nick Clifton1-42/+147
From-SVN: r21109
1998-06-29choose-temp.c (make_temp_file): Accept new argument for the file suffix to use.Jeffrey A Law1-2/+2
* choose-temp.c (make_temp_file): Accept new argument for the file suffix to use. Allocate space for it and add it to the template. * mkstemp.c (mkstemps): Renamed from mkstemp. Accept new argument for the length of the suffix. Update template struture checks to handle optinal suffix. * collect2.c (make_temp_file): Update prototype. (main): Put proper suffixes on temporary files. * gcc.c (make_temp_file): Update prototype. (do_spec_1): Put proper suffixes on temporary files. Should fix irix build problems. From-SVN: r20812
1998-06-29* Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forJeff Law1-1/+8
details. From-SVN: r20808
1998-06-28choose-temp.c (choose_temp_base): Restore original variant of this function ↵Jeffrey A Law1-2/+7
for compatibility. * choose-temp.c (choose_temp_base): Restore original variant of this function for compatibility. (make_temp_file): This is the new, preferred interface to create temporary files. * collect2.c (choose_temp_base): Delete declaration. (make_temp_file): Declare. (temp_filename_length, temp_filename): Delete. (main): Use make_temp_file to get temporary files. Use --lang-c to force the resulting ctort/dtor file to be compiled with the C compiler. Make sure to remove temporary files on all exit paths. * gcc.c (make_temp_file): Provide prototype if MKTEMP_EACH_FILE is defined. (choose_temp_base): Only provide prototype if MKTEMP_EACH_FILE is not defined. (do_spec): Use make_temp_file if MKTEMP_EACH_FILE is defined. From-SVN: r20784
1998-06-28Consolidate strerror handling, as well as getcwd/getwd.Kaveh R. Ghazi1-7/+1
* 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-26choose-temp.c (choose_temp_base): Remove MPW bits.Jeffrey A Law1-0/+5
* choose-temp.c (choose_temp_base): Remove MPW bits. Use mkstemp instead of mktemp. * gcc.c (MKTEMP_EACH_FILE): Define. (main): No need to call choose_temp_base if we are going to use choose_temp_base to create each file later. * mkstemp.c: New file. Adapted from glibc. * Makefile.in (xgcc, colect2, protoize, unprotoize): Link in mkstemp.o (mkstemp.o): Add dependencies. From-SVN: r20746
1998-06-25gcc.c (default_compilers): Use new | syntax to eliminate string concatenation.Dave Brolley1-8/+3
Thu Jun 25 11:12:29 1998 Dave Brolley <brolley@cygnus.com> * gcc.c (default_compilers): Use new | syntax to eliminate string concatenation. From-SVN: r20711
1998-06-22* gcc.c (handle_braces): Recognize | between options as an or.Richard Henderson1-32/+56
From-SVN: r20664
1998-06-10Integrate cpplib into the C and C++ front ends.Dave Brolley1-3/+44
Wed Jun 10 13:07:02 1998 Dave Brolley <brolley@cygnus.com> * objc/objc-act.c: Add cpplib declarations. (lang_decode_option): Initialize cpplib if necessary. (lang_decode_option): New argc/argv interface. * tree.h (lang_decode_option): New argc/argv interface. * toplev.c (lang_options): Add cpp options. (main): New interface for lang_decode_option. * gcc.c (default_compilers): Don't call cpp for a cpplib-enabled C compiler unless -E, -M or -MM is specified. * cpplib.h (cpp_handle_option): New function. * cpplib.c (cpp_handle_option): New function. (cpp_handle_options): Now calls cpp_handle_option. * c-tree.h (c_decode_option): New argc/argv interface. * c-lex.c (init_parse): cpplib now initialized in c_decode_option. * c-lang.c (lang_decode_option): New argc/argv interface. * c-decl.c: Add cpplib declarations. (c_decode_option): New argc/argv interface. (c_decode_option): Call cpp_handle_option. (c_decode_option): Now returns number of strings processed. From-SVN: r20407
1998-06-06One more typo.Per Bothner1-1/+1
From-SVN: r20263
1998-06-06Fixed typo: lang_specific_extra_ofiles -> lang_specific_extra_outfiles.Per Bothner1-1/+1
From-SVN: r20262
1998-06-05gcc.c (lang_specific_pre_link): New LANG_SPECIFIC_DRIVER function.Per Bothner1-5/+22
` * gcc.c (lang_specific_pre_link): New LANG_SPECIFIC_DRIVER function. (lang_specific_extra_outfiles): New LANG_SPECIFIC_DRIVER variable. (do_spec, input_filename, input_filename_length): Make public. (main): Adjust outfiles allocation by lang_specific_extra_outfiles. Call lang_specific_pre_link befor elinking. From-SVN: r20250
1998-05-17gcc.c (SWITCH_CURTAILS_COMPILATION): Definition.Nick Clifton1-2/+45
* gcc.c (SWITCH_CURTAILS_COMPILATION): Definition. (DEFAULT_SWITCH_CURTAILS_COMPILATION): True for options -S and -c. (process_command): If HAVE_EXECUTABLE_SUFFIX is defined then scan command line arguments to see if an executable is not being created, and if so - do not append the suffix. * tm.texi (SWITCH_CURTAILS_COMPILATION): Add description of new driver macro. From-SVN: r19824
1998-05-07Fix specs file problem reported by Nathan Myers.Jim Wilson1-2/+2
* gcc.c (read_specs): Handle missing blank line at end of specs file. From-SVN: r19622
1998-05-07Handle missing vfprintf() & _doprnt() functions with linked in modules,Kaveh R. Ghazi1-36/+1
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. From-SVN: r19610
1998-05-06c-common.c: Convert to using ctype macros defined in system.h.Kaveh R. Ghazi1-3/+3
* c-common.c: Convert to using ctype macros defined in system.h. * c-lex.c: Likewise. * cccp.c: Likewise. * collect2.c: Likewise. * rs6000.c: Likewise. * cpplib.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * gen-protos.c: Likewise. * pexecute.c: Likewise. * protoize.c: Likewise. * rtl.c: Likewise. * scan.c: Likewise. * stmt.c: Likewise. * tlink.c: Likewise. * toplev.c: Likewise. From-SVN: r19579
1998-05-06Be more careful when including <time.h> and <sys/file.h> in system.h.Kaveh R. Ghazi1-5/+0
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-20Fix i386-* failure that shows up as a cpp usage message.Jim Wilson1-2/+1
* gcc.c (do_spec_1, case '['): Move flag out of loop and initialize it. From-SVN: r19350
1998-04-20Fix warning when compiling g++.oMichael Meissner1-0/+4
From-SVN: r19342
1998-04-18Patches to make g++/g77 give useful error when no files are given.Jim Wilson1-3/+9
* gcc.c (lang_specific_driver): Add new parm type to prototype. (added_libraries): New file scope static variable. (process_command): Initialize added_libraries. Pass it to lang_specific_driver. (main): Use added_libraries in check for no input files. From-SVN: r19281
1998-04-08gcc.c (proces_command): Improve error message for -o with either -c or -S.Jeffrey A Law1-1/+1
* gcc.c (proces_command): Improve error message for -o with either -c or -S. From-SVN: r19058
1998-04-06gcc.c: Add linker spec.Bob Manson1-2/+16
* gcc.c: Add linker spec. (link_command_spec): Use %(linker) instead of ld. (main): If collect2 is requested as the linker, see if it exists; if not, use ld instead. * Makefile.in (USE_COLLECT2): It's named collect2 now, not ld. (ld:) Deleted. (install-collect2): Install as collect2, not ld. * configure.in(will_use_collect2): It's named collect2 now. * collect2: Remove checks to see if we were invoked recursively. (collect_execute): Use _spawnvp under cygwin32. From-SVN: r19022
1998-04-04* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12Jeff Law1-27/+69
for details. * haifa-sched.c: Mirror recent changes from gcc2. From-SVN: r18984
1998-03-30gcc.c, cccp.c, cpplib.c, collect2.c (GET_ENVIRONMENT): Added.Stan Cox1-4/+8
From-SVN: r18914
1998-03-27Make GCC_EXEC_PREFIX work againMichael Meissner1-0/+15
From-SVN: r18856
1998-03-20Major cutover to using system.h:Kaveh R. Ghazi1-7/+6
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o, c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o, caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o, dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o, expr.o, final.o, flow.o, function.o, getpwd.o, global.o, integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o, prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o, reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o, rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o, tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend on system.h. * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c, c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c, caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c, dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c, expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c, integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c, prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c, reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c, rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c, stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c, xcoffout.c: Include system.h. Organize include ordering so that stdarg/varargs comes before other system headers. Remove spurious casts of functions assured of a prototype in system.h. From-SVN: r18726
1998-03-16Fix off by 1 error in handling multilibsMichael Meissner1-0/+3
From-SVN: r18630
1998-03-12aManfred Hollstein1-29/+29
In gcc/: * i386.h (RTX_COSTS): Insert braces around nested if. (ADDITIONAL_REGISTER_NAMES): Insert braces around structured elements. * gcc.c (default_compilers): Properly put brackets around array elements in initializer. * getopt.c (_getopt_internal): Add explicit braces around nested if; reformatted. * reg-stack.c (record_asm_reg_life): Add explicit braces around nested if's. (record_reg_life_pat): Add explicit parens around && and || in expression. (stack_reg_life_analysis): Add parens around assignment used as expression. (convert_regs): Likewise. In gcc/cp/: * lang-specs.h: Properly put brackets around array elements in initializer. * typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in expression. In gcc/f/: * lang-specs.h: Properly put brackets around array elements in initializer. From-SVN: r18502
1998-03-12aManfred Hollstein1-1/+7
In gcc/: * bitmap.c (bitmap_element_allocate): Remove unused parameter; change callers accordingly. * cplus-dem.c (arm_special): Remove unused parameter work in prototype and definition; change all callers accordingly. * except.c (init_eh): Avoid assignment of unused return value of build_pointer_type; cast it to void, instead, and remove unused variable type. * gcc.c (lang_specific_driver): Define prototype only #ifdef LANG_SPECIFIC_DRIVER. (temp_names): Define only #ifdef MKTEMP_EACH_FILE. * genoutput.c (output_epilogue): Initialize next_name to 0. * real.c (efrexp): #if 0 prototype and function definition. (eremain): Likewise. (uditoe): Likewise. (ditoe): Likewise. (etoudi): Likewise. (etodi): Likewise. (esqrt): Likewise. * reload.c (push_secondary_reload): Define prototype only #ifdef HAVE_SECONDARY_RELOADS. * varasm.c (assemble_static_space): Define rounded only #ifndef ASM_OUTPUT_ALIGNED_LOCAL. In gcc/cp/: * call.c (default_parm_conversions): Remove prototype definition. (build_method_call): Remove unused variable result. * cvt.c (ocp_convert): Remove unused variable conversion. * decl2.c (ambiguous_decl): Add explicit parameter definition for name. * except.c (do_unwind): #if 0 definition of unused variables fcall and next_pc. * expr.c (extract_scalar_init): #if 0 prototype and function definition. * init.c (expand_aggr_init_1): Remove unused variable init_type. (build_new_1): Remove unused variable t. * pt.c (instantiate_class_template): Remove unused variable newtag; cast called function return value to void. (do_decl_instantiation): Remove unused variables name and fn. * tree.c (get_type_decl): Add default return to shut up compiler from complaining control reaches end of non-void function. * typeck.c (build_x_conditional_expr): Remove unused variable rval. From-SVN: r18497
1998-03-12c-decl (finish_struct): Change type of min_align to unsigned.Manfred Hollstein1-11/+10
d gcc/ChangeLog: * c-decl (finish_struct): Change type of min_align to unsigned. * cplus-dem.c (demangle_function_name): Change type of variable i to size_t; remove unused variable len. * dwarf2out.c (reg_save): Add explicit cast of -1 to unsigned and a comment indicating this is proper behaviour. (reg_loc_descriptor): Remove redundant comparison of unsigned variable reg >= 0. (based_loc_descr): Likewise. * enquire.c (bitpattern): Change type of variable i to unsigned. * final.c (output_asm_insn): Don't cast insn_noperands to unsigned. * flow.c (life_analysis): Change type of variable i to size_t; remove unused variable insn. * gcc.c (translate_options): Change type of variables optlen, arglen and complen to size_t. (input_filename_length): Change type to size_t. (do_spec_1): Change type of variable bufsize to size_t. (main): Change type of variables i and j to size_t; remove subblock local definition of variable i. (lookup_compiler): Change type of second argument to size_t; change type of variable i to size_t. * genemit.c (output_init_mov_optab): Change type of variable i to size_t. * genopinit.c (get_insn): Change type of variable pindex to size_t. * genrecog.c (add_to_sequence): Change type of variable i to size_t. * global.c (global_alloc): Change type of variable i to size_t. * regclass.c (init_reg_sets): Change type of variables i and j to unsigned. * stmt.c (expand_end_bindings): Change type of variable i to size_t. (expand_end_case): Change type of variable count to size_t. * toplev.c (main): Change type of variable j to size_t. (set_target_switch): Change type of variable j to size_t. (print_switch_values): Change type of variable j to size_t; remove unused variable flags. * varasm.c (assemble_variable): Change type of variable align to size_t. (const_hash_rtx): Change type of variable i to size_t. gcc/cp/ChangeLog: Sun Mar 8 17:13:38 1998 Manfred Hollstein <manfred@s-direktnet.de> * decl2.c (lang_decode_option): Change j's type to size_t. * tree.c (layout_vbasetypes): record_align and desired_align are of type unsigned int; const_size and nonvirtual_const_size likewise. From-SVN: r18490
1998-02-28I've backed out of including stat.h via system.h because stat.h can define...Kaveh R. Ghazi1-0/+1
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-15gcc.c: Get system includes...Kaveh R. Ghazi1-55/+15
* gcc.c: Get system includes, prototypes and macros via "system.h" instead of doing it manually. Change all calls of the ctype macros to custom versions defined in "system.h". From-SVN: r18019
1998-02-07gcc.c: Include <strings.h>/<string.h>, <stdlib.h>, <unistd.h>, <fcntl.h>.Robert Lipe1-29/+26
* gcc.c: Include <strings.h>/<string.h>, <stdlib.h>, <unistd.h>, <fcntl.h>. (free_path_suffix): Remove unreferenced static function. (process_command): Remove unused variable temp. (default_arg): Remove unused variable i. (do_spec_1): Add parens for assignment used as truth value. (main): Likewise. (validate_all_switches): Likewise. (main): Remove unused variables i, first_time> From-SVN: r17768
1998-01-26flags.h: New flag (optimize_size).Anthony Green1-6/+11
* flags.h: New flag (optimize_size). * toplev.c (main): Parse -Os option and set optimize_space accordingly. * gcc.c (default_compilers), cp/lang-specs.h, f/lang-specs.h: Define __OPTIMIZE_SIZE__ when compiling with -Os. * config/dsp16xx/dsp16xx.h, config/i386/i386.h, config/i386/dgux.h, config/i960/i960.h, config/pdp11/pdp11.h, config/v850/v850.h (OPTIMIZATION_OPTIONS): New SIZE argument to macro. * config/i386/i386.c (optimization_options): Accept new SIZE argument. From-SVN: r17497