aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
AgeCommit message (Collapse)AuthorFilesLines
2001-06-03Minor whitespace editsRichard Kenner1-1/+2
From-SVN: r42840
2001-05-31gcc.c (init_gcc_specs): When linking against libgcc_s.so, also link against ↵Richard Henderson1-3/+3
libgcc.a. * gcc.c (init_gcc_specs): When linking against libgcc_s.so, also link against libgcc.a. From-SVN: r42757
2001-05-30gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix, use it in the ↵Tom Tromey1-2/+9
new association. * gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix, use it in the new association. From-SVN: r42728
2001-05-18Changes needed for java/jvspec.cPer Bothner1-2/+2
Changes needed for java/jvspec.c * gcc.h (n_infiles, outfiles): Add declarations. * gcc.c (n_infiles, outfiles): Mske no longer static. From-SVN: r42269
2001-05-16gcc.c (give_switch): Don't write before start of string.Jakub Jelinek1-5/+5
* gcc.c (give_switch): Don't write before start of string. Always append suffix. Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r42152
2001-05-14configure.in (gcc_cv_as_eh_frame): New test.Richard Henderson1-0/+9
* configure.in (gcc_cv_as_eh_frame): New test. * config.in, configure: Rebuild. * gcc.c (init_spec): Honor USE_AS_TRADITIONAL_FORMAT. From-SVN: r42092
2001-05-13tm.texi (THREAD_MODEL_SPEC): Document it.Alexandre Oliva1-1/+14
* tm.texi (THREAD_MODEL_SPEC): Document it. * gcc.c (main): Use it. * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Define it. * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Likewise. From-SVN: r42048
2001-05-05gcc.c (cpp_options): Define __NO_INLINE__ unless we are honoring "inline" ↵Jakub Jelinek1-1/+1
keyword. * gcc.c (cpp_options): Define __NO_INLINE__ unless we are honoring "inline" keyword. * cpp.texi (__NO_INLINE): Document it. From-SVN: r41866
2001-05-04alpha.h: NULL_PTR -> NULL.Kaveh R. Ghazi1-24/+24
* alpha.h: NULL_PTR -> NULL. * arm.c: Likewise. * arm.h: Likewise. * avr.h: Likewise. * c4x.c: Likewise. * c4x.h: Likewise. * i386.c: Likewise. * i386.md: Likewise. * i860.c: Likewise. * ia64.c: Likewise. * m68hc11.h: Likewise. * rs6000.h: Likewise. * sh.c: Likewise. * sh.h: Likewise. * sparc.h: Likewise. * v850.c: Likewise. * expr.c: Likewise. * final.c: Likewise. * gcc.c: Likewise. * recog.c: Likewise. From-SVN: r41831
2001-05-01bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".Kaveh R. Ghazi1-81/+80
* bitmap.c: Change NULL_PTR to NULL or "(rtx*)0". * c-common.c: Likewise. * c-decl.c: Likewise. * combine.c: Likewise. * rs6000.c: Likewise. * except.c: Likewise. * explow.c: Likewise. * expr.c: Likewise. * fold-const.c: Likewise. * function.c: Likewise. * gcc.c: Likewise. * gcse.c: Likewise. * integrate.c: Likewise. * loop.c: Likewise. * objc/objc-act.c: Likewise. * recog.c: Likewise. * reg-stack.c: Likewise. * reload.c: Likewise. * reload1.c: Likewise. * simplify-rtx.c: Likewise. * stmt.c: Likewise. * varasm.c: Likewise. From-SVN: r41722
2001-04-29c-aux-info.c: NULL_PTR->NULL in calls to `concat'.Kaveh R. Ghazi1-24/+23
* c-aux-info.c: NULL_PTR->NULL in calls to `concat'. * gcc.c: Likewise. * prefix.c: Likewise. From-SVN: r41675
2001-04-28re PR c/2347 (gcc does not accept "-l m" as POSIX permits (wants -lm))Jens Schweikhardt1-0/+14
* gcc.c (process_command): Allow -l lib in addition to -llib for POSIX compliance. This fixes PR c/2347. * invoke.texi: Update section on Link Options accordingly. From-SVN: r41655
2001-04-26configure.in (configargs.h): Define thread_model.Alexandre Oliva1-0/+2
* configure.in (configargs.h): Define thread_model. * configure: Rebuilt. * gcc.c (main): Print it with -v. From-SVN: r41569
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