1. 23 Jun, 2003 1 commit
    • basic-block.h: Fix comment formatting. · 71c0e7fc
      	* basic-block.h: Fix comment formatting.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-format.c: Likewise.
      	* coverage.c: Likewise.
      	* cpplib.h: Likewise.
      	* cpppch.c: Likewise.
      	* dbxout.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* profile.c: Likewise.
      	* real.h: Likewise.
      	* sched-deps.c: Likewise.
      
      From-SVN: r68369
      Kazu Hirata committed
  2. 19 Jun, 2003 1 commit
    • gcc.c (target_sysroot_suffix, [...]): New. · e7f13528
      * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
      SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
      sysroot_hdrs_suffix_spec): New.
      (static_specs): Initialize new variables.
      (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
      * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
      New macros.
      
      From-SVN: r68223
      Graeme Peterson committed
  3. 16 Jun, 2003 1 commit
    • decl.c, [...]: Don't use the PTR macro. · fad205ff
      cp:
      	* cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
      	macro.
      
      gcc:
      	* bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
      	config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
      	dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
      	function.c, gcc.c, genoutput.c, gensupport.c, global.c,
      	haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
      	loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
      	read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
      	stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
      	the PTR macro.
      
      From-SVN: r68043
      Kaveh R. Ghazi committed
  4. 04 Jun, 2003 1 commit
    • config.gcc: Reorganize --with-cpu logic. · 7816bea0
      	* config.gcc: Reorganize --with-cpu logic.  Set
      	configure_default_options according to the default CPU, --with-cpu,
      	--with-arch, --with-tune, --with-schedule, --with-abi, and
      	--with-float.  Check for legal values of various options.
      	* configure.in: Define configure_default_options in configargs.h.
      	* configure: Regenerated.
      	* config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
      	(TARGET_DEFAULT_FLOAT_P): New macros.
      	* gcc.c (do_option_spec): New function.
      	(struct default_spec, option_default_specs): New.
      	(main): Call do_option_spec.
      	* config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
      	config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
      	config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
      
      	* doc/install.texi: Update --with-cpu documentation.  Mention
      	--with-arch, --with-schedule, --with-tune, --with-abi, and
      	--with-float.
      	* doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
      
      From-SVN: r67457
      Daniel Jacobowitz committed
  5. 03 Jun, 2003 1 commit
    • configure.in (HAVE_LD_PIE): Check for ld -pie. · 24a4dd31
      	* configure.in (HAVE_LD_PIE): Check for ld -pie.
      	* config.in: Rebuilt.
      	* configure: Rebuilt.
      	* toplev.c (flag_pie, flag_shlib): New variables.
      	(f_options): Add -fpie and -fPIE.
      	(parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
      	Set flag_shlib if flag_pic and not -fpie/-fPIE.
      	* flags.h (flag_pic, flag_shlib): Add.
      	* varasm.c (default_binds_local_p): Use flag_shlib instead of
      	flag_pic.
      	* gcc.c (LINK_PIE_SPEC): Define.
      	(LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
      	(option_map): Add --pie -> -pie mapping.
      	* config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
      	and -fPIE the same way as -fPIC.
      	* config/openbsd.h (ASM_SPEC): Likewise.
      	* config/frv/frv.h (ASM_SPEC): Likewise.
      	* config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
      	* config/arm/semi.h (ASM_SPEC): Likewise.
      	* config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
      	* config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
      	* config/i386/beos-elf.h (CC1_SPEC): Likewise.
      	* config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
      	* config/m68k/linux.h (CPP_SPEC): Likewise.
      	* config/m68k/netbsd.h (ASM_SPEC): Likewise.
      	* config/m68k/openbsd.h (ASM_SPEC): Likewise.
      	* config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
      	* config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
      	* config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
      	* config/pa/pa-linux.h (CPP_SPEC): Likewise.
      	* config/netbsd-aout.h (ASM_SPEC): Likewise.
      	* config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
      	* config/rs6000/vxworks.h (CPP_SPEC): Likewise.
      	* config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
      	* config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
      	* config/sparc/sparc.h (ASM_SPEC): Likewise.
      	* config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
      	* config/sparc/sysv4.h (ASM_SPEC): Likewise.
      	* config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
      	* config/sparc/openbsd64.h (ASM_SPEC): Likewise.
      	* config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
      	* config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
      	Simplify.
      	* config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
      	* doc/invoke.texi: Document -pie, -fpie and -fPIE options.
      
      From-SVN: r67359
      Jakub Jelinek committed
  6. 23 May, 2003 1 commit
  7. 17 May, 2003 2 commits
    • builtins.c (validate_arglist): Eliminate libiberty VA_ macros, always use stdarg. · e34d07f2
      gcc:
      	* builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
      	always use stdarg.
      	* c-errors.c (pedwarn_c99): Likewise.
      	* c-format.c (status_warning): Likewise.
      	* c-semantics.c (build_stmt): Likewise.
      	* calls.c (emit_library_call, emit_library_call_value): Likewise.
      	* collect2.c (notice, fatal_perror, fatal, error): Likewise.
      	* cpperror.c (cpp_error, cpp_error_with_line): Likewise.
      	* diagnostic.c (build_message_string, output_printf,
      	output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
      	fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
      	error_with_decl, fnotice): Likewise.
      	* dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
      	dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
      	dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
      	dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
      	dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
      	dw2_asm_output_encoded_addr_rtx): Likewise.
      	* emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
      	* errors.c (warning, error, fatal, internal_error): Likewise.
      	* final.c (output_operand_lossage, asm_fprintf): Likewise.
      	* fix-header.c (fatal): Likewise.
      	* gcc.c (fatal, error, notice): Likewise.
      	* gcov.c (fnotice): Likewise.
      	* genattrtab.c (attr_rtx, attr_printf): Likewise.
      	* gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
      	* gensupport.c (message_with_line): Likewise.
      	* mips-tfile.c (fatal, error): Likewise.
      	* protoize.c (notice): Likewise.
      	* ra-debug.c (ra_debug_msg): Likewise.
      	* read-rtl.c (fatal_with_file_and_line): Likewise.
      	* rtl-error.c (error_for_asm, warning_for_asm): Likewise.
      	* tree.c (build, build_nt, build_function_type_list): Likewise.
      
      cp:
      	* error.c (cp_error_at, cp_warning_at, cp_pedwarn_at): Eliminate
      	libiberty VA_ macros, always use stdarg.
      	* rtti.c (create_pseudo_type_info): Likewise.
      	* tree.c (build_min_nt, build_min): Likewise.
      
      From-SVN: r66919
      Kaveh R. Ghazi committed
    • defaults.h (TARGET_CPU_CPP_BUILTINS, [...]): Remove. · c08f71aa
      	* defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
      	* gcc.c (cpp_predefines): Remove.
      	(cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
      	(static_specs): Remove predefines.
      	* system.h: Poison CPP_PREDEFINES.
      	* config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
      	config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
      
      From-SVN: r66917
      Neil Booth committed
  8. 07 May, 2003 1 commit
  9. 03 May, 2003 1 commit
    • c-decl.c (pending_invalid_xref_file): Remove. · 070588f0
      	* c-decl.c (pending_invalid_xref_file): Remove.
      	(pending_invalid_xref_line): Remove.
      	(pending_invalid_xref_location): New.
      	(lookup_label): Use location_t and input_location directly.
      	(lookup_tag): Likewise.
      	(pending_xref_error): Likewise.
      	(c_expand_body_1): Likewise.
      	* c-common.c (x_expand_start_cond): Likewise.
      	* c-semantics.c (genrtl_for_stmt): Likewise.
      	(find_reachable_label): Likewise.
      	* expr.c (expand_expr): Likewise.
      	* integrate.c (output_inline_function): Likewise.
      	* tree-inline.c (find_alloca_call): Likewise.
      	(find_builtin_longjmp_call): Likewise.
      	* gcc.c (input_filename): Make static.
      
      From-SVN: r66425
      Nathan Sidwell committed
  10. 29 Apr, 2003 1 commit
    • c-pragma.c (maybe_apply_renaming_pragma): Fix typo. · 8e854b76
      	* c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
      	* gcc.c (display_help): Likewise.
      	* toplev.c (f_options): Likewise.
      	* params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
      	* config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
      	* config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
      	* config/s390/s390.h (TARGET_SWITCHES): Likewise.
      	* config/v850/v850.h (TARGET_SWITCHES): Likewise.
      
      	* call.c (build_operator_new_call): Fix typo.
      	* lang-options.h: Likewise.
      
      From-SVN: r66228
      Kriang Lerdsuwanakij committed
  11. 11 Mar, 2003 2 commits
    • Makefile.in: Update. · cb60f38d
      	* Makefile.in: Update.
      	* c-common.c: Don't include real.h or except.h.
      	(REGISTER_PREFIX): Remove.
      	(builtin_define_std, builtin_define_with_value,
      	builtin_define_with_int_value, builtin_define_with_hex_fp_value,
      	builtin_define_type_max, builtin_define_type_precision,
      	builtin_define_float_constants): Move to c-cppbuiltin.c.
      	(c_stddef_cpp_builtins): New.
      	* c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
      	* c-cppbuiltin.c: New, extracted from c-common.c.
      	(define__GNUC__): New.
      	* cppspec.c (lang_specific_driver): Remove support of -no-gcc.
      	* gcc.c: Remove support of %v1, %v2 and %v3 specs.
      	(cpp_unique_options): Don't support no-gcc.
      	(do_spec_1): Remove support of version specs.
      	* doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
      	* doc/passes.texi: Update.
      	* doc/tm.texi: Update.
      cp:
      	* Make-lang.in (CXX_C_OBJS): Update.
      	* lang-specs.h: Don't define __GNUG__ here.
      
      From-SVN: r64162
      Neil Booth committed
    • Remove extra bits I included, by mistake, in my previous check-in · 8c124730
      for PR/9394 fix.
      
      From-SVN: r64156
      Devang Patel committed
  12. 10 Mar, 2003 1 commit
    • gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove. · 87d7d780
      PR/9394
              * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
              (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
              * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
              (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
              * cppspec.c (DEFAULT_SWTICH_TAKES_ARG): Remove.
              (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
      
      cp
              * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWITCH_TAKES_ARG.
      
      testsuite
      
              * g++.dg/cpp/c++_cmd_1.C: New test.
              * g++.dg/cpp/c++_cmd_1.h: New file.
      
      From-SVN: r64144
      Devang Patel committed
  13. 09 Mar, 2003 1 commit
    • gcc.c (do_spec_1): Revert 2003-02-24 patch. · 6544fbcb
      	* gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
      	pending argument upon return from handle_braces here.
      	(do_spec_2): Instead handle it upon return from do_spec_1 here.
      
      Co-Authored-By: Joern Rennecke <joern.rennecke@superh.com>
      
      From-SVN: r64047
      Roger Sayle committed
  14. 04 Mar, 2003 1 commit
  15. 02 Mar, 2003 1 commit
  16. 28 Feb, 2003 2 commits
  17. 24 Feb, 2003 1 commit
  18. 18 Feb, 2003 1 commit
  19. 13 Feb, 2003 1 commit
    • Makefile.in (PREPROCESSOR_DEFINES): Add @TARGET_SYSTEM_ROOT_DEFINE@. · 047d636f
      	* Makefile.in (PREPROCESSOR_DEFINES): Add
      	@TARGET_SYSTEM_ROOT_DEFINE@.
      	* configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
      	is specified or if building a cross compiler.
      	(TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
      	if the sysroot is under $exec_prefix.
      	* configure: Regenerated.
      	* cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
      	defined.
      	(struct default_include): Add add_sysroot field.
      	(cpp_SYSROOT): Declare.
      	* cppdefault.c (cpp_include_defaults): Fill in add_sysroot
      	field.
      	(cpp_SYSROOT): New variable.
      	* cppinit.c (cpp_create_reader): Initialize
      	CPP_OPTION (pfile, sysroot).
      	(init_standard_includes): Handle add_sysroot.  Do not
      	add unrelocated copies of relocated directories.
      	(COMMAND_LINE_OPTIONS): Add -isysroot.
      	(cpp_handle_option): Handle -isysroot.
      	* cpplib.h (struct cpp_options): Add sysroot member.
      	* gcc.c (The Specs Language): Update description of %I.
      	(target_system_root_changed): New variable.
      	(process_command): Conditionalize make_relative_prefix call
      	on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
      	target_system_root_changed.
      	(do_spec_1): Add -isysroot to %I.
      	* doc/invoke.texi (Spec Files): Update description of %I.
      	* doc/install.texi (--with-sysroot): Update comment about
      	relocation.
      
      From-SVN: r62853
      Daniel Jacobowitz committed
  20. 27 Jan, 2003 1 commit
    • Makefile.in (LIB2FUNCS_ST): Remove _gcov. · 23af32e6
      	* Makefile.in (LIB2FUNCS_ST): Remove _gcov.
      	(LIBGCOV): New variable.
      	(libgcc.mk): Add LIBGCOV.
      	(LIBGCC_DEPS): Add libgcov.c.
      	(libgcov.a): New target.
      	(clean): Remove libgcov.a.
      	(install-libgcc): Do libgcov too.
      	(stage1-start, stage2-start, stage3-start, stage4-start): Deal
      	with libgcov.a.
      	* libgcc2.c (L_gcov): Move into ...
      	* libgcov.c: ... here. New file.
      	* mklibgcc.in: Add libgcov rules.
      	* gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
      
      	* doc/invoke.texi (profile-arcs, test-coverage): Update and
      	clarify.
      
      	* profile.c (index_counts_file): Remove duplicate check for open file.
      
      From-SVN: r61905
      Nathan Sidwell committed
  21. 19 Jan, 2003 1 commit
    • config.gcc (mips64*-*-linux*): Added. · 3bd6d4c4
      * config.gcc (mips64*-*-linux*): Added.
      * config/mips/linux64.h, config/mips/t-linux64: New file.
      * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
      * config/mips/mips.c (override_options): Use it.
      * config/mips/mips.h (TARGET_SWITCHES): Added...
      (SUBTARGET_TARGET_SWITCHES): New, empty by default.
      * Makefile.in (SPECS): New.
      (STAGESTUFF, specs, mostlyclean, install-common): Use it.
      * gcc.c (process_command): Move self-spec processing past spec
      file loading.
      * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
      * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
      CRTSTUFF_T_CFLAGS.
      (SPECS): Document.
      * doc/invoke.texi (-mabi-fake-default): Document.
      
      From-SVN: r61481
      Alexandre Oliva committed
  22. 17 Jan, 2003 1 commit
    • et-forest.c: Fix comment typos. · fbe5a4a6
      	* et-forest.c: Fix comment typos.
      	* et-forest.h: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* flags.h: Likewise.
      	* flow.c: Likewise.
      	* gcc.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* gengtype.c: Likewise.
      	* genrecog.c: Likewise.
      	* global.c: Likewise.
      	* gthr-rtems.h: Likewise.
      
      From-SVN: r61443
      Kazu Hirata committed
  23. 10 Jan, 2003 1 commit
  24. 19 Dec, 2002 2 commits
  25. 18 Dec, 2002 1 commit
  26. 17 Dec, 2002 2 commits
  27. 16 Dec, 2002 1 commit
  28. 13 Dec, 2002 1 commit
    • c-decl.c: Fix a comment typo. · 09da1532
      	* c-decl.c: Fix a comment typo.
      	* cfg.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* c-typeck.c: Likewise.
      	* dominance.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* final.c: Likewise.
      	* flow.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* genautomata.c: Likewise.
      	* integrate.c: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      	* output.h: Likewise.
      	* profile.c: Likewise.
      	* ra.h: Likewise.
      	* reload1.c: Likewise.
      	* reload.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* stmt.c: Likewise.
      	* tree.h: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r60085
      Kazu Hirata committed
  29. 26 Nov, 2002 2 commits
  30. 22 Nov, 2002 1 commit
  31. 20 Nov, 2002 1 commit
    • Makefile.in (RUN_GEN, [...]): New variables. · 414d23ae
      	* Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
      	(DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
      	(executing gencheck, genconfigs, genconditions, genflags,
      	gencodes, genconstants, genemit, genrecog, genopinit, genextract,
      	genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
      	gengtype, genprotos): Prepend $(RUN_GEN).
      	* configure.in: Move host compiler tests before --enable-checking
      	tests.
      	(--enable-checking=valgrind): New.
      	* config.in, configure: Regenerate.
      	* cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
      	Define as empty.
      	(read_include_file): When doing the mmap+1 trick,
      	valgrind-annotate the byte after the mmap:ed area as readable.
      	(purge_cache): Remove above annotation.
      	* gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
      	VALGRIND_PATH -q to each command.
      
      From-SVN: r59309
      Hans-Peter Nilsson committed
  32. 19 Nov, 2002 1 commit
    • gcc.c (The Specs Language): Document spec functions. · f3226a90
      * gcc.c (The Specs Language): Document spec functions.
      (static_spec_functions, lookup_spec_function)
      (eval_spec_function, handle_spec_function)
      (if_exists_spec_function, alloc_args): New.
      (execute): Abort if processing_spec_function is true.
      (do_spec_1): Hand off spec to handle_spec_function if %:
      is encountered.  If processing_spec_function is true,
      end any pending argument when the end of the string is reached.
      (main): Use alloc_args to allocate the initial argument vector.
      * gcc.h (struct spec_function): New.
      (lang_specific_spec_functions): New extern.
      
      * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
      (ENDFILE_SPEC): Add if-exists(crtn%O%s).
      * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
      
      * doc/invoke.texi: Document spec functions.
      
      * cppspec.c (lang_specific_spec_functions): New.
      * gccspec.c: Likewise.
      
      * g++spec.c (lang_specific_spec_functions): New.
      
      * g77spec.c (lang_specific_spec_functions): New.
      
      * jvspec.c (lang_specific_spec_functions): New.
      
      From-SVN: r59241
      Jason Thorpe committed
  33. 14 Oct, 2002 1 commit
  34. 12 Oct, 2002 1 commit