1. 03 Sep, 2010 1 commit
    • options.texi (SeparateAlias): Document. · d1583032
      	* doc/options.texi (SeparateAlias): Document.
      	* opt-functions.awk (switch_flags): Handle SeparateAlias.
      	* opth-gen.awk: Generate enumeration names for options marked
      	SeparateAlias, but not for those marked Ignore.
      	* opts-common.c (generate_canonical_option): Don't output separate
      	argument for options marked CL_SEPARATE_ALIAS.
      	(decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
      	* opts.h (CL_SEPARATE_ALIAS): New.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
      	CL_COMMON): Adjust definitions.
      	* config/i386/darwin.opt, config/mips/sde.opt: New.
      	* common.opt (fdump-final-insns): New.
      	* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
      	i386/darwin.opt.
      	(mips*-sde-elf*): Add mips/sde.opt.
      	* config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
      	-mno-data-in-code and -mcode-xonly here.
      	* defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
      	* gcc.c (option_map): Add "j" to --dump entry.
      	(translate_options): Don't translate -d to -foutput-class-dir=
      	here.
      
      java:
      	* lang.opt (d): New.
      
      testsuite:
      	* gcc.dg/opts-4.c: New test.
      
      From-SVN: r163844
      Joseph Myers committed
  2. 02 Sep, 2010 1 commit
    • re PR driver/44076 (-MT <target> behaves different as -MT<target> (w/o space)) · 5de8299c
      	PR driver/44076
      	* opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
      	alias_target fields.
      	* opt-functions.awk (opt_sanitized_name): Don't handle
      	finline-limit=, Wlarger-than= and ftemplate-depth= specially.
      	* optc-gen.awk: Generate alias fields.
      	* opth-gen.awk: Explicitly give values for OPT_* enum constants.
      	Don't generate such constants for aliases.
      	* opts-common.c (generate_canonical_option): New.
      	(decode_cmdline_option): Handle aliases.  Use
      	generate_canonical_option for known options instead of copying the
      	input option text.
      	* doc/options.texi (Alias): Document.
      	* common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
      	fstack-check, specs): Mark as aliases.
      	* gcc.c (driver_handle_option): Canonicalize -L options to joined
      	arguments.
      	(driver_handle_option): Don't handle OPT_specs.
      	* opts.c (common_handle_option): Don't handle options marked as
      	aliases.
      	(enable_warning_as_error): Handle aliases.
      	* stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
      	OPT_Wlarger_than_eq.
      	* tree-optimize.c (tree_rest_of_compilation): Use
      	OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
      
      c-family:
      	* c.opt (Wcomments, Werror-implicit-function-declaration,
      	ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
      	std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
      	aliases.
      	* c-common.c (option_codes): Use OPT_Wcomment instead of
      	OPT_Wcomments.
      	* c-opts.c (warning_as_error_callback, c_common_handle_option):
      	Don't handle options marked as aliases.
      
      java:
      	* lang.opt (CLASSPATH, bootclasspath, classpath, encoding,
      	fCLASSPATH=): Mark as Java options and as aliases.
      	* jvspec.c (jvgenmain_spec): Don't handle -fCLASSPATH*.
      	(lang_specific_driver): Don't handle options marked as aliases.
      	* lang.c (java_handle_option): Don't handle OPT_fCLASSPATH_.
      
      testsuite:
      	* gcc.dg/cpp/warn-comments-3.c: New.  Based on warn-comments-2.c
      	but using -Werror=comment.
      	* gcc.dg/cpp/warn-comments.c, gcc.dg/cpp/warn-comments-2.c: Adjust
      	expected error messages.
      
      From-SVN: r163770
      Joseph Myers committed
  3. 22 Aug, 2010 1 commit
    • Makefile.in (gccspec.o, cppspec.o): Update dependencies. · d9d16a19
      	* Makefile.in (gccspec.o, cppspec.o): Update dependencies.
      	* common.opt (L, nodefaultlibs, nostdlib, pg, static): New
      	options.
      	* config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
      	* config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
      	* config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
      	* config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
      	* config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
      	"-l".
      	* cppspec.c: Include opts.h.
      	(lang_specific_driver): Use cl_decoded_option structures.
      	* doc/tm.texi.in (MATH_LIBRARY): Update documentation.
      	* doc/tm.texi: Regenerate.
      	* gcc.c (translate_options): Translate -d to -foutput-class-dir=.
      	(driver_handle_option): Allow driver options needing no special
      	processing.
      	(process_command): Decode options before call to
      	lang_specific_driver.  Pass decoded options to
      	lang_specific_driver.
      	* gcc.h (lang_specific_driver): Update prototype.
      	* gccspec.c: Include opts.h.
      	(lang_specific_driver): Use cl_decoded_option structures.
      	* opts-common.c (option_ok_for_language, generate_option,
      	generate_option_input_file): New.
      	(decode_cmdline_option): Use option_ok_for_language.
      	(decode_cmdline_options_to_array): Use generate_option_input_file.
      	(handle_generated_option): Use generate_option.
      	* opts.h (generate_option, generate_option_input_file): Declare.
      
      cp:
      	* Make-lang.in (g++spec.o): Update dependencies.
      	* g++spec.c: Include opts.h
      	(MATH_LIBRARY, LIBSTDCXX): Remove initial "-l".
      	(lang_specific_driver): Use cl_decoded_option structures.
      
      fortran:
      	* Make-lang.in (gfortranspec.o): Update dependencies.
      	* gfortranspec.c: Include coretypes.h before gcc.h.  Include
      	opts.h.
      	(MATH_LIBRARY, FORTRAN_LIBRARY): Remove initial "-l".
      	(ADD_ARG_LIBGFORTRAN, Option, lookup_option): Remove.
      	(g77_xargc): Make unsigned.
      	(g77_xargv): Change to g77_x_decoded_options.
      	(g77_newargc): Make unsigned.
      	(g77_newargv): Change to g77_new_decoded_options.
      	(strings_same, options_same): New.
      	(append_arg): Use cl_decoded_option structures.
      	(append_option): New.
      	(add_arg_libgfortran): New.
      	(lang_specific_driver): Use cl_decoded_option structures.
      
      java:
      	* Make-lang.in (jvspec.o): Update dependencies.
      	* jvspec.c: Include opts.h.
      	(PARAM_ARG): Remove.
      	(find_spec_file): Do not add leading -specs=.
      	(lang_specific_driver): Use cl_decoded_option structures.
      	* lang.opt (C, CLASSPATH, D, bootclasspath, classpath, encoding,
      	extdirs, fmain=, s-bc-abi): New options.
      
      From-SVN: r163459
      Joseph Myers committed
  4. 17 Aug, 2010 1 commit
    • gcc.c (spec_function): Add remove-outfile. · 2642f659
      2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
      
      	* gcc.c (spec_function): Add remove-outfile.
      	(remove_outfile_spec_function): New function.
      	* config/darwin.h (LINK_SPEC): Add removal of
      	-ldl, -lm and -lpthread.
      	* invoke.texi (replace-outfile): Document.
      
      From-SVN: r163305
      Jack Howarth committed
  5. 16 Aug, 2010 2 commits
    • options.texi (NoDriverArg): Document. · c878765b
      	* doc/options.texi (NoDriverArg): Document.
      	* gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
      	-MDX and -MMDX.
      	* opt-functions.awk (switch_flags): Handle NoDriverArg.
      	* opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
      	marking for CL_NO_DRIVER_ARG options when in the driver.
      	* opts.h (CL_NO_DRIVER_ARG): Define.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
      	CL_COMMON): Update values.
      
      c-family:
      	* c.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
      	RejectDriver.
      	(MMDX): Change back to MMD.  Mark NoDriverArg instead of
      	RejectDriver.
      	* c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
      	instead of OPT_MDX and OPT_MMDX.
      
      fortran:
      	* lang.opt (MDX): Change back to MD.  Mark NoDriverArg instead of
      	RejectDriver.
      	(MMDX): Change back to MMD.  Mark NoDriverArg instead of
      	RejectDriver.
      	* cpp.c (gfc_cpp_handle_option): Use OPT_MD and OPT_MMD instead of
      	OPT_MDX and OPT_MMDX.
      
      From-SVN: r163280
      Joseph Myers committed
    • common.opt: Add driver options. · 603349bf
      	* common.opt: Add driver options.
      	(auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
      	* doc/options.texi (Driver, RejectDriver): Document.
      	* gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
      	print_prog_name, print_multi_directory, print_sysroot,
      	print_multi_os_directory, print_multi_lib,
      	print_sysroot_headers_suffix, report_times, combine_flag,
      	use_pipes, wrapper_string): Remove.
      	(save_switch, driver_unknown_option_callback,
      	driver_wrong_lang_callback, driver_post_handling_callback,
      	driver_handle_option): New.
      	(spec_lang, last_language_n_infiles): Make file-scope static
      	instead of local to process_command.
      	(process_command): Use decode_cmdline_options_to_array and
      	read_cmdline_option for option processing.  Compute have_c in
      	prescan of decoded options.
      	* opt-functions.awk (switch_flags): Handle Driver and
      	RejectDriver.
      	(var_type, var_type_struct): Handle Separate options as generating
      	const char * variables.
      	* opts-common.c (decode_cmdline_option): Expect CL_COMMON and
      	CL_TARGET to be passed by caller if required.
      	(decode_cmdline_options_to_array): Update comment.
      	* opts.c (complain_wrong_lang): Handle options only valid for the
      	driver.
      	(decode_options): Update call to decode_cmdline_options_to_array.
      	(print_filtered_help): Ignore driver-only options.
      	(print_specific_help): Ignore CL_DRIVER.
      	(common_handle_option): Don't call print_specific_help for
      	CL_DRIVER.
      	* opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
      	Update values.
      
      c-family:
      	* c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
      
      fortran:
      	* lang.opt (MDX, MMDX): Mark RejectDriver.
      
      java:
      	* lang.opt (MD_, MMD_, version): Mark RejectDriver.
      
      From-SVN: r163279
      Joseph Myers committed
  6. 12 Aug, 2010 1 commit
  7. 03 Aug, 2010 1 commit
    • alpha.h (SWITCH_TAKES_ARG): Define. · 1890bccc
      	* config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
      	* config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
      	* config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G*
      	options.
      	* config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
      	* config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
      	* config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
      	* config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
      	DEFAULT_SWITCH_TAKES_ARG.
      	* config/rx/rx.opt (-patch=): Remove option.
      	* config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
      	* defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
      	* doc/invoke.texi (RX Options): Remove -patch=.
      	* gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
      	(option_map): Remove --profile-blocks, --quiet and --silent.
      
      ada:
      	* gcc-interface/lang-specs.h: Don't pass -a options.
      
      c-family:
      	* c.opt (-print-pch-checksum): Remove option.
      	* c-opts.c (c_common_handle_option): Don't handle
      	OPT_print_pch_checksum.
      
      From-SVN: r162838
      Joseph Myers committed
  8. 28 Jul, 2010 1 commit
    • darwin-driver.c (SWITCH_TAKES_ARG, [...]): Remove. · eea13ead
      	* config/darwin-driver.c (SWITCH_TAKES_ARG,
      	WORD_SWITCH_TAKES_ARG): Remove.
      	* cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
      	* defaults.h (DEFAULT_SWITCH_TAKES_ARG,
      	DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
      	(SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
      	definitions from gcc.c.
      	* gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
      	defaults.h.
      	* gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
      	Move to defaults.h.
      	* opts-common.c: Include tm.h.
      	(decode_cmdline_option): Use SWITCH_TAKES_ARG and
      	WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
      	Handle more than one argument.  Set canonical_option_num_elements.
      	(decode_cmdline_options_to_array): Set
      	canonical_option_num_elements and trailing elements of
      	canonical_option.
      	* opts.h (struct cl_decoded_option): Allow four elements in
      	canonical_option.  Add field canonical_option_num_elements.
      	* Makefile.in (opts-common.o): Update dependencies.
      
      ada:
      	* gcc-interface/misc.c (gnat_init_options): Ignore erroneous
      	options.  Check canonical_option_num_elements on options copied.
      
      fortran:
      	* gfortranspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
      	Remove.
      
      From-SVN: r162620
      Joseph Myers committed
  9. 23 Jul, 2010 1 commit
  10. 26 Jun, 2010 2 commits
    • collect2.c (main): Remove SWITCHES_NEED_SPACES conditional. · d5d8b111
      	* collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
      	* doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
      	* gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
      	(static_specs): Remove switches_need_spaces.
      	(process_command, do_self_spec): Hardcode handling "-o" instead of
      	checking switches_need_spaces.
      	* system.h (SWITCHES_NEED_SPACES): Poison.
      
      From-SVN: r161436
      Joseph Myers committed
    • gcc.c (n_switches_alloc, [...]): New. · 922e1882
      	* gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
      	add_infile, alloc_switch): New.
      	(process_command): Remove variable lang_n_infiles.  Process
      	options in a single pass.  Use new functions for allocating
      	infiles and switches arrays.  Properly skip operands of
      	-Xpreprocessor and -Xassembler.
      
      testsuite:
      	* gcc.dg/opts-3.c: New test.
      
      From-SVN: r161430
      Joseph Myers committed
  11. 25 Jun, 2010 2 commits
  12. 05 Jun, 2010 1 commit
  13. 04 Jun, 2010 1 commit
    • darwin-driver.c (darwin_default_min_version): Use · bdc6b402
      	* config/darwin-driver.c (darwin_default_min_version): Use
      	* GCC-specific formats in diagnostics.
      	* cppspec.c (lang_specific_driver): Use GCC-specific formats in
      	diagnostics.
      	* gcc.c (translate_options, read_specs, add_sysrooted_prefix,
      	execute, process_command, end_going_arg, do_self_spec, do_spec_1,
      	eval_spec_function, handle_braces, process_brace_body, main,
      	perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
      	getenv_spec_function, compare_version_strings,
      	version_compare_spec_function): Use GCC-specific formats in
      	diagnostics.
      
      cp:
      	* g++spec.c (lang_specific_driver): Use GCC-specific formats in
      	diagnostics.
      
      fortran:
      	* gfortranspec.c (append_arg, lang_specific_driver): Use
      	GCC-specific formats in diagnostics.
      
      java:
      	* jvspec.c (lang_specific_driver): Use GCC-specific formats in
      	diagnostics.
      
      From-SVN: r160292
      Joseph Myers committed
  14. 01 Jun, 2010 1 commit
    • invoke.texi: Mention -fdump-ada-spec. · 9cc54940
      	* doc/invoke.texi: Mention -fdump-ada-spec.
      	* tree-dump.c (dump_files): Add ada-spec.
      	(FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
      	* tree-pass.h (tree_dump_index): Add TDI_ada.
      	* gcc.c: Add support for -C without -E and for -fdump-ada-spec.
      	(cpp_unique_options): Do not reject -C or -CC when -E isn't present.
      	(default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
      	* c-decl.c: Include c-ada-spec.h.
      	(collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
      	functions.
      	(c_write_global_declarations): Add handling of -fdump-ada-spec.
      	* c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
      	* Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
      	* c-ada-spec.h, c-ada-spec.c: New files.
      
      Co-Authored-By: Matthew Gingell <gingell@adacore.com>
      
      From-SVN: r160100
      Arnaud Charlet committed
  15. 28 May, 2010 3 commits
    • gcc.c: Include diagnostic.h. · 6afbc885
      	* gcc.c: Include diagnostic.h.
      	(error_count): Remove.  All users changed to use errorcount.
      	(programname): Remove.  All users changed to use progname.
      	(fancy_abort, internal_error, fatal_error, error, warning, inform,
      	fnotice): Remove.
      	(execute): Don't include "Internal error" and bug reporting
      	information in argument of internal_error call.
      	(process_command): Don't increment error_count after calling
      	perror_with_name.
      	(input_filename): Rename to gcc_input_filename.  All users
      	changed.
      	(main): Call diagnostic_initialize.  Register delete_temp_files
      	with atexit.  Use seen_error to test for errors.
      	* gcc.h: Include diagnostic-core.h.
      	(fatal_error, error, warning): Remove.
      	* Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
      	(GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
      	(gcc.o): Update dependencies.
      
      From-SVN: r160004
      Joseph Myers committed
    • re PR driver/15303 (When gcc sees an unrecognized option, the exit status indicates success) · 2dec80c7
      	PR driver/15303
      	* gcc.c (inform, warning, inform): New functions.
      	(fatal_ice): Rename to internal_error; change cmsgid parameter to
      	gmsgid.  All callers changed.
      	(notice): Rename to fnotice; add parameter fp.  All callers
      	changed.
      	(fatal_error): Rename to fatal_signal.  All users changed.
      	(fatal): Rename to fatal_error; change cmsgid parameter to
      	gmsgid.  All callers changed.
      	(process_command): Use warning instead of error for warnings.
      	(end_going_arg): Don't use _() around argument of error.
      	(do_spec_1): Use inform for message from %n specs.  Use warning
      	instead of error for warnings.
      	(main): Use inform for comparison messages.  Use warning for
      	message about unused linker input.
      	(error): Increment error_count.  Print "error: ".
      	* gcc.h (fatal): Change to fatal_error.
      	(warning): Declare.
      	* config/darwin-driver.c (darwin_default_min_version): Use warning
      	instead of fprintf for warnings.
      	* cppspec.c (lang_specific_driver): Use fatal_error instead of
      	fatal.
      
      cp:
      	* g++spec.c (lang_specific_driver): Use fatal_error instead of
      	fatal.
      
      fortran:
      	* gfortranspec.c (append_arg, lang_specific_driver): Use
      	fatal_error instead of fatal.  Use warning instead of fprintf for
      	warnings.
      
      java:
      	* jvspec.c (lang_specific_driver): Use fatal_error instead of
      	fatal.  Use warning instead of error for warnings.
      
      From-SVN: r159986
      Joseph Myers committed
  16. 19 May, 2010 1 commit
    • invoke.texi (-fwhopr): Document new optional jobs argument. · c04b6b38
      2010-05-19  Richard Guenther  <rguenther@suse.de>
      
      	* doc/invoke.texi (-fwhopr): Document new optional jobs argument.
      	* common.opt (fwhopr=): New.
      	* opts.c (common_handle_option): Handle OPT_fwhopr.
      	* gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
      	* collect2.c (main): Match -fwhopr*.
      	* lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
      	Execute ltrans stage in parallel when jobs is bigger than 1.
      
      From-SVN: r159573
      Richard Guenther committed
  17. 18 May, 2010 1 commit
    • re PR lto/44143 (-fdump-tree-all for lto does not work as expected) · cf96bae7
      2010-05-18  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/44143
      	* lto-wrapper.c (verbose): New variable.  Initialize from -v.
      	(debug): Initialize from -save-temps.
      	(collect_execute): Print command-line when verbose.
      	(run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
      	for ltrans invocation.  Produce -dumpbase flag again.
      	(process_args): Remove.
      	(main): Simplify.
      	* collect2.c (maybe_run_lto_and_relink): Only pass object
      	files to lto-wrapper.
      	* gcc.c (LINK_COMMAND_SPEC): Likewise.
      
      From-SVN: r159536
      Richard Guenther committed
  18. 11 May, 2010 1 commit
  19. 09 May, 2010 2 commits
  20. 07 May, 2010 1 commit
    • re PR lto/43857 (-fresolution causes an ICE) · 5cd0e96b
      2010-05-07  Richard Guenther <rguenther@suse.de>
      
      	* gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
      	the linker plugin.
      	(store_arg): Queue temp_filename for deletion instead of
      	the whole argument.
      
      	lto/
      	PR lto/43857
      	PR lto/43371
      	* lang.opt (fresolution): Change to ...
      	(fresolution=): ... this.
      	* lto-lang.c (lto_handle_option): Adjust.
      
      	lto-plugin/
      	* lto-plugin.c (free_2): Do not free resolution_file.
      	(write_resolution): Check that we were passed a resolution file.
      	(all_symbols_read_handler): Adjust.
      	(cleanup_handler): Do not remove the resolution file.
      	(process_option): Handle -fresolution=.
      
      From-SVN: r159159
      Richard Guenther committed
  21. 18 Apr, 2010 1 commit
  22. 12 Apr, 2010 1 commit
    • gcc.c (cc1_options): Handle -iplugindir before processing the cc1 spec. · 4adbd5dd
      gcc/
      
      2010-04-13  Matthias Klose  <doko@ubuntu.com>
      
      	* gcc.c (cc1_options): Handle -iplugindir before processing
      	the cc1 spec. Only add -iplugindir once.
      	(cpp_unique_options): Add -iplugindir option if -fplugin* options
      	found.
      	* common.opt (iplugindir): Remove `Separate' property, initialize.
      	* plugin.c (default_plugin_dir_name): Error with missing -iplugindir
      	option.
      	* Makefile.in (check-%, check-parallel-%): Create plugin dir.
      	(distclean): Remove plugin dir.
      
      2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* doc/plugins.texi (Loading Plugins): Document short
      	-fplugin=foo option.
      	(Plugin API): Mention default_plugin_dir_name function.
      
      	* gcc.c (find_file_spec_function): Add new declaration.
      	(static_spec_func): Use it for "find-file".
      	(find_file_spec_function): Add new function.
      	(cc1_options): Add -iplugindir option if -fplugin* options found.
      
      	* gcc-plugin.h (default_plugin_dir_name): Added new declaration.
      
      	* plugin.c (add_new_plugin): Updated comment, and handle short
      	plugin name.
      	(default_plugin_dir_name): Added new function.
      
      	* common.opt (iplugindir): New option to set the plugin
      	directory.
      
      gcc/testsuite/
      
      2010-04-13  Matthias Klose  <doko@ubuntu.com>
      
      	* gcc.dg/plugindir1.c: New testcase.
      	* gcc.dg/plugindir2.c: New testcase.
      	* gcc.dg/plugindir3.c: New testcase.
      	* gcc.dg/plugindir4.c: New testcase.
      
      From-SVN: r158247
      Matthias Klose committed
  23. 08 Apr, 2010 1 commit
    • re PR driver/42485 (-V switch broken) · 1401cf37
      2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR 42485
      	* doc/invoke.texi (-b,-V): Delete.
      	* doc/tm.texi: Do not mention -b.
      	* gcc.c (display_help): Delete -b and -V.
      	(process_command): Delete -b and -V.
      	* gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
      
      From-SVN: r158134
      Manuel López-Ibáñez committed
  24. 07 Apr, 2010 1 commit
  25. 11 Feb, 2010 1 commit
  26. 21 Jan, 2010 1 commit
  27. 14 Jan, 2010 1 commit
    • re PR translation/39521 (specs diagnostics translation problems) · 5bc69b92
      po/
      2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/39521
              * exgettext: Extracted all specs %n strings and the %e strings that %e
              is at the start of a line.
      
      2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR translation/39521
              * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
              strings with _().
      
      From-SVN: r155878
      Shujing Zhao committed
  28. 09 Jan, 2010 1 commit
    • gcc.c (process_command): Update copyright notice dates. · bd5c3aa5
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov.c (print_version): Likewise.
      	* gcov-dump.c (print_version): Likewise.
      	* mips-tfile.c (main): Likewise.
      	* mips-tdump.c (main): Likewise.
      
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      
      	* jcf-dump.c (version): Update copyright notice dates.
      
      	* mf-runtime.c (__mf_usage): Update copyright notice dates.
      
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise.
      
      	* gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* tools/gnu/classpath/tools/orbd/Main.java (run): Likewise.
      
      From-SVN: r155749
      Jakub Jelinek committed
  29. 04 Jan, 2010 2 commits
    • re PR driver/42442 (-march=native doesn't apply to multiple files) · 94b90527
      	PR driver/42442
      	* gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
      	(do_self_spec): For switches with SWITCH_IGNORE set set also
      	SWITCH_IGNORE_PERMANENTLY.
      	(check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
      	of SWITCH_IGNORE.
      
      From-SVN: r155622
      Jakub Jelinek committed
    • Pass -m* and -v to -plugin-opt · f0d61983
      gcc/
      
      2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR lto/42520
      	* gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
      
      lto-plugin/
      
      2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR lto/42520
      	* lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
      	if -v is passed.
      
      From-SVN: r155601
      H.J. Lu committed
  30. 03 Jan, 2010 1 commit
    • Pass -dumpbase and -dumpdir to gcc for LTO · d7fb0a6d
      gcc/
      
      2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR lto/41564
      	* common.opt: Add dumpdir.
      
      	* gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
      	isn't specified.
      	(option_map): Add --dumpdir.
      
      	* gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
      
      	* lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
      
      	* opts.c (decode_options): Try dump_dir_name first if
      	dump_base_name isn't an absolute path.
      	(common_handle_option): Handle OPT_dumpdir.
      
      	* toplev.c (dump_dir_name): New.
      	(print_switch_values): Also ignore -dumpdir.
      
      	* toplev.h (dump_dir_name): New.
      
      gcc/lto/
      
      2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR lto/41564
      	* lto.c (DUMPBASE_SUFFIX): New.
      	(lto_execute_ltrans): Append a sequence number to -dumpbase
      	for LTRANS.
      
      From-SVN: r155591
      H.J. Lu committed
  31. 14 Dec, 2009 1 commit
  32. 25 Nov, 2009 1 commit
    • Remove trailing white spaces. · b8698a0f
      2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* alias.c: Remove trailing white spaces.
      	* alloc-pool.c: Likewise.
      	* alloc-pool.h: Likewise.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* builtins.def: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-format.c: Likewise.
      	* c-lex.c: Likewise.
      	* c-omp.c: Likewise.
      	* c-opts.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* c-tree.h: Likewise.
      	* c-typeck.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphbuild.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* cif-code.def: Likewise.
      	* collect2.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* coverage.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbgcnt.def: Likewise.
      	* dbgcnt.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* ddg.c: Likewise.
      	* ddg.h: Likewise.
      	* defaults.h: Likewise.
      	* df-byte-scan.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* df.h: Likewise.
      	* dfp.c: Likewise.
      	* diagnostic.c: Likewise.
      	* diagnostic.h: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* double-int.c: Likewise.
      	* double-int.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarf2asm.h: Likewise.
      	* dwarf2out.c: Likewise.
      	* ebitmap.c: Likewise.
      	* ebitmap.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* et-forest.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-dump.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genchecksum.c: Likewise.
      	* genconfig.c: Likewise.
      	* genflags.c: Likewise.
      	* gengtype-parse.c: Likewise.
      	* gengtype.c: Likewise.
      	* gengtype.h: Likewise.
      	* genmddeps.c: Likewise.
      	* genmodes.c: Likewise.
      	* genopinit.c: Likewise.
      	* genpreds.c: Likewise.
      	* gensupport.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-iterator.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.def: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graphds.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* gthr-nks.h: Likewise.
      	* gthr-posix.c: Likewise.
      	* gthr-posix.h: Likewise.
      	* gthr-posix95.h: Likewise.
      	* gthr-single.h: Likewise.
      	* gthr-tpf.h: Likewise.
      	* gthr-vxworks.h: Likewise.
      	* gthr.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* hard-reg-set.h: Likewise.
      	* hooks.c: Likewise.
      	* hooks.h: Likewise.
      	* hosthooks.h: Likewise.
      	* hwint.h: Likewise.
      	* ifcvt.c: Likewise.
      	* incpath.c: Likewise.
      	* init-regs.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-struct-reorg.h: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* ipa-type-escape.h: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* jump.c: Likewise.
      	* lambda-code.c: Likewise.
      	* lambda-mat.c: Likewise.
      	* lambda-trans.c: Likewise.
      	* lambda.h: Likewise.
      	* langhooks.c: Likewise.
      	* lcm.c: Likewise.
      	* libgcov.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-init.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-iv.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-compress.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-section-in.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* lto-wpa-fixup.c: Likewise.
      	* matrix-reorg.c: Likewise.
      	* mcf.c: Likewise.
      	* mode-switching.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omega.c: Likewise.
      	* omega.h: Likewise.
      	* omp-low.c: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* opts-common.c: Likewise.
      	* opts.c: Likewise.
      	* params.def: Likewise.
      	* params.h: Likewise.
      	* passes.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* predict.def: Likewise.
      	* pretty-print.c: Likewise.
      	* pretty-print.h: Likewise.
      	* print-rtl.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* read-rtl.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* regrename.c: Likewise.
      	* regs.h: Likewise.
      	* regstat.c: Likewise.
      	* reload.c: Likewise.
      	* reload1.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtl.def: Likewise.
      	* rtl.h: Likewise.
      	* rtlanal.c: Likewise.
      	* sbitmap.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* sched-vis.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-dump.h: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sel-sched.h: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stack-ptr-mod.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* stringpool.c: Likewise.
      	* stub-objc.c: Likewise.
      	* sync-builtins.def: Likewise.
      	* target-def.h: Likewise.
      	* target.h: Likewise.
      	* targhooks.c: Likewise.
      	* targhooks.h: Likewise.
      	* timevar.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* toplev.h: Likewise.
      	* tracer.c: Likewise.
      	* tree-affine.c: Likewise.
      	* tree-affine.h: Likewise.
      	* tree-browser.def: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-dump.h: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-flow-inline.h: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-loop-linear.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-nrv.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-pass.h: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-copy.c: Likewise.
      	* tree-ssa-copyrename.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-ifcombine.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: Likewise.
      	* tree-ssa-loop-ch.c: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop-unswitch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-operands.c: Likewise.
      	* tree-ssa-operands.h: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-sink.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-ssanames.c: Likewise.
      	* tree-switch-conversion.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-generic.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-slp.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.def: Likewise.
      	* tree.h: Likewise.
      	* treestruct.def: Likewise.
      	* unwind-compat.c: Likewise.
      	* unwind-dw2-fde-glibc.c: Likewise.
      	* unwind-dw2.c: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vec.c: Likewise.
      	* vec.h: Likewise.
      	* vmsdbgout.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      From-SVN: r154645
      H.J. Lu committed
  33. 04 Nov, 2009 1 commit
    • gcc.c (process_command): Handle arguments name@offset. · 7e9dc421
      2009-11-04  Richard Guenther  <rguenther@suse.de>
                  Rafael Avila de Espindola  <espindola@google.com>
       
      	* gcc.c (process_command): Handle arguments name@offset.
      
      2009-11-04  Richard Guenther  <rguenther@suse.de>
                  Rafael Avila de Espindola  <espindola@google.com>
      
      	* lto-elf.c (lto_elf_build_section_table): Add the base offset.
      	(lto_elf_file_open): Handle offsets in arguments name@offest.
      
      2009-11-04  Richard Guenther  <rguenther@suse.de>
                  Rafael Avila de Espindola  <espindola@google.com>
      
      	* lto-plugin.c (plugin_file_info): Remove temp field.
      	(cleanup_handler): Don't delete temporary objects.
      	(claim_file_handler): Don't create temporary objects.
      
      
      Co-Authored-By: Rafael Avila de Espindola <espindola@google.com>
      
      From-SVN: r153903
      Richard Guenther committed