1. 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
  2. 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
  3. 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
  4. 04 Mar, 2003 1 commit
  5. 02 Mar, 2003 1 commit
  6. 28 Feb, 2003 2 commits
  7. 24 Feb, 2003 1 commit
  8. 18 Feb, 2003 1 commit
  9. 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
  10. 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
  11. 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
  12. 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
  13. 10 Jan, 2003 1 commit
  14. 19 Dec, 2002 2 commits
  15. 18 Dec, 2002 1 commit
  16. 17 Dec, 2002 2 commits
  17. 16 Dec, 2002 1 commit
  18. 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
  19. 26 Nov, 2002 2 commits
  20. 22 Nov, 2002 1 commit
  21. 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
  22. 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
  23. 14 Oct, 2002 1 commit
  24. 12 Oct, 2002 1 commit
  25. 10 Oct, 2002 1 commit
  26. 08 Oct, 2002 1 commit
    • system.h (GCCBUGURL): Delete. · a976603e
      	* system.h (GCCBUGURL): Delete.
      	* version.c (bug_report_url): New.  Add commentary about
      	modifying both these strings in modified distributions.
      	* version.h: Declare bug_report_url.
      
      	* diagnostic.c, gcc.c, gcov.c, java/gjavah.c, java/jcf-dump.c,
      	java/jv-scan.c: Globally replace GCCBUGURL with bug_report_url.
      
      From-SVN: r57940
      Zack Weinberg committed
  27. 05 Oct, 2002 1 commit
    • gcc.c (set_multilib_dir): Don't access *end. · c49d2df6
      	* gcc.c (set_multilib_dir): Don't access *end.
      	Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
      	(print_multilib_info): Don't show paths starting with ".:".
      	* genmultilib: Add new option, "yes" if multilibs are enabled.
      	Update comments.  If multilibs not enabled, print .:${osdirout}
      	for each directory.  If multilibs are enabled, always print
      	${dirout}:${osdirout}, even if the two are the same.
      	* Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
      	Pass all MULTILIB_* variables to genmultilib even if
      	--disable-multilib but MULTILIB_OSDIRNAMES is not empty.
      
      From-SVN: r57846
      Jakub Jelinek committed
  28. 03 Oct, 2002 1 commit
    • gcc.c (print_multi_os_directory): New variable. · 5bbcd587
      	* gcc.c (print_multi_os_directory): New variable.
      	(option_map): Support --print-multi-os-directory.
      	(struct prefix_list): Add os_multilib field.
      	(multilib_os_dir): New variable.
      	(static_specs): Add multilib_options.
      	(find_a_file): Add multilib argument.  Search in GCC or OS multilib
      	subdirs if non-zero.
      	(read_specs, execute): Update callers.
      	(find_file): Likewise.  Don't prefix name with multilib_dir, instead
      	pass 1 as multilib option.
      	(display_help): Include --print-multi-os-directory.
      	(add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
      	(process_command): Update callers.  Handle --print-multi-os-directory.
      	(do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
      	set.
      	(main): Update find_a_file and add_prefix callers.
      	Handle print_multi_os_directory.
      	(struct mdswitchstr): New.
      	(mdswitches, n_mdswitches): New variables.
      	(used_arg): Add MULTILIB_DEFAULT switches too if they are not
      	present on the command line nor their mutually incompatible
      	switches.
      	(default_arg): Optimize.
      	(set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
      	array.
      	(print_multilib_info): Only print GCC multilib dir name, not OS
      	multilib dirname.
      	* genmultilib: Add osdirnames parameter.  Output multilib_options
      	variable.  If osdirnames is specified, output dirnames as
      	dirname:osdirname.
      	* mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
      	and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
      	to compute libgcc_s soname and install path.
      	* Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
      	SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
      	(s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
      	argument.
      
      	* config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
      	(SHLIB_SLIBDIR_SUFFIXES): Remove.
      	* config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
      	ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
      	(STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
      	and -m64.
      	* config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
      	(SHLIB_SLIBDIR_SUFFIXES): Remove.
      	* config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
      	(STARTFILE_ARCH_SPEC): Remove.
      	* config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
      	(SHLIB_SLIBDIR_SUFFIXES): Remove.
      	* config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
      	* config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
      	(SHLIB_SLIBDIR_SUFFIXES): Remove.
      
      From-SVN: r57786
      Jakub Jelinek committed
  29. 01 Oct, 2002 1 commit
  30. 22 Sep, 2002 1 commit
    • dbxout.c: Follow spelling conventions. · cc2902df
      	* dbxout.c: Follow spelling conventions.
      	* defaults.h: Likewise.
      	* df.c: Likewise.
      	* diagnostic.h: Likewise.
      	* doloop.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* flags.h: Likewise.
      	* flow.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genconfig.c: Likewise.
      	* genrecog.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc.h: Likewise.
      	* global.c: Likewise.
      	* gthr-win32.h: Likewise.
      	* integrate.c: Likewise.
      	* jump.c: Likewise.
      	* langhooks.c: Likewise.
      	* langhooks.h: Likewise.
      	* line-map.h: Likewise.
      	* local-alloc.c: Likewise.
      	* longlong.h: Likewise.
      	* loop.c: Likewise.
      	* loop.h: Likewise.
      
      From-SVN: r57406
      Kazu Hirata committed
  31. 10 Aug, 2002 1 commit
    • c-opts.c (set_std_cxx98, [...]): New. · f749a36b
      	* c-opts.c (set_std_cxx98, set_std_c89): New.
      	(COMMAND_LINE_OPTIONS): Move more from cppinit.c.
      	(c_common_decode_option): Handle new switches from cppinit.c.
      	Add -std=gnu++98.
      	* cppinit.c (set_lang): Rename cpp_set_lang.  Export.
      	(no_arg, no_num): Remove.
      	(COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
      	switches apart from -lang-objc and lang-asm.
      	(cpp_handle_option): Similarly.
      	* cpplib.h (cpp_set_lang): New.
      	* doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
      	-std=gnu++98.
      	* objc/lang-specs.h: Remove -ansi.
      cp:
      	* lang-specs.h: Remove -ansi.
      
      From-SVN: r56185
      Neil Booth committed
  32. 09 Aug, 2002 1 commit
    • Makefile.in (c-opts.o): Update · 4b7091eb
      	* Makefile.in (c-opts.o): Update
      	* c-opts.c: Include intl.h.
      	(print_help): Move from cppinit.c.  Remove unused options.
      	(COMMAND_LINE_OPTIONS): Move more from cppinit.c.
      	(missing_arg): Complain for switches without an argument.
      	(c_common_decode_option): Reject missing joined arguments.
      	Handle new switches from cppinit.c.
      	* cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
      	(cpp_handle_option): Similarly.
      	(print_help): Moved to c-opts.c.
      	* cpplib.h (struct cpp_options): Remove help_only.
      	* gcc.c (cpp_unique_options): Remove -$.
      	* doc/cppopts.texi: Undocument -h.
      
      From-SVN: r56155
      Neil Booth committed
  33. 04 Aug, 2002 1 commit
    • gcc.c (cc1_options): Pass output file as auxbase when appropriate. · ea67fe71
      	* gcc.c (cc1_options): Pass output file as auxbase when
      	appropriate.
      	* profile.c (init_branch_prob): FILENAME has already had ending
      	stripped.
      	* final.c (end_final): Likewise.
      	* toplev.c (aux_base_name): New global.
      	(compile_file): Pass aux_base_name to init init_branch_prob and
      	end_final.
      	(independent_decode_option, case 'a'): New auxinfo options.
      	(case 'd'): Protect against mising basename.
      	(do_compile): Initialize aux_base_name.
      	* toplev.h (aux_base_name): New global.
      	* doc/invoke.texi: Adjust documentation.
      
      From-SVN: r56025
      Nathan Sidwell committed
  34. 01 Aug, 2002 1 commit
  35. 30 Jul, 2002 1 commit