summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
Commit message (Collapse)AuthorAgeFilesLines
* gcc.c, cccp.c, cpplib.c, collect2.c (GET_ENVIRONMENT): Added.scox1998-03-301-4/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18914 138bc75d-0d04-0410-961f-82ee72b054a4
* Make GCC_EXEC_PREFIX work againmeissner1998-03-271-0/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18856 138bc75d-0d04-0410-961f-82ee72b054a4
* Major cutover to using system.h:ghazi1998-03-201-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18726 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix off by 1 error in handling multilibsmeissner1998-03-161-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18630 138bc75d-0d04-0410-961f-82ee72b054a4
* amanfred1998-03-121-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18502 138bc75d-0d04-0410-961f-82ee72b054a4
* amanfred1998-03-121-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18497 138bc75d-0d04-0410-961f-82ee72b054a4
* dmanfred1998-03-121-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18490 138bc75d-0d04-0410-961f-82ee72b054a4
* I've backed out of including stat.h via system.h because stat.h canghazi1998-02-281-0/+1
| | | | | | | | | | 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
* * gcc.c: Get system includes, prototypes and macros via "system.h"law1998-02-151-55/+15
| | | | | | | | instead of doing it manually. Change all calls of the ctype macros to custom versions defined in "system.h". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18019 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c: Include <strings.h>/<string.h>, <stdlib.h>, <unistd.h>,law1998-02-071-29/+26
| | | | | | | | | | | | | | <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> git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17768 138bc75d-0d04-0410-961f-82ee72b054a4
* * flags.h: New flag (optimize_size).law1998-01-261-6/+11
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17497 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (pexecute): New function for mingw32. Supports pipes.law1998-01-171-1/+1
| | | | | | | | | (pwait): New function for mingw32. * gcc.c (execute): Mingw32 pexecute() supports pipes, but cygwin32 pipe support is broken for now. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17396 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from gcc-2.8law1997-12-071-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16987 138bc75d-0d04-0410-961f-82ee72b054a4
* * m68k.c: Include tree.h for dwarf2out_cfi_label.law1997-12-061-1/+1
| | | | | | | | | | | | | | | * gcc.c (process_command): Do not take address of function fatal when calling lang_specific_driver. * config/i386/cygwin32.h (DWARF2_UNWIND): Exception handling doesn't work with it yet, so set it to 0. * config/i386/xm-cygwin32.h (NO_SYS_SIGLIST): Define. * cse.c (cse_insn): Check for invalid entries when taking references. More assorted pending patches. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16978 138bc75d-0d04-0410-961f-82ee72b054a4
* Update mainline egcs to gcc2 snapshot 971021.law1997-11-021-81/+134
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16278 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
* Take out __EGCS__ and __EGCS_MINOR__.law1997-08-191-4/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14839 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (default_compilers): Add __EGCS__ and __EGCS_MINOR__law1997-08-171-0/+4
| | | | | | | predefines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14822 138bc75d-0d04-0410-961f-82ee72b054a4
* * version.c: Change the version string to look like:law1997-08-151-60/+0
| | | | | | | | | egcs-1.0.0 970814 (gcc2-970802 experimental). * gcc.c: Take out experimental snapshot warning message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14811 138bc75d-0d04-0410-961f-82ee72b054a4
* * Integrate tlink patch from jason@cygnus.comlaw1997-08-111-35/+62
| | | | | | | | | | | | | | | | | | | | * gcc.c (SWITCH_TAKES_ARG): Add 'V', 'B' and 'b'. (process_command): Increment n_switches for them. Don't discard their args. Validate them. (main): Escape " marks when creating COLLECT_GCC_OPTIONS. From Rohan Lenard. (process_command): Set include_prefixes from COMPILER_PATH. (main): Set COLLECT_GCC_OPTIONS sooner. * confiugre.in: Link ../ld/ld.new to collect-ld rather than real-ld. * tlink.c, hash.c, hash.h: New files. * Makefile.in (USE_COLLECT2): Always use collect2. (collect2): Depend on and link in hash.o and tlink.o. (tlink.o, hash.o): Add dependencies. tlink patches from Jason. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14769 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionlaw1997-08-111-0/+60
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14764 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_filename): Fix typo.kenner1997-07-141-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14440 138bc75d-0d04-0410-961f-82ee72b054a4
* (process_command): If -save-temps and -pipe were specified together,kenner1997-07-131-0/+3
| | | | | | | don't do -pipe. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14415 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (main): Handle blank in version_string when comparingdje1997-07-131-1/+11
| | | | | | | with compiler_version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14414 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for and read ${libdir}/gcc-lib/specs to override the default specs.kenner1997-06-211-0/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14278 138bc75d-0d04-0410-961f-82ee72b054a4
* Add %include, %include_noerr, %rename support to specsmeissner1997-03-251-124/+266
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13803 138bc75d-0d04-0410-961f-82ee72b054a4
* (init_spec): Delete parameter. Always initialize extra_specs.wilson1997-03-181-19/+13
| | | | | | | (process_command, main): Change all callers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13737 138bc75d-0d04-0410-961f-82ee72b054a4
* (set_spec): Fix comment-in-comment typo.kenner1997-02-151-2/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13643 138bc75d-0d04-0410-961f-82ee72b054a4
* (process_command): Allocate space for terminating null.kenner1997-02-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13641 138bc75d-0d04-0410-961f-82ee72b054a4
* (process_command): Fix improper use of strncpy.kenner1997-02-011-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13574 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo.meissner1997-01-161-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13504 138bc75d-0d04-0410-961f-82ee72b054a4
* Cleanup specs supportmeissner1997-01-161-193/+115
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13502 138bc75d-0d04-0410-961f-82ee72b054a4
* (handle_braces): Rework last change.kenner1996-12-071-15/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13241 138bc75d-0d04-0410-961f-82ee72b054a4
* (give_switch): Add new arg, INCLUDE_BLANKS.kenner1996-12-071-8/+28
| | | | | | | | (handle_braces): All callers changed. Add support for new construct: %{S*^}. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13223 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (DRIVER_DEFINES): New macro, with the macrobrendan1996-12-071-0/+5
| | | | | | | | | | | definitions for the driver. (gcc.o): Make rule use $(DRIVER_DEFINES). * gcc.c (process_command) [LANG_SPECIFIC_DRIVER]: Call lang_specific_driver, passing along the addr of FATAL for errors along with our ARGC and ARGV. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13222 138bc75d-0d04-0410-961f-82ee72b054a4
* (exit): If VMS, define as __posix_exit.kenner1996-11-121-3/+7
| | | | | | | (option_map): Add define-macro and undefine-macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13150 138bc75d-0d04-0410-961f-82ee72b054a4
* Add -specs supportmeissner1996-10-291-1/+52
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13075 138bc75d-0d04-0410-961f-82ee72b054a4
* (default_compilers): -ansi no longer implies -$ to cpp.kenner1996-10-091-4/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12926 138bc75d-0d04-0410-961f-82ee72b054a4
* (used_arg): When call xmalloc for mswitches, pass 1 ifwilson1996-10-011-2/+7
| | | | | | | n_switches is zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12885 138bc75d-0d04-0410-961f-82ee72b054a4
* (do_spec_1): Allow -A in %[Spec].coxs1996-09-271-5/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12852 138bc75d-0d04-0410-961f-82ee72b054a4
* (used_arg): Fix multilib_matches parsing to not corrupt entry parameter.kenner1996-09-241-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12834 138bc75d-0d04-0410-961f-82ee72b054a4
* (link_command_spec): Move -T options to end of link commandwilson1996-09-171-4/+8
| | | | | | | line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12728 138bc75d-0d04-0410-961f-82ee72b054a4
* (convert_filename): Don't start looking for '.' until after lastkenner1996-09-151-1/+5
| | | | | | | directory separator. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12724 138bc75d-0d04-0410-961f-82ee72b054a4
* (HAVE_EXECUTABLE_SUFFIX): New macro.kenner1996-09-151-15/+54
| | | | | | | | | (convert_filename): New function. (process_command, case 'o'): Call it. (process_command, default case): Likewise; delete old code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12713 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c: Change ifndef _WIN32 to ifndef NO_SYS_FILE_H when decidingdje1996-08-181-2/+2
| | | | | | | | whether to include sys/file.h. (execute): -pipe is supported for cygwin32. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12652 138bc75d-0d04-0410-961f-82ee72b054a4
* mp/load version # in specs file so __GNUC_MINOR__ will be correctmeissner1996-08-131-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12635 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typomeissner1996-08-121-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12629 138bc75d-0d04-0410-961f-82ee72b054a4
* Speed up genmultilib; Add MULTIB_EXTRA_OPTSmeissner1996-08-121-26/+160
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12623 138bc75d-0d04-0410-961f-82ee72b054a4
* (default_compilers): Extra Fortran extensions.kenner1996-07-181-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12513 138bc75d-0d04-0410-961f-82ee72b054a4
* formatting tweaksmrs1996-07-031-25/+27
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12390 138bc75d-0d04-0410-961f-82ee72b054a4