1. 16 Sep, 2010 1 commit
    • tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL is TS_TRANSLATION_UNIT_DECL. · 6be14c0e
      2010-09-16  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
      	is TS_TRANSLATION_UNIT_DECL.
      	(initialize_tree_contains_struct): Adjust.
      	(all_translation_units): New global vector.
      	(build_translation_unit_decl): New function.
      	* tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
      	(struct tree_translation_unit_decl): New.
      	(all_translation_units): Declare.
      	(union tree_node): Add translation_unit_decl member.
      	(build_translation_unit_decl): Declare.
      	* treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
      	* lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
      	New function.
      	(pack_value_fields): Call it.
      	(lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
      	(lto_output_ts_translation_unit_decl_tree_pointers): New function.
      	(lto_output_tree_pointers): Call it.
      	* lto-streamer-in.c (lto_input_tree_ref): Handle references
      	to TRANSLATION_UNIT_DECL.
      	(unpack_ts_translation_unit_decl_value_fields): New function.
      	(unpack_value_fields): Call it.
      	(lto_input_ts_translation_unit_decl_tree_pointers): New function.
      	(lto_input_tree_pointers): Call it.
      	* lto-streamer.c (check_handled_ts_structures): Adjust.
      	* lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
      	* c-decl.c (all_translation_units): Remove.
      	(pop_scope): Use build_translation_unit_decl.
      	(collect_all_refs): Adjust.
      	(for_each_global_decl): Likewise.
      	(c_write_global_declarations): Likewise.
      
      	java/
      	* jcf-parse.c (current_file_list): Remove.
      	(java_parse_file): Use build_translation_unit_decl.  Adjust.
      
      From-SVN: r164331
      Richard Guenther committed
  2. 03 Sep, 2010 2 commits
    • 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
    • Check "-D XXX=YYY". · efe13e0f
      2010-09-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR java/45504
      	* jvgenmain.c (main): Check "-D XXX=YYY".
      
      From-SVN: r163814
      H.J. Lu committed
  3. 02 Sep, 2010 2 commits
    • * jvspec.c (jvgenmain_spec): Don't handle -fnew-verifier. · e196cc8d
      From-SVN: r163783
      Joseph Myers committed
    • 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
  4. 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
  5. 20 Aug, 2010 1 commit
    • vec.h (FOR_EACH_VEC_ELT): Define. · ac47786e
      gcc/
      	* vec.h (FOR_EACH_VEC_ELT): Define.
      	* c-decl.c: Use it.
      	* cfgloop.c: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* dbxout.c: Likewise.
      	* df-scan.c: Likewise.
      	* dominance.c: Likewise.
      	* dse.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* function.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* ggc-common.c: Likewise.
      	* gimplify.c: Likewise.
      	* graphite-blocking.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* graphite-dependences.c: Likewise.
      	* graphite-interchange.c: Likewise.
      	* graphite-poly.c: Likewise.
      	* graphite-scop-detection.c: Likewise.
      	* graphite-sese-to-poly.c: Likewise.
      	* graphite.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* ifcvt.c: Likewise.
      	* implicit-zee.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-emit.c: Likewise.
      	* lambda-code.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.c: Likewise.
      	* lto-symtab.c: Likewise.
      	* matrix-reorg.c: Likewise.
      	* opts.c: Likewise.
      	* predict.c: Likewise.
      	* print-tree.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched.c: Likewise.
      	* sese.c: Likewise.
      	* stor-layout.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-emutls.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-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-ssa-live.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-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-vect-data-refs.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-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* value-prof.c: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* vmsdbgout.c: Likewise.
      
      gcc/ada/
      	* gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
      	* gcc-interface/trans.c: Likewise.
      	* gcc-interface/utils.c: Likewise.
      
      gcc/c-family/
      	* c-common.c: Use FOR_EACH_VEC_ELT.
      	* c-gimplify.c: Likewise.
      	* c-pragma.c: Likewise.
      
      gcc/cp/
      	* call.c: Use FOR_EACH_VEC_ELT.
      	* class.c: Likewise.
      	* decl.c: Likewise.
      	* decl2.c: Likewise.
      	* error.c: Likewise.
      	* except.c: Likewise.
      	* mangle.c: Likewise.
      	* method.c: Likewise.
      	* name-lookup.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* repo.c: Likewise.
      	* semantics.c: Likewise.
      	* typeck2.c: Likewise.
      
      gcc/fortran/
      	* trans-openmp.c: Use FOR_EACH_VEC_ELT.
      
      gcc/java/
      	* class.c: Use FOR_EACH_VEC_ELT.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* resource.c: Likewise.
      
      gcc/lto/
      	* lto.c: Use FOR_EACH_VEC_ELT.
      
      From-SVN: r163401
      Nathan Froyd committed
  6. 16 Aug, 2010 1 commit
    • 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
  7. 06 Aug, 2010 2 commits
  8. 27 Jul, 2010 2 commits
    • coretypes.h (struct cl_option_handlers): Declare. · 5f20c657
      	* coretypes.h (struct cl_option_handlers): Declare.
      	* hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
      	* hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
      	* langhooks-def.h (lhd_handle_option): Declare.
      	(LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
      	* langhooks.c (lhd_handle_option): New.
      	* langhooks.h (struct lang_hooks): Update prototype and return
      	value type of handle_option hook.
      	* optc-gen.awk: Generate target_flags_explicit definition for the
      	driver.
      	* opts-common.c: Include diagnostic.h.
      	(handle_option): Move from opts.c.  Update prototype and return
      	value type.  Use handlers structure.
      	(read_cmdline_option): Move from opts.c.  Update prototype.  Use
      	handlers structure.
      	(set_option): Move from opts.c.
      	* opts.c (common_handle_option): Update prototype and return value
      	type.  Update calls to handle_option and enable_warning_as_error.
      	(unknown_option_callback, post_handling_callback,
      	lang_handle_option, target_handle_option): New.
      	(handle_option, read_cmdline_option): Move to opts-common.c.
      	(read_cmdline_options): Update prototype.  Update call to
      	read_cmdline_option.
      	(decode_options): Initialize and use handlers structure.
      	(set_option): Move to opts-common.c.
      	(enable_warning_as_error): Update prototype.  Update call to
      	handle_option.
      	* opts.h (struct cl_option_handler_func, struct
      	cl_option_handlers): New.
      	(handle_option, enable_warning_as_error): Update prototypes.
      	(read_cmdline_option): Declare.
      	* Makefile.in (opts-common.o): Update dependencies.
      
      ada:
      	* gcc-interface/misc.c (gnat_handle_option): Update prototype and
      	return value type.  Don't check for missing arguments here.
      
      c-family:
      	* c-common.h (c_common_handle_option): Update prototype and return
      	value type.
      	* c-opts.c (c_common_handle_option): Update prototype and return
      	value type.  Update calls to handle_option and
      	enable_warning_as_error.
      
      fortran:
      	* gfortran.h (gfc_handle_option): Update prototype and return
      	value type.
      	* options.c (gfc_handle_option): Update prototype and return value
      	type.
      
      java:
      	* lang.c (java_handle_option): Update prototype and return value
      	type.
      
      lto:
      	* lto-lang.c (lto_handle_option): Update prototype and return
      	value type.  Remove duplicate assignment to result.
      
      From-SVN: r162601
      Joseph Myers committed
    • langhooks-def.h (lhd_init_options, [...]): New. · 7a9bf9a4
      	* langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
      	LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
      	(LANG_HOOKS_INIT_OPTIONS): Update default definition.
      	(LANG_HOOKS_INITIALIZER): Add new hooks.
      	* langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
      	* langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
      	and complain_wrong_lang_p.  Update init_options prototype.
      	* c-objc-common.c (c_initialize_diagnostics): First call
      	c_common_initialize_diagnostics.
      	* c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
      	LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
      	* coretypes.h (struct cl_option, struct cl_decoded_option):
      	Declare.
      	* hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
      	(hook_uint_void_0): New.
      	* hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
      	(hook_uint_void_0): New.
      	* opts-common.c (decode_cmdline_option,
      	decode_cmdline_options_to_array): Also fill in canonical_option
      	field.
      	* opts.c (complain_wrong_lang): Use langhook to determine whether
      	to complain instead of special-casing LTO.
      	(decode_options): Separate lang_mask determination with
      	option_lang_mask hook from call of init_options hook.
      	* opts.h (struct cl_decoded_option): Add canonical_option.
      
      ada:
      	* gcc-interface/misc.c (gnat_option_lang_mask): New.
      	(gnat_init_options): Update prototype.  Reconstruct argv array
      	from decoded options.
      
      c-family:
      	* c-common.h (c_common_option_lang_mask,
      	c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
      	New.
      	(c_common_init_options): Update prototype.
      	* c-opts.c (c_common_option_lang_mask): New.
      	(c_common_initialize_diagnostics): Split out of
      	c_common_init_options.
      	(accept_all_c_family_options, c_common_complain_wrong_lang_p):
      	New.
      	(c_common_init_options): Update prototype.  Use decoded options in
      	search for -lang-asm.
      
      cp:
      	* cp-objcp-common.c (cxx_initialize_diagnostics): First call
      	c_common_initialize_diagnostics.
      	* cp-objcp-common.h (LANG_HOOKS_OPTION_LANG_MASK,
      	LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
      
      fortran:
      	* cpp.c (gfc_cpp_init_options): Update prototype.  Use number of
      	decoded options in allocating deferred_opt.
      	* cpp.h (gfc_cpp_init_options): Update prototype.
      	* f95-lang.c (LANG_HOOKS_OPTION_LANG_MASK): Define.
      	* gfortran.h (gfc_option_lang_mask): New.
      	(gfc_init_options): Update prototype.
      	* options.c (gfc_option_lang_mask): New.
      	(gfc_init_options): Update prototype.  Pass new arguments to
      	gfc_cpp_init_options.
      
      java:
      	* lang.c (java_option_lang_mask): New.
      	(java_init_options): Update prototype.
      	(LANG_HOOKS_OPTION_LANG_MASK): Define.
      
      lto:
      	* lto-lang.c (lto_option_lang_mask, lto_complain_wrong_lang_p):
      	New.
      	(lto_init_options): Update prototype.
      	(LANG_HOOKS_OPTION_LANG_MASK, LANG_HOOKS_COMPLAIN_WRONG_LANG_P):
      	Define.
      
      From-SVN: r162560
      Joseph Myers committed
  9. 15 Jul, 2010 1 commit
    • tree.h (DECL_CHAIN): Define. · 910ad8de
      gcc/
      	* tree.h (DECL_CHAIN): Define.
      	* alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* c-decl.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-typeck.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* combine.c: Likewise.
      	* config/alpha/alpha.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/winnt-cxx.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mips/mips.c: Likewise.
      	* config/pa/som.h: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/symbian-cxx.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/spu/spu.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      	* coverage.c: Likewise.
      	* dbxout.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* expr.c: Likewise.
      	* function.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimplify.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-split.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* langhooks.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* omp-low.c: Likewise.
      	* stor-layout.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      
      gcc/ada/
      	* gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* gcc-interface/trans.c: Likewise.
      	* gcc-interface/utils.c: Likewise.
      	* gcc-interface/utils2.c: Likewise.
      
      gcc/c-family/
      	* c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* c-format.c: Likewise.
      
      gcc/cp/
      	* cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* call.c: Likewise.
      	* class.c: Likewise.
      	* cp-gimplify.c: Likewise.
      	* decl.c: Likewise.
      	* decl2.c: Likewise.
      	* init.c: Likewise.
      	* mangle.c: Likewise.
      	* name-lookup.c: Likewise.
      	* optimize.c: Likewise.
      	* parser.c: Likewise.
      	* pt.c: Likewise.
      	* rtti.c: Likewise.
      	* search.c: Likewise.
      	* semantics.c: Likewise.
      	* typeck.c: Likewise.
      	* typeck2.c: Likewise.
      
      gcc/fortran/
      	* f95-lang.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* trans-common.c: Likewise.
      	* trans-decl.c: Likewise.
      	* trans-types.c: Likewise.
      	* trans.c: Likewise.
      
      gcc/java/
      	* java-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
      	* boehm.c: Likewise.
      	* class.c: Likewise.
      	* decl.c: Likewise.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* typeck.c: Likewise.
      	* verify-glue.c: Likewise.
      
      gcc/objc/
      	* objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
      
      gcc/testsuite/
      	* g++.dg/plugin/attribute_plugin.c: Carefully replace TREE_CHAIN
      	with DECL_CHAIN.
      
      From-SVN: r162223
      Nathan Froyd committed
  10. 08 Jul, 2010 1 commit
    • toplev.h: Do not include diagnostic-core.h. · 718f9c0f
      2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* toplev.h: Do not include diagnostic-core.h.
      	Include diagnostic-core.h in every file that includes toplev.h.
      	* c-tree.h: Do not include toplev.h.
      	* pretty-print.h: Update comment.
      	* Makefile.in: Update dependencies.
      	* alias.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgbuild.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfgloop.c: Likewise.
      	* combine.c: Likewise.
      	* config/alpha/alpha.c: Likewise.
      	* config/arc/arc.c: Likewise.
      	* config/arm/arm.c: Likewise.
      	* config/arm/pe.c: Likewise.
      	* config/avr/avr.c: Likewise.
      	* config/bfin/bfin.c: Likewise.
      	* config/cris/cris.c: Likewise.
      	* config/crx/crx.c: Likewise.
      	* config/darwin-c.c: Likewise.
      	* config/darwin.c: Likewise.
      	* config/fr30/fr30.c: Likewise.
      	* config/frv/frv.c: Likewise.
      	* config/h8300/h8300.c: Likewise.
      	* config/host-darwin.c: Likewise.
      	* config/i386/i386.c: Likewise.
      	* config/i386/netware.c: Likewise.
      	* config/i386/nwld.c: Likewise.
      	* config/i386/winnt-cxx.c: Likewise.
      	* config/i386/winnt-stubs.c: Likewise.
      	* config/i386/winnt.c: Likewise.
      	* config/ia64/ia64-c.c: Likewise.
      	* config/ia64/ia64.c: Likewise.
      	* config/iq2000/iq2000.c: Likewise.
      	* config/lm32/lm32.c: Likewise.
      	* config/m32c/m32c-pragma.c: Likewise.
      	* config/m32c/m32c.c: Likewise.
      	* config/m32r/m32r.c: Likewise.
      	* config/m68hc11/m68hc11.c: Likewise.
      	* config/m68k/m68k.c: Likewise.
      	* config/mcore/mcore.c: Likewise.
      	* config/mep/mep-pragma.c: Likewise.
      	* config/mep/mep.c: Likewise.
      	* config/mmix/mmix.c: Likewise.
      	* config/mn10300/mn10300.c: Likewise.
      	* config/moxie/moxie.c: Likewise.
      	* config/pa/pa.c: Likewise.
      	* config/pdp11/pdp11.c: Likewise.
      	* config/picochip/picochip.c: Likewise.
      	* config/rs6000/rs6000-c.c: Likewise.
      	* config/rs6000/rs6000.c: Likewise.
      	* config/rx/rx.c: Likewise.
      	* config/s390/s390.c: Likewise.
      	* config/score/score.c: Likewise.
      	* config/score/score3.c: Likewise.
      	* config/score/score7.c: Likewise.
      	* config/sh/sh.c: Likewise.
      	* config/sh/symbian-base.c: Likewise.
      	* config/sh/symbian-c.c: Likewise.
      	* config/sh/symbian-cxx.c: Likewise.
      	* config/sol2-c.c: Likewise.
      	* config/sol2.c: Likewise.
      	* config/sparc/sparc.c: Likewise.
      	* config/spu/spu.c: Likewise.
      	* config/stormy16/stormy16.c: Likewise.
      	* config/v850/v850-c.c: Likewise.
      	* config/v850/v850.c: Likewise.
      	* config/vax/vax.c: Likewise.
      	* config/vxworks.c: Likewise.
      	* config/xtensa/xtensa.c: Likewise.
      	* convert.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbxout.c: Likewise.
      	* ddg.c: Likewise.
      	* dominance.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* explow.c: Likewise.
      	* expmed.c: Likewise.
      	* fixed-value.c: Likewise.
      	* fold-const.c: Likewise.
      	* fwprop.c: Likewise.
      	* gcse.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimplify.c: Likewise.
      	* graph.c: Likewise.
      	* haifa-sched.c: Likewise.
      	* ifcvt.c: Likewise.
      	* implicit-zee.c: Likewise.
      	* integrate.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-iv.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-symtab.c: Likewise.
      	* main.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* optabs.c: Likewise.
      	* params.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* profile.c: Likewise.
      	* real.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtlanal.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* targhooks.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-uninit.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vrp.c: Likewise.
      	* varasm.c: Likewise.
      	* vec.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      c-family/
      	* c-common.h: Include diagnostic-core.h. Error if already
      	included.
      	* c-semantics.c: Do not define GCC_DIAG_STYLE here.
      cp/
      	* cp-tree.h: Do not include toplev.h.
      	
      java/
      	* boehm.c: Include diagnostic-core.h in every file that includes
      	toplev.h.
      	* class.c: Likewise.
      	* constants.c: Likewise.
      	* decl.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* jcf-parse.c: Likewise.
      	* mangle.c: Likewise.
      	* mangle_name.c: Likewise.
      	* resource.c: Likewise.
      	* typeck.c: Likewise.
      	* verify-glue.c: Likewise.
      ada/
      	* gcc-interface/utils.c: Include diagnostic-core.h in every file
      	that includes toplev.h.
      lto/
      	* lto-coff.c: Include diagnostic-core.h in every file that
      	includes toplev.h.
      	* lto-elf.c: Likewise.
      	* lto-lang.c: Likewise.
      	* lto-macho.c: Likewise.
      
      From-SVN: r161943
      Manuel López-Ibáñez committed
  11. 05 Jul, 2010 2 commits
  12. 04 Jul, 2010 1 commit
    • gcc/ · f9621cc4
      	* optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
      	(vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
      	(cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
      	(sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
      	(sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
      	(sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
      	(sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
      	(sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
      	(sync_new_nand_optab): Redefine as macros.
      	(sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
      	Delete.
      	(direct_optab_index): New enum.
      	(direct_optab_d): New structure.
      	(direct_optab): New typedef.
      	(direct_optab_table): Declare.
      	(direct_optab_handler, set_direct_optab_handler): New functions.
      	(sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
      	(sync_lock_release_optab): New macros.
      	* optabs.c (direct_optab_table): New variable.
      	(movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
      	(prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
      	cmpstr_optab and cmpstrn_optab.
      	(emit_conditional_move): Likewise for movcc_optab.
      	(can_conditionally_move_p): Likewise for movcc_gen_code.
      	(init_insn_codes): Clear direct_optab_table.
      	(init_optabs): Don't initialize the new "direct optabs" here.
      	(get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
      	vcond_gen_code.
      	(expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
      	(expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
      	(expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
      	(expand_sync_operation): Likewise other sync_*_optabs.
      	(expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
      	to sync_compare_and_swap_optab.
      	(expand_sync_lock_test_and_set): Use direct_optab_handler for
      	sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
      	to the names of both.
      	* builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
      	cmpstr_optab and cmpstrn_optab.
      	(expand_builtin_lock_release): Likewise sync_lock_release.
      	* expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
      	(cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
      	(sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
      	(sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
      	(sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
      	(sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
      	(sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
      	(sync_lock_test_and_set, sync_lock_release): Delete.
      	(emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
      	(emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
      	* genopinit.c (optabs): Use set_direct_optab_handler for the new
      	macro optabs.
      	* omp-low.c (expand_omp_atomic_fetch_op): Update the type of
      	the "optab" local variable.  Use direct_optab_handler for optab and
      	sync_compare_and_swap_optab.
      	* reload1.c (reload_in_optab, reload_out_optab): Delete.
      	* targhooks.c (default_secondary_reload): Use direct_optab_handler for
      	reload_in_optab and reload_out_optab.
      	* config/alpha/alpha.c (alpha_secondary_reload): Likewise.
      	* config/frv/frv.c (frv_alloc_temp_reg): Likewise.
      	* config/pa/pa.c (pa_secondary_reload): Likewise.
      	* java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
      	for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
      	(compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
      	(VMSupportsCS8_builtin): Likewise.
      
      From-SVN: r161810
      Richard Sandiford committed
  13. 28 Jun, 2010 2 commits
    • java-tree.h (struct lang_type): Change type to a VEC. · 9062f848
      	* java-tree.h (struct lang_type) [catch_classes]: Change type to a
      	VEC.
      	* except.c (prepare_eh_table_type): Call CONSTRUCTOR_APPEND_ELT
      	instead of tree_cons.
      	* class.c (make_class): Add dummy entry to TYPE_CATCH_CLASSES.
      	(emit_catch_table): Adjust for new type of TYPE_CATCH_CLASSES.
      
      From-SVN: r161487
      Nathan Froyd committed
    • system.h: Poison GCC_EXCEPT_H for front-end files. · 3b06d379
      gcc/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* system.h: Poison GCC_EXCEPT_H for front-end files.
      
      	* langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
      	langhook.
      	* langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
      	Define to NULL by default.
      	* except.h: Define GCC_EXCEPT_H.
      	(doing_eh): Remove prototype.
      	(init_eh, init_eh_for_function): Move prototypes to toplev.h.
      	(lang_protect_cleanup_actions): Remove.
      	* except.c (lang_protect_cleanup_actions): Remove.
      	(doing_eh): Remove.
      	(gen_eh_region): Don't check doing_eh here.
      	* toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
      	* tree-eh.c (honor_protect_cleanup_actions): Use new langhook
      	instead of lang_protect_cleanup_actions.
      	* omp-low.c (maybe_catch_exception): Likewise.
      	* Makefile.in: Update dependencies.
      
      gcc/c-family/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* c-cppbuiltin.c: Do not include except.h.
      
      gcc/objc/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* objc-act.c: Do not include except.h.
      
      gcc/cp/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* init.c: Do not include except.h.
      	* decl.c: Likewise.
      	* expr.c: Likewise.
      	* cp-lang.c: Likewise.
      	* pt.c: Likewise.
      	* semantics.c: Likewise.
      	* decl2.c: Likewise.
      	* except.c: Likewise.
      	(init_exception_processing): Do not set the removed
      	lang_protect_cleanup_actions here.
      	(cp_protect_cleanup_actions): Make non-static and remove prototype.
      	(doing_eh): New, moved from except.c but removed the do_warning flag.
      	(expand_start_catch_block): Update doing_eh call.
      	(expand_end_catch_block): Likewise.
      	(build_throw): Likewise.
      	* cp-tree.h: Prototype cp_protect_cleanup_actions.
      	* cp-objcp-common.h: Set LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS to
      	cp_protect_cleanup_actions.
      	* Make-lang.in: Update dependencies.
      
      gcc/objcp/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* objcp-lang.c: Do not include except.h.
      	* Make-lang.in: Update dependencies.
      
      gcc/java/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* lang.c: Do not include except.h
      	* except.c: Likewise.
      	(doing_eh): New, moved from except.c (in gcc/) but removed the
      	do_warning flag.
      	(maybe_start_try): Update doing_eh call.
      	* Make-lang.in: Update dependencies.
      
      gcc/ada/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* gcc-interface/misc.c: Do not include except.h.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      gcc/fortran/ChangeLog:
      2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
      
      	* Make-lang.in: Update dependencies.
      
      From-SVN: r161484
      Steven Bosscher committed
  14. 23 Jun, 2010 1 commit
  15. 09 Jun, 2010 1 commit
    • fdl.texi: Move to GFDL version 1.3. · 07a67d6a
      gcc:
      	* doc/include/fdl.texi: Move to GFDL version 1.3.
      
      	* doc/cpp.texi: Move to GFDL version 1.3.
      	* doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
      	* doc/gccint.texi: Move to GFDL version 1.3.
      	* doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
      	* doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
      	* doc/invoke.texi: Move to GFDL version 1.3.
      
      gcc/fortran:
      	* gfc-internals.texi: Move to GFDL 1.3.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      
      gcc/java:
      	* gcj.texi: Move to GFDL version 1.3.  Fix copyright years.
      
      libgomp:
      	* libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
      
      From-SVN: r160518
      Gerald Pfeifer committed
  16. 08 Jun, 2010 1 commit
    • utils.c (init_gnat_to_gnu): Use typed GC allocation. · a9429e29
      gcc/ada:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
      	allocation.
      	(init_dummy_type): Likewise.
      	(gnat_pushlevel): Likewise.
      
      	* gcc-interface/trans.c (Attribute_to_gnu): Likewise.
      	(Subprogram_Body_to_gnu): Likewise.
      	(Compilation_Unit_to_gnu): Likewise.
      	(start_stmt_group): Likewise.
      	(extract_encoding): Likewise.
      	(decode_name): Likewise.
      
      	* gcc-interface/misc.c (gnat_printable_name): Likewise.
      
      	* gcc-interface/decl.c (annotate_value): Likewise.
      
      	* gcc-interface/ada-tree.h (struct lang_type): Add variable_size
      	GTY option.
      	(struct lang_decl): Likewise.
      	(SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
      	(SET_DECL_LANG_SPECIFIC): Likewise.
      
      gcc/c-family:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* c-pragma.c (push_alignment): Use typed GC allocation.
      	(handle_pragma_push_options): Likewise.
      
      	* c-common.c (parse_optimize_options): Likewise.
      
      	* c-common.h (struct sorted_fields_type): Add variable_size GTY
      	option.
      
      gcc/cp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* typeck2.c (abstract_virtuals_error): Likewise.
      
      	* pt.c (maybe_process_partial_specialization): Likewise.
      	(register_specialization): Likewise.
      	(add_pending_template): Likewise.
      	(lookup_template_class): Likewise.
      	(push_tinst_level): Likewise.
      
      	* parser.c (cp_lexer_new_main): Likewise.
      	(cp_lexer_new_from_tokens): Likewise.
      	(cp_token_cache_new): Likewise.
      	(cp_parser_context_new): Likewise.
      	(cp_parser_new): Likewise.
      	(cp_parser_nested_name_specifier_opt): Likewise.
      	(cp_parser_template_id): Likewise.
      
      	* name-lookup.c (binding_entry_make): Likewise.
      	(binding_table_construct): Likewise.
      	(binding_table_new): Likewise.
      	(cxx_binding_make): Likewise.
      	(pushdecl_maybe_friend): Likewise.
      	(begin_scope): Likewise.
      	(push_to_top_level): Likewise.
      
      	* lex.c (init_reswords): Likewise.
      	(retrofit_lang_decl): Likewise.
      	(cxx_dup_lang_specific_decl): Likewise.
      	(copy_lang_type): Likewise.
      	(cxx_make_type): Likewise.
      
      	* decl.c (make_label_decl): Likewise.
      	(check_goto): Likewise.
      	(start_preparsed_function): Likewise.
      	(save_function_data): Likewise.
      
      	* cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
      
      	* cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
      
      	* class.c (finish_struct_1): Likewise.
      
      	* cp-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* parser.c (cp_parser_new): Update comment to not reference
      	ggc_alloc.
      
      gcc/fortran:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* trans-types.c (gfc_get_nodesc_array_type): Use typed GC
      	allocation.
      	(gfc_get_array_type_bounds): Likewise.
      
      	* trans-decl.c (gfc_allocate_lang_decl): Likewise.
      	(gfc_find_module): Likewise.
      
      	* f95-lang.c (pushlevel): Likewise.
      
      	* trans.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      gcc/java:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* jcf-reader.c (jcf_parse_constant_pool): Use typed GC allocation.
      
      	* jcf-parse.c (java_parse_file): Likewise.
      	(process_zip_dir): Likewise.
      
      	* java-tree.h (MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC): Likewise.
      	(MAYBE_CREATE_TYPE_TYPE_LANG_SPECIFIC): Likewise.
      
      	* expr.c (add_type_assertion): Likewise.
      
      	* decl.c (make_binding_level): Likewise.
      	(java_dup_lang_specific_decl): Likewise.
      
      	* constants.c (set_constant_entry): Likewise.
      	(cpool_for_class): Likewise.
      
      	* class.c (add_method_1): Likewise.
      	(java_treetreehash_new): Likewise.
      
      	* java-tree.h (struct lang_type): Add variable_size GTY option.
      	(struct lang_decl): Likewise.
      
      	* jch.h (struct cpool_entry): Likewise.
      
      	* java-tree.h (java_treetreehash_create): Remove parameter ggc.
      
      	* except.c (prepare_eh_table_type): Update
      	java_treetreehash_create call.
      
      	* class.c (add_method_1): Update java_treetreehash_create call.
      	(java_treetreehash_create): Remove parameter gc.  Use
      	htab_create_ggc.
      
      gcc/lto:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* lto.c (lto_read_in_decl_state): Use typed GC allocation.
      	(lto_file_read): Likewise.
      	(new_partition): Likewise.
      	(read_cgraph_and_symbols): Likewise.
      
      gcc/objc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      	* objc-act.c (objc_volatilize_decl): Likewise.
      	(objc_build_string_object): Likewise.
      	(hash_init): Likewise.
      	(hash_enter): Likewise.
      	(hash_add_attr): Likewise.
      	(add_class): Likewise.
      	(start_class): Likewise.
      
      gcc/objcp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* objcp-decl.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC
      	allocation.
      
      gcc:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
      
      	* doc/gty.texi (GTY Options): Document typed GC allocation and
      	variable_size GTY option.
      
      	* ggc-internal.h: New.
      
      	* ggc.h: Update copyright year.
      	(digit_string): Move to stringpool.c.
      	(ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
      	(gt_pch_save_stringpool, gt_pch_fixup_stringpool)
      	(gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
      	(init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
      	(ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
      	(ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
      	(ggc_force_collect, ggc_get_size, ggc_statistics)
      	(ggc_print_common_statistics): Move to ggc-internal.h.
      	(digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
      	(ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
      	(GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
      	(ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
      	(ggc_min_heapsize_heuristic, ggc_alloc_zone)
      	(ggc_alloc_zone_pass_stat): Remove.
      	(ggc_internal_alloc_stat, ggc_internal_alloc)
      	(ggc_internal_cleared_alloc_stat): New.
      	(GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
      	(ggc_internal_vec_alloc_stat)
      	(ggc_internal_cleared_vec_alloc_stat)
      	(ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
      	(ggc_alloc_atomic_stat, ggc_alloc_atomic)
      	(ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(htab_create_ggc, splay_tree_new_ggc): Redefine.
      	(ggc_splay_alloc): Change the type of the first argument to
      	enum gt_types_enum.
      	(ggc_alloc_string): Make macro.
      	(ggc_alloc_string_stat): New.
      	(ggc_strdup): Redefine.
      	(rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
      	(ggc_alloc_rtvec_sized): New.
      	(ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
      	(ggc_internal_cleared_alloc_zone_stat)
      	(ggc_internal_zone_alloc_stat)
      	(ggc_internal_zone_cleared_alloc_stat)
      	(ggc_internal_zone_vec_alloc_stat)
      	(ggc_alloc_zone_rtx_def_stat)
      	(ggc_alloc_zone_tree_node_stat)
      	(ggc_alloc_zone_cleared_tree_node_stat)
      	(ggc_alloc_cleared_gimple_statement_d_stat): New.
      
      	* ggc-common.c: Include ggc-internal.h.
      	(ggc_internal_cleared_alloc_stat): Rename from
      	ggc_alloc_cleared_stat.
      	(ggc_realloc_stat): Use ggc_internal_alloc_stat.
      	(ggc_calloc): Remove.
      	(ggc_cleared_alloc_htab_ignore_args): New.
      	(ggc_cleared_alloc_ptr_array_two_args): New.
      	(ggc_splay_alloc): Add obj_type parameter.
      	(init_ggc_heuristics): Formatting fixes.
      
      	* ggc-none.c: Update copyright year.
      	(ggc_alloc_stat): Rename to ggc_alloc_stat.
      	(ggc_alloc_cleared_stat): Rename to
      	ggc_internal_cleared_alloc_stat.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-page.c: Update copyright year.  Include ggc-internal.h.
      	Remove references to ggc_alloc in comments.
      	(ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
      	(ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      	(struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
      
      	* ggc-zone.c: Include ggc-internal.h.  Remove references to
      	ggc_alloc in comments.
      	(ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
      	(ggc_internal_alloc_zone_pass_stat): New.
      	(ggc_internal_cleared_alloc_zone_stat): New.
      	(ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
      	(ggc_alloc_stat): Rename ggc_internal_alloc_stat.
      	(new_ggc_zone, destroy_ggc_zone): Remove.
      
      	* stringpool.c: Update copyright year.  Include ggc-internal.h
      	(digit_vector): Make static.
      	(digit_string): Moved from ggc.h.
      	(stringpool_ggc_alloc): Use ggc_alloc_atomic.
      	(ggc_alloc_string): Rename to ggc_alloc_string_stat.
      
      	* Makefile.in (GGC_INTERNAL_H): New.
      	(ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
      	$(GGC_INTERNAL_H) to dependencies.
      
      	* gentype.c: Update copyright year.
      	(walk_type): Accept variable_size GTY option.
      	(USED_BY_TYPED_GC_P): New macro.
      	(write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
      	whitespace at the end of strings.
      	(get_type_specifier, variable_size_p): New functions.
      	(alloc_quantity, alloc_zone): New enums.
      	(write_typed_alloc_def): New function.
      	(write_typed_struct_alloc_def): Likewise.
      	(write_typed_typed_typedef_alloc_def): Likewise.
      	(write_typed_alloc_defns): Likewise.
      	(output_typename, write_splay_tree_allocator_def): Likewise.
      	(write_splay_tree_allocators): Likewise.
      	(main): Call write_typed_alloc_defns and
      	write_splay_tree_allocators.
      
      	* lto-streamer.h (lto_file_decl_data_ptr): New.
      
      	* passes.c (order): Define using cgraph_node_ptr.
      
      	* strinpool.c (struct string_pool_data): Declare nested_ptr using
      	ht_identifier_ptr.
      
      	* gimple.h (union gimple_statement_d): Likewise.
      
      	* rtl.h (struct rtx_def): Likewise.
      	(struct rtvec_def): Likewise.
      
      	* tree.h (union tree_node): Likewise.
      
      	* tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
      
      	* cfgloop.c (record_loop_exits): Use htab_create_ggc.
      
      	* tree-scalar-evolution.c (scev_initialize): Likewise.
      
      	* alias.c (record_alias_subset): Update splay_tree_new_ggc call.
      
      	* dwarf2asm.c (dw2_force_const_mem): Likewise.
      
      	* omp-low.c (lower_omp_critical): Likewise.
      
      	* bitmap.h (struct bitmap_head_def): Update comment to not
      	reference ggc_alloc.
      
      	* config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
      
      	* ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
      
      	* ipa-prop.c (duplicate_ggc_array): Rename to
      	duplicate_ipa_jump_func_array.  Use typed GC allocation.
      	(ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
      
      	* gimple.c (gimple_alloc_stat): Use
      	ggc_alloc_cleared_gimple_statement_d_stat.
      
      	* varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
      
      	* tree.c (make_node_stat): Use
      	ggc_alloc_zone_cleared_tree_node_stat.
      	(make_tree_vec_stat): Likewise.
      	(build_vl_exp_stat): Likewise.
      	(copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
      	(make_tree_binfo_stat): Likewise.
      	(tree_cons_stat): Likewise.
      
      	* rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
      	(shallow_copy_rtx_stat): Likewise.
      	(make_node_stat): Likewise.
      
      	* lto-symtab.c: Fix comment.
      
      	* tree-cfg.c (create_bb): Update comment to not reference
      	ggc_alloc_cleared.
      	* tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
      	value.
      
      	* varpool.c (varpool_node): Use typed GC allocation.
      	(varpool_extra_name_alias): Likewise.
      
      	* varasm.c (emutls_decl): Likewise.
      	(get_unnamed_section): Likewise.
      	(get_noswitch_section): Likewise.
      	(get_section): Likewise.
      	(get_block_for_section): Likewise.
      	(build_constant_desc): Likewise.
      	(create_constant_pool): Likewise.
      	(force_const_mem): Likewise.
      
      	* tree.c (build_vl_exp_stat): Likewise.
      	(build_real): Likewise.
      	(build_string): Likewise.
      	(decl_debug_expr_insert): Likewise.
      	(decl_value_expr_insert): Likewise.
      	(type_hash_add): Likewise.
      	(build_omp_clause): Likewise.
      
      	* tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
      
      	* tree-ssa.c (init_tree_ssa): Likewise.
      
      	* tree-ssa-structalias.c (heapvar_insert): Likewise.
      
      	* tree-ssa-operands.c (ssa_operand_alloc): Likewise.
      
      	* tree-ssa-loop-niter.c (record_estimate): Likewise.
      
      	* tree-ssa-alias.c (get_ptr_info): Likewise.
      
      	* tree-scalar-evolution.c (new_scev_info_str): Likewise.
      
      	* tree-phinodes.c (allocate_phi_node): Likewise.
      
      	* tree-iterator.c (tsi_link_before): Likewise.
      	(tsi_link_after): Likewise.
      
      	* tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
      
      	* tree-dfa.c (create_var_ann): Likewise.
      
      	* tree-cfg.c (create_bb): Likewise.
      
      	* toplev.c (alloc_for_identifier_to_locale): Likewise.
      	(general_init): Likewise.
      
      	* stringpool.c (stringpool_ggc_alloc): Likewise.
      	(gt_pch_save_stringpool): Likewise.
      
      	* sese.c (if_region_set_false_region): Likewise.
      
      	* passes.c (do_per_function_toporder): Likewise.
      
      	* optabs.c (set_optab_libfunc): Likewise.
      	(set_conv_libfunc): Likewise.
      
      	* lto-symtab.c (lto_symtab_register_decl): Likewise.
      
      	* lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
      	(input_eh_region): Likewise.
      	(input_eh_lp): Likewise.
      	(make_new_block): Likewise.
      	(unpack_ts_real_cst_value_fields): Likewise.
      
      	* lto-section-in.c (lto_new_in_decl_state): Likewise.
      
      	* lto-cgraph.c (input_node_opt_summary): Likewise.
      
      	* loop-init.c (loop_optimizer_init): Likewise.
      
      	* lambda.h (lambda_vector_new): Likewise.
      
      	* lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
      
      	* ira.c (update_equiv_regs): Likewise.
      
      	* ipa.c (cgraph_node_set_new): Likewise.
      	(cgraph_node_set_add): Likewise.
      	(varpool_node_set_new): Likewise.
      	(varpool_node_set_add): Likewise.
      
      	* ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
      	(duplicate_ipa_jump_func_array): Likewise.
      	(ipa_read_node_info): Likewise.
      
      	* ipa-cp.c (ipcp_create_replace_map): Likewise.
      
      	* integrate.c (get_hard_reg_initial_val): Likewise.
      
      	* gimple.c (gimple_alloc_stat): Likewise.
      	(gimple_build_omp_for): Likewise.
      	(gimple_seq_alloc): Likewise.
      	(gimple_copy): Likewise.
      
      	* gimple-iterator.c (gsi_insert_before_without_update): Likewise.
      	(gsi_insert_after_without_update): Likewise.
      
      	* function.c (add_frame_space): Likewise.
      	(insert_temp_slot_address): Likewise.
      	(assign_stack_temp_for_type): Likewise.
      	(allocate_struct_function): Likewise.
      	(types_used_by_var_decl_insert): Likewise.
      
      	* except.c (init_eh_for_function): Likewise.
      	(gen_eh_region): Likewise.
      	(gen_eh_region_catch): Likewise.
      	(gen_eh_landing_pad): Likewise.
      	(add_call_site): Likewise.
      
      	* emit-rtl.c (get_mem_attrs): Likewise.
      	(get_reg_attrs): Likewise.
      	(start_sequence): Likewise.
      	(init_emit): Likewise.
      
      	* dwarf2out.c (new_cfi): Likewise.
      	(queue_reg_save): Likewise.
      	(dwarf2out_frame_init): Likewise.
      	(new_loc_descr): Likewise.
      	(find_AT_string): Likewise.
      	(new_die): Likewise.
      	(add_var_loc_to_decl): Likewise.
      	(clone_die): Likewise.
      	(clone_as_declaration): Likewise.
      	(break_out_comdat_types): Likewise.
      	(new_loc_list): Likewise.
      	(loc_descriptor): Likewise.
      	(add_loc_descr_to_each): Likewise.
      	(add_const_value_attribute): Likewise.
      	(tree_add_const_value_attribute): Likewise.
      	(add_comp_dir_attribute): Likewise.
      	(add_name_and_src_coords_attributes): Likewise.
      	(lookup_filename): Likewise.
      	(store_vcall_insn): Likewise.
      	(dwarf2out_init): Likewise.
      
      	* dbxout.c (dbxout_init): Likewise.
      
      	* config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
      
      	* config/sparc/sparc.c (sparc_init_machine_status): Likewise.
      
      	* config/score/score7.c (score7_output_external): Likewise.
      
      	* config/score/score3.c (score3_output_external): Likewise.
      
      	* config/s390/s390.c (s390_init_machine_status): Likewise.
      
      	* config/rs6000/rs6000.c (builtin_function_type): Likewise.
      	(rs6000_init_machine_status): Likewise.
      	(output_toc): Likewise.
      
      	* config/pa/pa.c (pa_init_machine_status): Likewise.
      	(get_deferred_plabel): Likewise.
      
      	* config/moxie/moxie.c (moxie_init_machine_status): Likewise.
      
      	* config/mmix/mmix.c (mmix_init_machine_status): Likewise.
      
      	* config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
      
      	* config/mep/mep.c (mep_init_machine_status): Likewise.
      	(mep_note_pragma_flag): Likewise.
      
      	* config/m32c/m32c.c (m32c_init_machine_status): Likewise.
      
      	* config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
      
      	* config/ia64/ia64.c (ia64_init_machine_status): Likewise.
      
      	* config/i386/winnt.c (i386_pe_record_external_function): Likewise.
      	(i386_pe_maybe_record_exported_symbol): Likewise.
      
      	* config/i386/i386.c (get_dllimport_decl): Likewise.
      	(ix86_init_machine_status): Likewise.
      	(assign_386_stack_local): Likewise.
      
      	* config/frv/frv.c (frv_init_machine_status): Likewise.
      
      	* config/darwin.c (machopic_indirection_name): Likewise.
      
      	* config/cris/cris.c (cris_init_machine_status): Likewise.
      
      	* config/bfin/bfin.c (bfin_init_machine_status): Likewise.
      
      	* config/avr/avr.c (avr_init_machine_status): Likewise.
      
      	* config/arm/arm.c (arm_init_machine_status): Likewise.
      
      	* config/alpha/alpha.c (alpha_init_machine_status): Likewise.
      	(alpha_need_linkage): Likewise.
      	(alpha_use_linkage): Likewise.
      
      	* cgraph.c (cgraph_allocate_node): Likewise.
      	(cgraph_create_edge_1): Likewise.
      	(cgraph_create_indirect_edge): Likewise.
      	(cgraph_add_asm_node): Likewise.
      
      	* cfgrtl.c (init_rtl_bb_info): Likewise.
      
      	* cfgloop.c (alloc_loop): Likewise.
      	(rescan_loop_exit): Likewise.
      
      	* cfg.c (init_flow): Likewise.
      	(alloc_block): Likewise.
      	(unchecked_make_edge): Likewise.
      
      	* c-parser.c (c_parse_init): Likewise.
      	(c_parse_file): Likewise.
      
      	* c-decl.c (bind): Likewise.
      	(record_inline_static): Likewise.
      	(push_scope): Likewise.
      	(make_label): Likewise.
      	(lookup_label_for_goto): Likewise.
      	(finish_struct): Likewise.
      	(finish_enum): Likewise.
      	(c_push_function_context): Likewise.
      
      	* bitmap.c (bitmap_element_allocate): Likewise.
      	(bitmap_gc_alloc_stat): Likewise.
      
      	* alias.c (record_alias_subset): Likewise.
      	(init_alias_analysis): Likewise.
      
      include:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.h: Update copyright years.
      	(splay_tree_s): Document fields.
      	(splay_tree_new_typed_alloc): New.
      
      	* hashtab.h: Update copyright years.
      	(htab_create_typed_alloc): New.
      
      libcpp:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* include/symtab.h (ht_identifier_ptr): New.
      
      libiberty:
      
      2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
      
      	* splay-tree.c: Update copyright years.
      	(splay_tree_new_typed_alloc): New.
      	(splay_tree_new_with_allocator): Use it.
      
      	* hashtab.c: Update copyright years.
      	(htab_create_typed_alloc): New.
      	(htab_create_alloc): Use it.
      
      	* functions.texi: Regenerate.
      
      From-SVN: r160425
      Laurynas Biveinis committed
  17. 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
  18. 29 May, 2010 1 commit
  19. 28 May, 2010 3 commits
    • 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
    • java-tree.h (method_entry): Declare. · aa6d7c81
      	* java-tree.h (method_entry): Declare.  Declare VECs containing it.
      	(struct lang_type): Change type of otable_methods, atable_methods, and
      	itable_methods to VECs.  Fix comment for atable_methods.
      	(emit_symbol_table): Take a VEC instead of a tree.
      	(get_symbol_table_index): Take a VEC * instead of a tree *.
      	* class.c (add_table_and_syms): Take a VEC instead of a tree.
      	(emit_symbol_table): Update for changed parameter type.
      	* expr.c (get_symbol_table_index): Likewise.
      
      From-SVN: r159974
      Nathan Froyd committed
  20. 27 May, 2010 1 commit
    • Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS. · 7a3b4887
      gcc/ChangeLog:
      	* Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
      	(ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
      	(ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
      	(ALL_HOST_OBJS): Now a union of the above two.
      	<section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
      	all files in ALL_HOST_FRONTEND_OBJS.
      	* system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
      	* c-common.c: Pretend to be a backend file by undefining
      	IN_GCC_FRONTEND (still need rtl.h here).
      
      ada/ChangeLog:
      	* gcc-interface/decl.c: Pretend to be a backend file by undefining
      	IN_GCC_FRONTEND (still need rtl.h here).
      
      java/ChangeLog:
      	* buildings.c: Pretend to be a backend file by undefining
      	IN_GCC_FRONTEND (still need rtl.h here).
      
      From-SVN: r159927
      Steven Bosscher committed
  21. 26 May, 2010 2 commits
    • java-tree.h (struct lang_decl_func): Change type of throws_list field to a VEC. · 6484716c
      	* java-tree.h (struct lang_decl_func): Change type of throws_list
      	field to a VEC.
      	* jcf-parse.c (HANDLE_EXCEPTIONS_ATTRIBUTE): Adjust for changed type
      	of DECL_FUNCTION_THROWS.
      	* class.c (make_method_value): Likewise.
      
      From-SVN: r159899
      Nathan Froyd committed
    • class.c (utf8_decl_list): Delete. · cf484e91
      	* class.c (utf8_decl_list): Delete.
      	(build_utf8_ref): Remove references to it.
      	* java-tree.h (all_class_list): Delete.
      	(predef_filenames): Delete.
      	(enum java_tree_index) [JTI ALL_CLASS_LIST,JTI_PREDEF_FILENAMES]:
      	Delete.
      	* jcf-parse.c (parse_roots): Decrease size to 2.
      	(current_file_list): Convert to a VEC.
      	(all_class_list): Declare.
      	(jcf_parse): Adjust for new type of all_class_list.
      	(java_layout_seen_class_methods): Likewise.
      	(predefined_filenames): Declare.
      	(add_predefined_file): Use it.
      	(predefined_filename_p): Likewise.
      	(java_parse_file): Adjust for new type of current_file_list.                                                                                                                                                     *
      
      From-SVN: r159870
      Nathan Froyd committed
  22. 25 May, 2010 2 commits
  23. 24 May, 2010 1 commit
  24. 23 May, 2010 2 commits
    • java-gimplify.c: Do not include tm.h, toplev.h. · f67cc87d
      	* java-gimplify.c: Do not include tm.h, toplev.h.
      	* typeck.c: Do not include tm.h.
      	* mangle_name.c: Do not include tm.h.
      	* jcf-dump.c: Do not include tm.h, ggc.h.
      	* class.c: Do not include rtl.h, tm_p.h, target.h, except.h, cgraph.h.
      	* decl.c: Do not include tm.h, rtl.h, function.h, expr.h, except.h,
      	and timevar.h.
      	* jcf-parse.c: Do not include tm.h and tm_p.h.
      	* resource.c: Do not include tm.h, rtl.h, flags.h, obstack.h,
      	target.h, and expr.h.
      	* except.c: Do not include tm.h, rtl.h, function.h.
      	* builtins.c: Do not include convert.h.  Explain why RTL headers
      	have to be included here.
      	* verify-glue.c: Do not include tm.h.
      	* jcf-depend.c: Do not include tm.h.
      	* jcf-reader.c: Include ggc.h.
      	* jcf-io.c: Do not include tm.h, toplev.h.
      	* expr.c: Do not include tm.h, rtl.h, expr.h, except.h, tm_p.h,
      	gimple.h.
      	* lang.c: Do not include rtl.h, expr.h.
      	* Make-lang.in: Update dependencies.
      
      From-SVN: r159764
      Steven Bosscher committed
    • jcf-parse.c: Include bitmap.h. · 62a00d08
      	* jcf-parse.c: Include bitmap.h.
      	* Make-lang.in: Update dependencies.
      
      From-SVN: r159748
      Steven Bosscher committed
  25. 21 May, 2010 1 commit
    • tree.h: Include real.h and fixed-value.h as basic datatypes. · 40013784
      gcc/ChangeLog:
      	* tree.h: Include real.h and fixed-value.h as basic datatypes.
      	* dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
      	tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
      	tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
      	tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
      	genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
      	tree-pretty-print.c, tree-loop-distribution.c,
      	tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
      	tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
      	tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
      	tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
      	tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
      	tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
      	tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
      	tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
      	tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
      	tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
      	genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
      	tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
      	gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
      	tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
      	tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
      	store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
      	tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
      	tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
      	tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
      	tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
      	fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
      	tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
      	config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
      	config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
      	config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
      	config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
      	config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
      	config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
      	config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
      	config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
      	config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
      	config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
      	config/score/score7.c, config/score/score.c, config/arm/arm.c,
      	config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
      	config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
      	config/bfin/bfin.c:
      	Clean up redundant includes.
      	* Makefile.in: Update accordingly.
      
      java/ChangeLog:
      	* typeck.c, decl.c, jcf-parse.c, except.c, expr.c:
      
      cp/Changelog:
      	* error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
      	Clean up redundant includes.
      
      fortran/ChangeLog:
      	* trans-const.c, trans-types.c, trans-intrinsic.c:
      	Clean up redundant includes.
      
      From-SVN: r159663
      Steven Bosscher committed
  26. 20 May, 2010 1 commit
  27. 19 May, 2010 2 commits
  28. 18 May, 2010 1 commit
    • tree.h (build_call_list): Remove. · 3fcb9d1b
      gcc/
      	* tree.h (build_call_list): Remove.
      	* tree.c (build_call_list): Remove.
      
      gcc/ada/
      	* gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
      	build_call_list.
      	* gcc-interface/utils.c (build_function_stub): Likewise.
      
      gcc/cp/
      	* tree.c (build_min_non_dep_call_vec): Update comment.
      
      gcc/java/
      	* expr.c (expand_java_multianewarray): Use build_call_vec instead of
      	build_call_list.
      	(pop_arguments): Return a VEC instead of a tree.  Take a method type
      	rather than a list of argument types.
      	(rewrite_rule): Change signature. of rewrite_arglist member.
      	(rewrite_arglist_getcaller): Update signature.
      	(rewrite_arglist_getclass): Likewise.
      	(maybe_rewrite_invocation): Update for rewrite_arglist change.
      	(build_known_method_ref): Take a VEC instead of a tree.
      	(invoke_build_dtable): Likewise.
      	(expand_invoke): Update calls to pop_arguments.  Use build_call_vec
      	instead of build_call_list.
      	(build_jni_stub): Use build_call_vec instead of build_call_list.
      	* java-tree.h (maybe_rewrite_invocation): Update declaration.
      	(build_known_method_ref): Likewise.
      	(invoke_build_dtable): Likewise.
      
      From-SVN: r159548
      Nathan Froyd committed