1. 20 Feb, 2004 1 commit
    • gcc.c (process_command): Allow translation of the copyright symbol but not the… · 9f76f909
      gcc.c (process_command): Allow translation of the copyright symbol but not the rest of the copyright message.
      
      gcc/
      	* gcc.c (process_command): Allow translation of the copyright
      	symbol but not the rest of the copyright message.
      	* gcov.c (print_version): Likewise.  Allow translation of the
      	message about warranty.
      
      gcc/f/
      	* Make-lang.in (g77spec.o): Depend on intl.h.
      	* g77spec.c: Include intl.h.
      	(lang_specific_driver): Allow translation of the copyright
      	symbol but not the rest of the copyright message.  Allow
      	translation of the message about warranty.
      
      From-SVN: r78152
      Kazu Hirata committed
  2. 19 Feb, 2004 1 commit
    • gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined... · 328163dc
      	* gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
      	LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
      	(init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
      	defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
      	spec string.
      	* doc/tm.texi (REAL_LIBGCC_SPEC): Document.
      
      From-SVN: r78072
      Matt Austern committed
  3. 24 Jan, 2004 1 commit
  4. 21 Jan, 2004 1 commit
    • alias.c, [...]: Update copyright. · d9221e01
      	* alias.c, basic-block.h, c-common.c, c-common.h,
      	c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
      	calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
      	combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
      	cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
      	defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
      	expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
      	genautomata.c, genconditions.c, genemit.c, genflags.c,
      	gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
      	ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
      	langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
      	line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
      	ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
      	rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
      	target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
      	unwind.h, varray.c, varray.h: Update copyright.
      
      From-SVN: r76302
      Kazu Hirata committed
  5. 09 Jan, 2004 1 commit
  6. 31 Dec, 2003 1 commit
  7. 23 Dec, 2003 1 commit
    • common.opt (fprofile-generate,fprofile-use): Add. · a8a5f53a
      	* common.opt (fprofile-generate,fprofile-use): Add.
      	* gcc.c (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov
      	* opts.c (profile_arc_flag_set, flag_profile_values_set,
      	flag_unroll_loops_set, flag_tracer_set,
      	flag_value_profile_transformations_set,
      	flag_peel_loops_set): New static variables.
      	(common_handle_option): Deal with -fprofile-generate/-fprofile-use
      	* invoke.texi (-fprofile-generate, -fprofile-use): Describe.
      
      From-SVN: r74976
      Jan Hubicka committed
  8. 20 Dec, 2003 1 commit
    • re PR other/7956 (unreadable error on -m64 with --disable-multilib) · 1713a69f
      	PR other/7956
      	* genmultilib: New variable disable_multilib.  Set it to 'yes'
      	if enable_multilib was set to 'no'.  Emit DISABLE_MULTILIB
      	if disable_multilib was set to 'yes'.
      	* gcc.c: Include multilib.h before tm.h.
      	* config/sparc/sol2-bi.h (LINK_ARCH_SPEC): Emit an error
      	message for multiarch options if DISABLE_MULTILIB is set.
      	* config/sparc/sol2-gld-bi.h (LINK_ARCH_SPEC): Likewise.
      
      From-SVN: r74875
      Eric Botcazou committed
  9. 13 Dec, 2003 1 commit
    • c-typeck.c: Fix comment typos. · ba228239
      	* c-typeck.c: Fix comment typos.
      	* calls.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cgraph.h: Likewise.
      	* dwarfout.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* expr.c: Likewise.
      	* flow.c: Likewise.
      	* function.c: Likewise.
      	* gcc.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ifcvt.c: Likewise.
      	* local-alloc.c: Likewise.
      	* predict.c: Likewise.
      	* pretty-print.c: Likewise.
      	* profile.c: Likewise.
      	* ra-colorize.c: Likewise.
      	* sched-vis.c: Likewise.
      	* stor-layout.c: Likewise.
      
      From-SVN: r74594
      Kazu Hirata committed
  10. 06 Dec, 2003 1 commit
  11. 04 Dec, 2003 1 commit
    • libunwind cleanup · aedec8dd
      libunwind cleanup
      * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
      * g++spec.c (lang_specific_driver): Delete USE_LIBUNWIND_EXCEPTIONS
      support.
      
      From-SVN: r74273
      James E Wilson committed
  12. 30 Nov, 2003 1 commit
  13. 23 Oct, 2003 1 commit
  14. 07 Oct, 2003 1 commit
  15. 04 Sep, 2003 1 commit
  16. 28 Aug, 2003 1 commit
  17. 05 Aug, 2003 1 commit
    • c.opt: Introduce -fworking-directory. · b20d9f0c
      * c.opt: Introduce -fworking-directory.
      * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
      * c-common.h (flag_working_directory): Declare.
      * c-common.c (flag_working_directory): Define.
      * c-opts.c (c_common_handle_options): Set it.
      (sanitize_cpp_opts): Set...
      * cpplib.h (struct cpp_options): ... working_directory option.
      (struct cpp_callbacks): Add dir_change.
      * cppinit.c (read_original_filename): Call...
      (read_original_directory): New.  Look for # 1 "directory//"
      and process it.
      (cpp_read_main_file): Call dir_change callback if working_directory
      option is set.
      * gcc.c (cpp_unique_options): Pass -g*.
      * c-lex.c (cb_dir_change): New.
      (init_c_lex): Set dir_change callback.
      * toplev.c (src_pwd): New static variable.
      (set_src_pwd, get_src_pwd): New functions.
      * toplev.h (get_src_pwd, set_src_pwd): Declare.
      * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
      * dwarf2out.c (gen_compile_unit_die): Likewise.
      * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
      
      From-SVN: r70189
      Alexandre Oliva committed
  18. 31 Jul, 2003 1 commit
    • Makefile.tpl (libsubdir): Use gcc instead of gcc-lib. · a8ee6e2d
      2003-07-31  Geoffrey Keating  <geoffk@apple.com>
      
      	* Makefile.tpl (libsubdir): Use gcc instead of gcc-lib.
      	* Makefine.in: Update.
      
      Index: gcc/ChangeLog
      2003-07-31  Geoffrey Keating  <geoffk@apple.com>
      
      	* Makefile.in (libexecdir): New.
      	(libsubdir): Use gcc instead of gcc-lib.
      	(libexecsubdir): New.
      	(ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
      	(DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
      	gcc-lib.
      	(installdirs): Make libexecsubdir.
      	(install-common): Put executables in libexecsubdir.
      	(itoolsdir): Use libexecsubdir.
      	(itoolsdatadir): New.
      	(install-mkheaders): Separate data files and executables.
      	(install-collect2): Put executables in libexecsubdir.
      	(uninstall): Remove libexecsubdir.
      	* mkheaders.in: Update for new arrangement of files.
      	(libexecdir): New.
      	(libexecsubdir): New.
      	(itoolsdir): Use libexecsubdir.
      	(itoolsdatadir): New.
      	* gcc.c (gcc_libexec_prefix): New.
      	(STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
      	(standard_exec_prefix_1): Use libexec.
      	(standard_exec_prefix_2): New.
      	(standard_libexec_prefix): New.
      	(process_command): Update for new arrangement of files.  Compute
      	gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
      
      From-SVN: r70024
      Geoffrey Keating committed
  19. 22 Jul, 2003 1 commit
    • alias.c: Fix comment formatting. · 938d968e
      	* alias.c: Fix comment formatting.
      	* c-common.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-opts.c: Likewise.
      	* combine.c: Likewise.
      	* cpplib.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dojump.c: Likewise.
      	* final.c: Likewise.
      	* fold-const.c: Likewise.
      	* gcc.c: Likewise.
      	* gcse.c: Likewise.
      	* ggc-page.c: Likewise.
      	* jump.c: Likewise.
      	* loop.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* recog.c: Likewise.
      	* regclass.c: Likewise.
      	* regmove.c: Likewise.
      	* tree.c: Likewise.
      	* tree.h: Likewise.
      
      From-SVN: r69689
      Kazu Hirata committed
  20. 19 Jul, 2003 1 commit
    • alias.c [...]: Remove unnecessary casts. · 703ad42b
      	* alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
      	c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
      	c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
      	collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
      	cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
      	cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
      	dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
      	fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
      	gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
      	genemit.c genextract.c genoutput.c genrecog.c gensupport.c
      	ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
      	integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
      	loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
      	postreload.c prefix.c print-tree.c protoize.c ra-build.c
      	ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
      	regmove.c regrename.c reload.c reload1.c reorg.c resource.c
      	sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
      	simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
      	tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
      	varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
      	casts.
      
      From-SVN: r69587
      Kaveh R. Ghazi committed
  21. 11 Jul, 2003 1 commit
    • Index: ChangeLog · d1bd0ded
      2003-07-10  Geoffrey Keating  <geoffk@apple.com>
      
      	* c-decl.c (finish_decl): Handle 'used' here...
      	* cgraphunit.c (cgraph_finalize_function): ... and here ...
      	* c-common.c: (handle_used_attribute): ... not here.
      
      	* configure.in (onstep): Support --enable-intermodule.
      	* Makefile.in (OBJS-common): New.
      	(OBJS-md): New.
      	(OBJS-archive): New.
      	(OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
      	(OBJS-onestep): New.
      	(libbackend.a): Support @onestep@.
      	(libbackend.o): New.
      	* configure: Regenerate.
      
      	* c-common.h (c_reset_state): New prototype.
      	(c_parse_file): New prototype.
      	(finish_file): Move prototype from c-tree.h.
      	* c-decl.c: Include <hashtab.h>.
      	(builtin_decls): New.
      	(current_file_decl): New.
      	(duplicate_decls): Add extra parameter. Change all callers.  Don't
      	output duplicate common symbols.
      	(link_hash_hash): New.
      	(link_hash_eq): New.
      	(poplevel): Handle popping of the top level.
      	(warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
      	(pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
      	(pushdecl_top_level): Likewise.
      	(redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
      	(c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
      	(finish_decl): Handle TRANSLATION_UNIT_DECL.
      	(merge_translation_unit_decls): New.
      	(c_write_global_declarations): New.
      	(c_reset_state): New.
      	(implicitly_declare): Handle TRANSLATION_UNIT_DECL.
      	* c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
      	* c-objc-common.c (c_cannot_inline_tree_fn): Handle
      	TRANSLATION_UNIT_DECL.
      	(c_objc_common_finish_file): Call merge_translation_unit_decls.
      	* c-opts.c (in_fnames): Rename from in_fname.
      	(c_common_decode_option): Handle multiple input filenames.
      	(c_common_post_options): Likewise.
      	(c_common_parse_file): Likewise; also, call c_parse_file rather than
      	yyparse.
      	* c-parse.in: Move cleanup code to c_parse_file.
      	(free_parser_stacks): Move contents to c_parse_file.
      	(c_parse_file): New.
      	* c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
      	for integer types.
      	(C_DECL_FILE_SCOPE): New.
      	(finish_file): Move prototype to c-common.h.
      	(merge_translation_unit_decls): New prototype.
      	(comptypes): Add extra parameter to prototype.
      	(c_write_global_declarations): New prototype.
      	* c-typeck.c (tagged_types_tu_compatible_p): New.
      	(function_types_compatible_p): Add extra parameter, change all callers.
      	(type_lists_compatible_p): Likewise.
      	(comptypes): Likewise.
      	(struct tagged_tu_seen): New.
      	(tagged_tu_seen_base): New.
      	(build_unary_op): Handle TRANSLATION_UNIT_DECL.
      	(c_mark_addressable): Remove #if 0 code.
      	* calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
      	comment explaining why it shouldn't have to.
      	* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
      	options.
      	* cppinit.c (cpp_read_next_file): New.
      	(cpp_read_main_file): Use it.
      	* cpplib.c (undefine_macros): New.
      	(cpp_undef_all): New.
      	* cpplib.h (cpp_read_next_file): Prototype.
      	(cpp_undef_all): Prototype.
      	* langhooks-def.h (write_global_declarations): Remove prototype.
      	* toplev.h (write_global_declarations): Add prototype.
      	* tree.c (decl_type_context): Use switch statement, handle
      	TRANSLATION_UNIT_DECL.
      	* tree.def: Update documentation for TRANSLATION_UNIT_DECL.
      	(TRANSLATION_UNIT_DECL): New kind of tree.
      	* tree.h: Update documentation for TRANSLATION_UNIT_DECL.
      	* Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
      	* doc/invoke.texi: Make attempt to document new functionality.
      
      	2003-05-19  Per Bothner <bothner@apple.com>
      
      	* gcc.c (combine_inputs): New.
      	(process_command): Set combine_inputs.
      	(do_spec_1): Handle combine_inputs.
      	(main): Likewise.
      
      Index: cp/ChangeLog
      2003-07-10  Geoffrey Keating  <geoffk@apple.com>
      
      	* decl.c (cp_finish_decl): Handle 'used' attribute.
      
      	* cp-lang.c (c_reset_state): New dummy routine.
      	* cp-tree.h (finish_file): Move prototype to c-common.h.
      	* parser.c (c_parse_file): Rename from yyparse; don't call finish_file.
      
      From-SVN: r69224
      Geoffrey Keating committed
  22. 06 Jul, 2003 2 commits
    • stmt.c: Convert remaining prototypes to ISO C90. · 7e51717c
      	* stmt.c: Convert remaining prototypes to ISO C90.
      	* cfglayout.c: Likewise.
      	* dbxout.c: Likewise.
      	* gcc.c: Likewise.
      	* genemit.c: Likewise.
      
      From-SVN: r69015
      Andreas Jaeger committed
    • gcc.c: Convert prototypes to ISO C90. · 1d088dee
      	* gcc.c: Convert prototypes to ISO C90.
      	* gcc.h: Likewise.
      	* gcov-dump.c: Likewise.
      	* gcov-iov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.h: Likewise.
      	* ggc.h: Likewise.
      	* global.c: Likewise.
      	* graph.c: Likewise.
      	* graph.h: Likewise.
      	* hosthooks.h: Likewise.
      	* hooks.h: Likewise.
      	* hooks.c: Likewise.
      	* hashtable.h: Likewise.
      	* hashtable.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* integrate.h: Likewise.
      	* integrate.c: Likewise.
      	* input.h: Likewise.
      	* ifcvt.c: Likewise.
      
      From-SVN: r68995
      Andreas Jaeger committed
  23. 03 Jul, 2003 1 commit
    • system.h: Include filenames.h. · 3dce1408
      	* system.h: Include filenames.h.
      	(IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
      	(DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
      	define based on HAVE_DOS_BASED_FILE_SYSTEM.
      	* config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
      	* config/i386/xm-mingw32.h: Don't define
      	HAVE_DOS_BASED_FILE_SYSTEM,
      	DIR_SEPARATOR, or DIR_SEPARATOR_2.
      	* doc/hostconfig.texi: Update to match.
      
      	* cppfiles.c, gcc.c, gensupport.c, protoize.c,
      	config/i386/cygwin.h:
      	Use IS_ABSOLUTE_PATH throughout.
      	* gcc.c (DIR_UP): Delete, unused.
      	* protoize.c (IS_SAME_PATH): Define in terms of
      	FILENAME_CMP.
      	(is_abspath): Delete.
      java:
      	* jcf-path.c: Don't default-define PATH_SEPARATOR nor
      	DIR_SEPARATOR.
      	Use FILENAME_CMP.
      	* jcf-write.c: Don't default-define DIR_SEPARATOR.
      	* jcf.h: Delete COMPARE_FILENAMES definition.
      
      From-SVN: r68863
      Zack Weinberg committed
  24. 29 Jun, 2003 1 commit
    • alloc-pool.c: Fix comment formatting. · f9da5064
      	* alloc-pool.c: Fix comment formatting.
      	* bitmap.c: Likewise.
      	* bitmap.h: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* caller-save.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* collect2.c: Likewise.
      	* cse.c: Likewise.
      	* df.c: Likewise.
      	* diagnostic.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* dwarfout.c: Likewise.
      	* expmed.c: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* libgcov.c: Likewise.
      	* mips-tfile.c: Likewise.
      	* optabs.c: Likewise.
      	* prefix.c: Likewise.
      	* rtlanal.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* toplev.c: Likewise.
      	* varasm.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      From-SVN: r68672
      Kazu Hirata committed
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 23 May, 2003 1 commit
  31. 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
  32. 07 May, 2003 1 commit
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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