1. 04 Oct, 2010 8 commits
    • optc-gen.awk: Define global_options_set. · d4d24ba4
      	* optc-gen.awk: Define global_options_set.  Don't define
      	target_flags_explicit.
      	* opth-gen.awk: Declare global_options_set.  Define
      	target_flags_explicit as macro.
      	* opts-common.c (handle_option): Take opts_set and generated_p
      	parameters.
      	(handle_generated_option, read_cmdline_option, set_option): Take
      	opts_set parameter.
      	(set_option): Use opts_set instead of hardcoding target_flags and
      	target_flags_explicit.
      	* opts.c (sel_sched_switch_set, profile_arc_flag_set,
      	flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
      	flag_value_profile_transformations_set, flag_peel_loops_set,
      	flag_branch_probabilities_set, flag_inline_functions_set,
      	flag_ipa_cp_set, flag_ipa_cp_clone_set,
      	flag_predictive_commoning_set, flag_unswitch_loops_set,
      	flag_gcse_after_reload_set): Remove.
      	(common_handle_option, lang_handle_option, target_handle_option):
      	Take opts_set parameter.  Assert that it is &global_options_set.
      	(common_handle_option): Don't set _set variables.  Check opts_set
      	instead of such variables.
      	(enable_warning_as_error): Pass &global_options_set to
      	handle_generated_option.
      	* opts.h (cl_option_handler_func.handler, set_option,
      	handle_option, handle_generated_option, read_cmdline_option): Add
      	opts_set parameters.
      	(handle_option): Add generated_p parameter.
      	* config/i386/i386.c (ix86_function_specific_save,
      	ix86_function_specific_restore): Updat for renaming of
      	target_flags_explicit field.
      	* config/i386/i386.opt (target_flags_explicit): Rename to
      	ix86_target_flags_explicit.
      	* config/ia64/ia64.c (ia64_override_options_after_change): Check
      	global_options_set.x_flag_selective_scheduling and
      	global_options_set.x_flag_selective_scheduling2, not
      	sel_sched_switch_set.
      	* flags.h (sel_sched_switch_set,
      	flag_speculative_prefetching_set): Remove.
      	* gcc.c (driver_handle_option): Take opts_set parameter.  Assert
      	that it is &global_options_set.
      	(process_command): Pass &global_options_set to
      	read_cmdline_option.
      	* lto-opts.c (lto_reissue_options): Pass &global_options_set to
      	set_option.
      	* toplev.c (target_flags_explicit): Remove.
      
      c-family:
      	* c-opts.c (c_common_handle_option): Pass &global_options_set to
      	handle_generated_option.
      
      From-SVN: r164932
      Joseph Myers committed
    • re PR middle-end/45871 (lto bootstrap miscompiles expmed.c) · 4a2da105
      	PR middle-end/45871
      	* tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
      	use get_ref_base_and_offset to handle references.
      	(fold_const_aggregate_ref): Update.
      
      From-SVN: r164931
      Jan Hubicka committed
    • re PR tree-optimization/45572 (various ICEs with -finline-small-functions… · 1dbee8c9
      re PR tree-optimization/45572 (various ICEs with -finline-small-functions -findirect-inlining -finline-functions)
      
      2010-10-04  Martin Jambor  <mjambor@suse.cz>
      
      	PR tree-optimization/45572
      	* ipa-prop.c (ipa_make_edge_direct_to_target): Call
      	ipa_check_create_node_params.
      	* ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
      
      	* testsuite/g++.dg/ipa/pr45572-1.C: New test.
      	* testsuite/g++.dg/ipa/pr45572-2.C: Likewise.
      
      From-SVN: r164930
      Martin Jambor committed
    • passes.texi: Clean up. · eeb4dfda
      2010-10-04  Yao Qi  <yao@codesourcery.com>
      
              * doc/passes.texi: Clean up.
      
      From-SVN: r164929
      Yao Qi committed
    • f95-lang.c (current_translation_unit): New global variable. · e5b16755
      2010-10-04  Richard Guenther  <rguenther@suse.de>
      
      	* f95-lang.c (current_translation_unit): New global variable.
      	(gfc_create_decls): Build a translation-unit decl.
      	(pushdecl): In the global binding-level use the
      	translation-unit decl as DECL_CONTEXT.
      	* trans-decl.c (gfc_get_symbol_decl): Use DECL_FILE_SCOPE_P.
      	(build_function_decl): Likewise.  Delay setting the assembler
      	name, leave setting of DECL_CONTEXT to pushdecl.
      	(trans_function_start): Use DECL_FILE_SCOPE_P.
      	(gfc_create_module_variable): Likewise.  Remove questionable
      	asserts.
      	* trans.c (gfc_generate_module_code): Likewise.
      
      From-SVN: r164928
      Richard Guenther committed
    • acinclude.m4 (GLIBCXX_ENABLE): Properly quote argument to AC_HELP_STRING. · b453ace3
      * acinclude.m4 (GLIBCXX_ENABLE): Properly quote argument to
      AC_HELP_STRING.  Double quote expansion of _g_help.
      (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Double quote third argument of
      GLIBCXX_ENABLE.
      (GLIBCXX_ENABLE_CHEADERS): Likewise.
      (GLIBCXX_ENABLE_CLOCALE): Likewise.
      (GLIBCXX_ENABLE_ALLOCATOR): Likewise.
      (GLIBCXX_ENABLE_CSTDIO): Likewise.
      (GLIBCXX_ENABLE_SYMVERS): Likewise.
      * configure: Regenerate.
      
      From-SVN: r164927
      Andreas Schwab committed
    • c-typeck.c (lookup_field): If -fplan9-extensions, permit referring to a field using a typedef name. · 478a1c5b
      gcc/:
      	* c-typeck.c (lookup_field): If -fplan9-extensions, permit
      	referring to a field using a typedef name.
      	(find_anonymous_field_with_type): New static function.
      	(convert_to_anonymous_field): New static function.
      	(convert_for_assignment): If -fplan9-extensions, permit converting
      	pointer to struct to pointer to anonymous field.
      	* c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
      	fields.
      	(is_duplicate_field): New static function.
      	(detect_field_duplicates_hash): If -fplan9-extensions, check for
      	typedef names duplicating field names.
      	(detect_field_duplicates): Likewise.
      	* doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
      	(C Dialect Options): Document -fplan9-extensions.
      	* doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
      gcc/c-family/:
      	* c.opt (-fplan9-extensions): New option.
      gcc/testsuite/:
      	* gcc.dg/anon-struct-11.c: New test.
      	* gcc.dg/anon-struct-12.c: New test.
      	* gcc.dg/anon-struct-13.c: New test.
      	* gcc.dg/anon-struct-14.c: New test.
      
      From-SVN: r164926
      Ian Lance Taylor committed
    • Daily bump. · 3b5269a9
      From-SVN: r164924
      GCC Administrator committed
  2. 03 Oct, 2010 8 commits
    • Revert revision 164914. · a1e53f3f
      gcc/
      
      2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
      	revision 164914.
      	(vect_create_data_ref_ptr): Likewise.
      	* tree-vect-stmts.c (vectorizable_store): Likewise.
      	(perm_mask_for_reverse): Likewise.
      	(reverse_vec_elements): Likewise.
      	(vectorizable_load): Likewise.
      
      gcc/testsuite/
      
      2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* g++.dg/torture/pr45764.C: Revert revision 164914.
      	* gcc.dg/vect/pr43432.c: Likewise.
      	* gcc.dg/vect/vect-114.c: Likewise.
      	* gcc.dg/vect/vect-15.c: Likewise.
      
      From-SVN: r164919
      H.J. Lu committed
    • typeck.c (require_complete_type_sfinae): Add complain parm to... · 79fe346e
      	* typeck.c (require_complete_type_sfinae): Add complain parm to...
      	(require_complete_type): ...this function.
      	(cp_build_array_ref, convert_arguments): Use it.
      	(convert_for_initialization, cp_build_modify_expr): Likewise.
      	* cp-tree.h: Declare it.
      	* call.c (build_over_call): Use it.
      
      From-SVN: r164918
      Jason Merrill committed
    • cppbuiltin.c: New file. · 82a1c2fe
      gcc/
      	* cppbuiltin.c: New file.
      	* cppbuiltin.h: New file.
      	* Makefile.in: Take into account cppbuiltin.{h,c}.
      
      gcc/c-family/
      	* c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
      	Remove.
      	(c_cpp_builtins): Call functions from cppbuiltin.c instead
      	of duplicating code.
      
      gcc/fortran/
      	* cpp.c (cpp_define_builtins): Call functions from cppbuiltin.c
      	instead of duplicating code.
      	* Make-lang.in: Add dependency on cppbuiltin.h. Don't define
      	BASEVER.
      
      From-SVN: r164917
      François-Xavier Coudert committed
    • lto-cgraph.c (input_cgraph): Check for missing sections. · f1e92a43
      gcc/
          
      2010-10-03  Andi Kleen <ak@linux.intel.com>
          
      	* lto-cgraph.c (input_cgraph): Check for missing sections.
          
      gcc/lto/
         
      2010-10-03  Andi Kleen <ak@linux.intel.com>
          
          	* lto.c (lto_file_finalize): Replace gcc_assert for missing section
                with fatal_error.
      
      From-SVN: r164916
      Andi Kleen committed
    • i386.md (*ashl<mode>3_mask): Change operand 2 preticate to nonimmediate_operand. · 5ed69344
      	* config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
      	to nonimmediate_operand.  Force operand 2 to register when allowed.
      	(*<shiftrt_insn><mode>3_mask): Ditto.
      	(*<rotate_insn><mode>3_mask): Ditto.
      
      From-SVN: r164915
      Uros Bizjak committed
    • Disallow negative steps in vectorizer. · 888a22d0
      gcc/
      
      2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR tree-optimization/45720
      	PR tree-optimization/45764
      	* tree-vect-data-refs.c (vect_analyze_data_ref_access):
      	Don't accept backwards consecutive accesses.
      	(vect_create_data_ref_ptr): Disallow negative steps.
      
      	* tree-vect-stmts.c (vectorizable_store): Allow negative steps.
      	(perm_mask_for_reverse): Removed.
      	(reverse_vec_elements): Likewise.
      	(vectorizable_load): Don't hanle negative steps.
      
      gcc/testsuite/
      
      2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR tree-optimization/45720
      	PR tree-optimization/45764
      	* g++.dg/torture/pr45764.C: New.
      
      	* gcc.dg/vect/pr43432.c: Xfail.
      	* gcc.dg/vect/vect-114.c: Likewise.
      	* gcc.dg/vect/vect-15.c: Likewise.
      
      From-SVN: r164914
      H.J. Lu committed
    • Revert the pvs change. · 128dbdd2
      2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR libstdc++/45863
      	* scripts/extract_symvers: Revert the pvs change.
      
      From-SVN: r164913
      H.J. Lu committed
    • Daily bump. · f1400769
      From-SVN: r164912
      GCC Administrator committed
  3. 02 Oct, 2010 7 commits
  4. 01 Oct, 2010 17 commits