aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
AgeCommit message (Collapse)AuthorFilesLines
2001-04-19vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and...DJ Delorie1-27/+35
* config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and TARGET_EXECUTABLE_SUFFIX. * config/i386/cygwin.h: Likewise. * config/i386/mingw32.h: Likewise. * config/vax/vms.h: Likewise. * config/i386/djgpp.h: Remove NO_AUTO_EXE_SUFFIX. * config/alpha/xm-vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to HOST_OBJECT_SUFFIX and HOST_EXECUTABLE_SUFFIX. * config/i386/xm-cygwin.h: Likewise. * config/i386/xm-djgpp.h: Likewise. * config/i386/xm-mingw32.h: Likewise. * config/vax/xm-vms.h: Likewise. * mkdeps.c (deps_add_default_target): Use TARGET_OBJECT_SUFFIX instead of OBJECT_SUFFIX. * collect2.c (find_a_file): Look for files matching the extension HOST_EXECUTABLE_SUFFIX instead of EXECUTABLE_SUFFIX. * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Depend on TARGET_EXECUTABLE_SUFFIX. (find_a_file): Use HOST_EXECUTABLE_SUFFIX. (make_relative_prefix): Likewise. (convert_filename): Use TARGET_ suffixes throughout. Remove NO_AUTO_EXE_SUFFIX. (process_command): Likewise. (do_spec_1): Likewise. * java/lang.c (init_parse): Likewise. * gcc.texi : Document four new options matching the pattern (HOST|TARGET)_(OBJECT|EXECUTABLE)_SUFFIX. Remove documentation for deleted macros OBJECT_SUFFIX and EXECUTABLE_SUFFIX. Remove documentation for NO_AUTO_EXE_SUFFIX. From-SVN: r41428
2001-04-02configure.in: Don't check for putenv.Kaveh R. Ghazi1-54/+0
* configure.in: Don't check for putenv. * configure: Regenerate. * gcc.c (putenv): Don't define. * vax/xm-vms.h: Handle putenv. From-SVN: r41005
2001-03-20* gcc.c (init_gcc_specs): Fix comment.Tom Tromey1-1/+1
From-SVN: r40645
2001-03-16more rigorous SIGCHLD guardingBruce Korb1-0/+5
From-SVN: r40522
2001-03-08back out the 3-0 branch versionBruce Korb1-36/+75
From-SVN: r40332
2001-03-08fix SIGCHLD handlingBruce Korb1-75/+36
[[Split portion of a mixed commit.]] From-SVN: r40331.2
2001-03-08fix SIGCHLD handlingBruce Korb1-0/+3
From-SVN: r40330
2001-03-04gcc.c (convert_filename): Append executable suffix if NO_AUTO_EXE_SUFFIX is ↵Laurynas Biveinis1-1/+1
not defined. * gcc.c (convert_filename): Append executable suffix if NO_AUTO_EXE_SUFFIX is not defined. * gcc.texi: Document NO_AUTO_EXE_SUFFIX. * config/i386/djgpp.h: Define NO_AUTO_EXE_SUFFIX. From-SVN: r40229
2001-03-02gcc.c, [...]: Add zero initializer for cpp_spec field to all array elements.Zack Weinberg1-23/+24
* gcc.c, cp/lang-specs.h, f/lang-specs.h, java/lang-specs.h, objc/lang-specs.h: Add zero initializer for cpp_spec field to all array elements. * cp/lang-specs.h: Don't put an #ifdef inside the initializer list; set a default for CPLUSPLUS_CPP_SPEC and use it. From-SVN: r40173
2001-02-23gcc.c (record_temp_file, [...]): Make non-static, so they can be called from ↵Per Bothner1-7/+3
java/jvspec.c. * gcc.c (record_temp_file, pfatal_with_name, error): Make non-static, so they can be called from java/jvspec.c. * gcc.h (record_temp_file, pfatal_with_name, error): Declare. From-SVN: r40023
2001-02-21gcc.c: Add comment explaining how to add a command-line option.Jeffrey D. Oldham1-1/+41
2001-02-21 Jeffrey D. Oldham <oldham@codesourcery.com> * gcc.c: Add comment explaining how to add a command-line option. Add title to specs language comment. From-SVN: r39960
2001-02-21gcc.c (cc1_options): Add "-param".Jeffrey Oldham1-5/+7
2001-02-21 Jeffrey Oldham <oldham@codesourcery.com> * gcc.c (cc1_options): Add "-param". (DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise. (option_map): Likewise. * toplev.c (display_help): Add entry for "--param". (independent_decode_option): Fix typographical error. From-SVN: r39958
2001-02-19gcc.c (do_spec_1): 'n' for printing notices.Jan Hubicka1-0/+16
* gcc.c (do_spec_1): 'n' for printing notices. * i386.h (CC1_CPU_SPEC): Notice deprecated options as deprecated. From-SVN: r39889
2001-02-14gcc.c (do_spec_1): Fix off-by-one error for '%M' case.Jeffrey Oldham1-1/+1
2001-02-14 Jeffrey Oldham <oldham@codesourcery.com> * gcc.c (do_spec_1): Fix off-by-one error for '%M' case. From-SVN: r39684
2001-02-09gcc.c (cpp_options): Delete .d files on error.Neil Booth1-3/+4
* gcc.c (cpp_options): Delete .d files on error. Don't delete .o files when using the -M options. From-SVN: r39561
2001-02-07defaults.h (CPLUSPLUS_CPP_SPEC): New macro.Mark Mitchell1-11/+24
* defaults.h (CPLUSPLUS_CPP_SPEC): New macro. * gcc.c (struct compiler): Add cpp_spec field. (input_file_compiler): New variable. (do_spec_1): Allow a particular compiler to handle `%C' specially. (main): Store the current compiler in input_file_compiler. * tm.texi (CPLUSPLUS_CPP_SPEC): Document. * lang-specs.h: Use CPLUSPLUS_CPP_SPEC for the preprocessor spec. From-SVN: r39524
2001-02-02gcc.c (init_gcc_specs): New function.Mark Mitchell1-7/+42
* gcc.c (init_gcc_specs): New function. Make -shared-libgcc the default when building a shared object. (init_spec): Use it. * testsuite/lib/g++.exp: Include the directory where libgcc is located to the LD_LIBRARY_PATH list. * inovke.texi (-shared-libgcc): Document the cases in which * Make-lang.in (g++spec.o): Add DRIVER_DEFINES to the list of macros used when compiling g++spec.c. * g++spec.c (lang_specific_driver): Link with the shared libgcc by default. From-SVN: r39408
2001-01-16* gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.Tom Tromey1-1/+1
From-SVN: r39072
2001-01-16gcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c.Phil Edwards1-10/+1
2001-01-16 Phil Edwards <pme@sources.redhat.com> * gcc.c: Revert previous -fsyntax-only-related change; move to cp/g++spec.c. From-SVN: r39068
2001-01-16gcc.c: When -fsyntax-only is given, do not complain about unused libraries.Phil Edwards1-1/+10
2001-01-16 Phil Edwards <pme@sources.redhat.com> * gcc.c: When -fsyntax-only is given, do not complain about unused libraries. From-SVN: r39058
2001-01-10cppinit.c (OPT_g): Remove.Neil Booth1-1/+1
* cppinit.c (OPT_g): Remove. (cpp_handle_option): Update for removed -g3. (print_help): Update. * cpplib.h (struct cpp_options): Remove debug_output. * cppmain.c (setup_callbacks, cb_define): Update. * gcc.c (cpp_options): Translate -g3 to -dD. From-SVN: r38881
2001-01-10gcc.c (cpp_options): Set MD file name from output filename, if specified.Nathan Sidwell1-3/+44
* gcc.c (cpp_options): Set MD file name from output filename, if specified. (suffix_subst): New static variable. (do_spec): Clear it. (do_spec_1, case '.'): Handle new `%.suffix' spec. Clear it. (give_switch): Handle suffix_subst. From-SVN: r38859
2001-01-09* gcc.c (process_command): Set switches[n_switches].ordering to 0.Mark Elbrecht1-0/+1
From-SVN: r38834
2001-01-08cppinit.c (init): Rename init_library.Neil Booth1-0/+1
* cppinit.c (init): Rename init_library. (cpp_create_reader): Update. * gcc.c (cpp_options): If -o given, use it as the target of any -M options. From-SVN: r38805
2001-01-07c-lang.c (c_post_options): Call cpp_post_options.Neil Booth1-1/+1
* c-lang.c (c_post_options): Call cpp_post_options. * cppmain.c (main): Similarly. * fix-header.c (read_scan_file): Similarly. * cp/decl2.c (cxx_post_options): Similarly. * objc/objc-act.c (objc_post_options): Similarly. * cppinit.c (cpp_start_read): Move option consistency checks to cpp_post_options. Don't call init_dependency_output. If needed, add default target and main file dependency. (OPT_MD, OPT_MMD): Remove. (OPT_MF): New. (cpp_handle_option): Update for OPT_* changes. (cpp_post_options): New. (init_dependency_output): Command line -MF overrides environment variables. Don't set default target etc. Suppress output if dependencies are going to stdout. (print_help): Update. * cpplib.h (cpp_post_options): New. * gcc.c (cpp_options): Update for -MD, -MMD, -MF. From-SVN: r38777
2001-01-07Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and ↵Richard Henderson1-5/+100
NO_SHARED_LIBGCC_MULTILIB as required for the... * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and NO_SHARED_LIBGCC_MULTILIB as required for the target. * gcc.c (init_spec): Massage the existing libgcc_spec into a variant that handles a shared libgcc. (process_command): Always validate -{static,shared}-libgcc. (do_spec_1): New 'M' case. * invoke.text (Link Options): Document -{static,shared}-libgcc. From-SVN: r38762
2001-01-06cpp.texi: Update for -MQ.Neil Booth1-2/+2
* cpp.texi: Update for -MQ. * cppinit.c (cpp_create_reader): Always create pfile->deps. (cpp_cleanup): Always free pfile->deps. (initialize_dependency_output): Don't create pfile->deps. (cpp_handle_option): Similarly. (OPT_MQ): New. * gcc.c (cpp_options): Handle -MQ. (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ. * mkdeps.c (base_name): Remove. (deps_init): Don't allocate vector space until it's needed. (deps_free): Only free vectors if allocated. (deps_add_target, deps_add_dep): Update for initial allocation. (deps_add_default_target): Don't strip to the base_name. From-SVN: r38735
2001-01-05cpp.texi: Update for -MP.Neil Booth1-1/+1
* cpp.texi: Update for -MP. Clarify behaviour of -MT. * cppinit.c (initialize_dependency_output): Update. (cpp_finish): Output dummy targets for -MP. (OPT_MP): New. (cpp_handle_option): Handle -MP. Don't quote -MT options. * cpplib.h (struct cpp_options): Add deps_phony_targets. * gcc.c (cpp_options): Update to handle -MP. * mkdeps.c (deps_add_target, deps_add_default_target): Update to quote only the default target. (deps_phony_targets): Insert a preceding newline. Rename from deps_dummy_targets for consistency. * mkdeps.h: Update java: * lang.c (lang_decode_option): Change -MA to -MP. * jcf-depend.c (jcf_dependency_add_target, jcf_dependency_set_target): Update to new prototype; do quote targets. (jcf_dependency_write): Update. From-SVN: r38707
2001-01-04cpp.texi: Update for -MT.Neil Booth1-2/+2
* cpp.texi: Update for -MT. * cppinit.c (initialize_dependency_output): Add a default target if none has been given already. (no_tgt, OPT_MT): New. (cpp_handle_option): Handle -MT. Update -M etc. * cpplib.h (struct cpp_options): Remove deps_target. * gcc.c (cpp_options): Handle -MT. * mkdeps.c (struct deps): Move from mkdeps.h. (deps_calc_target): Rename deps_add_default_target. Add a default target if none has been specified already. * mkdeps.h (struct deps): Move to mkdeps.c. (deps_calc_target): Rename deps_add_default_target. From-SVN: r38681
2000-12-29toplev.c (main): Call xmalloc_set_program_name.Richard Kenner1-0/+2
* toplev.c (main): Call xmalloc_set_program_name. * gcc.c (main): Likewise. From-SVN: r38535
2000-12-17protoize.c (main): Correctly set locale categories.Philipp Thomas1-0/+7
2000-12-14 Philipp Thomas <pthomas@suse.de> * protoize.c (main): Correctly set locale categories. * gcc.c (main): Likewise. * cppmain.c (general_init): Likewise. * toplev.c (main): Likewise. * gcov.c (main): Likewise. * collect2.c (main): Likewise. From-SVN: r38331
2000-12-15gcc.c (cpp_options): Pass -fno-operator-names.Jakub Jelinek1-1/+1
* gcc.c (cpp_options): Pass -fno-operator-names. * cpplib.h (struct cpp_options): Add operator_names. * cppinit.c (cpp_create_reader): Initialize it. (initialize_builtins): If -fno-operator-names, don't add C++ alternate operator names. (COMMAND_LINE_OPTIONS): Add -fno-operator-names. (cpp_handle_option): Clear operator_names. From-SVN: r38288
2000-12-14gcc.c (cpp_options): Update to use '&'.Neil Booth1-1/+1
* gcc.c (cpp_options): Update to use '&'. (struct switchstr): Change type of validated to save space. New member 'ordering'. (handle_braces, validate_switches): Update to handle '&'. From-SVN: r38245
2000-12-14gcc.c (cpp_options): Update to use '&'.Neil Booth1-18/+43
* gcc.c (cpp_options): Update to use '&'. (struct switchstr): Change type of validated to save space. New member 'ordering'. (handle_braces, validate_switches): Update to handle '&'. From-SVN: r38244
2000-12-13* gcc.c (handle_braces): Handle %{<S*} spec correctly.Tom Tromey1-1/+9
From-SVN: r38238
2000-12-01gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and .FPP.Joseph Myers1-5/+6
* gcc.c (default_compilers): Add suffixes .mi, .cp, .ii, .FOR and .FPP. From-SVN: r37921
2000-11-28system.h (IS_DIR_SEPARATOR): Use uppercase macro name.Richard Kenner1-18/+8
* system.h (IS_DIR_SEPARATOR): Use uppercase macro name. (IS_ABSOLUTE_PATHNAME): New macro. * gcc.c (find_a_file, process_command, do_spec_1, main): Use it. From-SVN: r37818
2000-11-25c-common.c: Remove USE_CPPLIB conditional inclusions.Neil Booth1-8/+1
* c-common.c: Remove USE_CPPLIB conditional inclusions. * c-common.h: Similarly. * c-decl.c: Similarly. * c-lang.c: Similarly. * c-lex.c: Similarly. * c-parse.in: Similarly. * c-pragma.c: Similarly. * c-pragma.h: Similarly. * gcc.c: Similarly. * toplev.c: Similarly. * cp/cp-tree.h: Similarly. * cp/decl2.c: Similarly. * cp/lang-specs.h: Similarly. * cp/lex.c: Similarly. * cp/lex.h: Similarly. * cp/spew.c: Similarly. * java/lang-options.h: Similarly. * objc/lang-specs.h: Similarly. * objc/objc-act.c: Similarly. * configure.in: Remove configure option. * config.in: Regenerate. * configure: Regenerate. From-SVN: r37742
2000-11-24* gcc.c (process_command): Use F_OK, not R_OK.Richard Kenner1-1/+1
From-SVN: r37724
2000-11-22gcc.c (validate_switches): Validate multiple switches named in '|' (or) ↵Neil Booth1-9/+19
expressions in specs. * gcc.c (validate_switches): Validate multiple switches named in '|' (or) expressions in specs. (handle_braces): If more than 1 alternative in a '|' spec matches, call do_spec1 just once. From-SVN: r37667
2000-11-19gcc.c (process_command): Define 'j' variable when MODIFY_TARGET_NAME is defined.Zack Weinberg1-0/+1
* gcc.c (process_command): Define 'j' variable when MODIFY_TARGET_NAME is defined. From-SVN: r37571
2000-11-14New option --target-help.Chandra Chavva1-0/+45
From-SVN: r37456
2000-11-07* gcc.c (default_compilers) [@cpp-output]: Add -fpreprocessed.Richard Henderson1-1/+1
From-SVN: r37308
2000-11-03builtins.c (expand_builtin_strlen): Remove unused mode argument.Zack Weinberg1-1/+0
* builtins.c (expand_builtin_strlen): Remove unused mode argument. * gcc.c (process_command): Remove unused variable. * fold-const.c: Include expr.h. * recog.c: Include reload.h. * Makefile.in (recog.o, fold-const.o): Update deps. cp: * decl.c: Include tm_p.h. From-SVN: r37237
2000-11-03Use memset/memcmp instead of bzero/bcmp.Joseph Myers1-3/+3
* c-decl.c (duplicate_decls, copy_lang_decl), dwarfout.c (dwarfout_line), gcc.c (main, save_string), tree.c (init_obstacks, perm_calloc, get_identifier, maybe_get_identifier, real_value_from_int_cst, simple_cst_equal), varasm.c (assemble_name, assemble_real, immed_real_const_1, compare_constant_1, decode_rtx_const, output_constant_pool): Use strrchr () instead of rindex (). Use memcmp () instead of bcmp (). Use memcpy () instead of bcopy (). Use memset () instead of bzero (). cp: * tree.c (cp_tree_equal): Use memcmp () instead of bcmp (). From-SVN: r37228
2000-11-02* collect2.c (main, write_c_file_stat), gcc.c (translate_options,Joseph Myers1-9/+9
process_command, main), gcov.c (open_files, output_data), tlink.c (frob_extension, scan_linker_output), toplev.c (file_name_nondirectory): Use strchr () and strrchr () instead of index () and rindex (). cp: * dump.c (dequeue_and_dump), lex.c (interface_strcmp), method.c (build_overload_value), repo.c (open_repo_file), xref.c (open_xref_file): Use strchr () and strrchr () instead of index () and rindex (). f: * com.c (open_include_file, ffecom_open_include_): Use strchr () and strrchr () instead of index () and rindex (). From-SVN: r37206
2000-10-20cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.Tom Tromey1-1/+2
* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. From-SVN: r36980
2000-10-20* Use "because" instead of since in error messages.David Edelsohn1-3/+3
From-SVN: r36977
2000-10-05configure: Save configure arguments to gcc/configargs.h.Phil Edwards1-0/+5
* configure: Save configure arguments to gcc/configargs.h. * gcc.c (main): Include generated configargs.h header and use arguments in '-v' output. From-SVN: r36734
2000-10-05gcc.c: Move data on prefixes forward in file and reorganize.Richard Kenner1-107/+114
* gcc.c: Move data on prefixes forward in file and reorganize. (md_exec_prefix, md_startfile_prefix, md_startfile_prefix_1): Always define, but make null if no value. (static_specs): Add "md_exec_prefix", "md_startfile_prefix", and "md_startfile_prefix_1". (main): Check whether md_exec_prefix and the others are the null string rather than whether the macro is defined. From-SVN: r36730