1. 28 Oct, 2009 30 commits
    • trans-common.c (create_common): Set TREE_PUBLIC to false on fake variables. · 4d62b56a
      2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
      
      	* trans-common.c (create_common): Set TREE_PUBLIC to false on
      	fake variables.
      
      2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
      
      	* dbxout.c (dbxout_common_check): Accept non public trees.
      	* dwarf2out.c (fortran_common): Accept non public trees.
      
      From-SVN: r153685
      Rafael Avila de Espindola committed
    • common.opt (fuse-linker-plugin): New option. · da18ea94
      2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
      
      	* common.opt (fuse-linker-plugin): New option.
      	* gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
      	fuse-linker-plugin.
      	* opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
      
      From-SVN: r153683
      Rafael Avila de Espindola committed
    • Core issue 812, 861 · 160594b0
      	Core issue 812, 861
      	* name-lookup.c (set_decl_namespace): Deal properly with inline
      	namespaces.
      	(qualified_lookup_using_namespace): Overhaul.
      	* pt.c (print_candidates): Handle getting an OVERLOAD.
      
      change lookup algorithm
      
      From-SVN: r153682
      Jason Merrill committed
    • * decl.c (cp_fname_init): Correct build_string argument. · 34ad94d8
      From-SVN: r153681
      Jason Merrill committed
    • re PR target/39715 ([cond-optab] extra sign extensions on Thumb) · c4bb78e9
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/39715
      	* config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
      	(gen_cstoresi_ltu_thumb1): New splitter.
      
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/39715
      	* gcc.target/arm/thumb-ltu.c: New.
      
      From-SVN: r153678
      Paolo Bonzini committed
    • re PR lto/41808 (error: non-trivial conversion at assignment) · cfee9aa4
      2009-10-28  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/41808
      	PR lto/41839
      	* tree-ssa.c (useless_type_conversion_p): Do not treat
      	conversions to pointers to incomplete types as useless.
      	* gimple.c (gimple_types_compatible_p): Compare struct tags,
      	not typedef names.
      
      	* gcc.dg/lto/20091027-1_0.c: New testcase.
      	* gcc.dg/lto/20091027-1_1.c: Likewise.
      	* g++.dg/lto/20091026-1_0.C: Likewise.
      	* g++.dg/lto/20091026-1_1.C: Likewise.
      	* g++.dg/lto/20091026-1_a.h: Likewise.
      
      From-SVN: r153671
      Richard Guenther committed
    • re PR middle-end/41837 (Using '-O -fipa-struct-reorg -fwhole-program… · a1c65695
      re PR middle-end/41837 (Using '-O -fipa-struct-reorg -fwhole-program -fprofile-generate' gives 'internal compiler error: Segmentation fault')
      
      	PR middle-end/41837
      	* ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
      	fields don't have DECL_NAME.
      
      	* gcc.dg/pr41837.c: New test.
      
      From-SVN: r153670
      Jakub Jelinek committed
    • re PR debug/41801 (VTA: ICE in loc_cmp.) · f46835f5
      	PR debug/41801
      	* builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
      	call convert_memory_address on addr.
      
      	* g++.dg/ext/sync-3.C: New test.
      
      From-SVN: r153669
      Jakub Jelinek committed
    • re PR target/41762 (internal compiler error when compiling xorg-server) · 6ac719d3
      	PR target/41762
      	* config/i386/i386.c (ix86_pic_register_p): Don't call
      	rtx_equal_for_cselib_p for VALUEs discarded as useless.
      
      	* gcc.dg/pr41762.c: New test.
      
      From-SVN: r153667
      Jakub Jelinek committed
    • var-tracking.c (emit_note_insn_var_location): Don't call the second… · 7cf72011
      var-tracking.c (emit_note_insn_var_location): Don't call the second vt_expand_loc unnecessarily when...
      
      	* var-tracking.c (emit_note_insn_var_location): Don't call the second
      	vt_expand_loc unnecessarily when location is not a register nor
      	memory.
      
      From-SVN: r153666
      Jakub Jelinek committed
    • var-tracking.c (emit_note_insn_var_location): Get the mode of a variable part… · e70545b0
      var-tracking.c (emit_note_insn_var_location): Get the mode of a variable part from its REG, MEM or VALUE.
      
      	* var-tracking.c (emit_note_insn_var_location): Get the mode of
      	a variable part from its REG, MEM or VALUE.
      
      From-SVN: r153665
      Richard Sandiford committed
    • gimple.c (gimple_get_alias_set): Fix comment typo. · f883d997
      2009-10-28  Richard Guenther  <rguenther@suse.de>
      
              * gimple.c (gimple_get_alias_set): Fix comment typo.
      
      From-SVN: r153664
      Richard Guenther committed
    • [multiple changes] · 68523ddb
      2009-10-28  Bob Duff  <duff@adacore.com>
      
      	* s-fileio.adb: Give more information in exception messages.
      
      2009-10-28  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_ugn.texi: Document new -gnatyt requirement for space after right
      	paren if next token starts with digit or letter.
      	* styleg.adb (Check_Right_Paren): New rule for space after if next
      	character is a letter or digit.
      
      From-SVN: r153663
      Arnaud Charlet committed
    • [multiple changes] · 66a63e0d
      2009-10-28  Thomas Quinot  <quinot@adacore.com>
      
      	* s-crtl.ads (System.CRTL.strerror): New function.
      
      2009-10-28  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_type.adb: Add guard to recover some type errors.
      
      From-SVN: r153662
      Arnaud Charlet committed
    • [multiple changes] · fc475a08
      2009-10-28  Vincent Celier  <celier@adacore.com>
      
      	* prj-nmsc.adb (Add_To_Or_Remove_From_List): New name of procedure
      	Add_If_Not_In_List to account to the fact that a directory may be
      	removed from the list. Only remove directory if Removed is True.
      
      2009-10-28  Gary Dismukes  <dismukes@adacore.com>
      
      	* a-textio.ads, a-textio.ads: Put back function EOF_Char in private
      	part. Put back body of function EOF_Char.
      	* a-tienau.adb: Remove with of Interfaces.C_Streams and change EOF back
      	to EOF_Char.
      
      2009-10-28  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-tree.adb (Free): Fix memory leak.
      
      2009-10-28  Thomas Quinot  <quinot@adacore.com>
      
      	* s-fileio.adb: Minor reformatting
      
      From-SVN: r153661
      Arnaud Charlet committed
    • * gcc-interface/Make-lang.in: Update dependencies. · 4d8f8ffe
      From-SVN: r153660
      Arnaud Charlet committed
    • tree.c (free_lang_data_in_type): Do not call get_alias_set. · 14cf68d9
      2009-10-28  Richard Guenther  <rguenther@suse.de>
      
      	* tree.c (free_lang_data_in_type): Do not call get_alias_set.
      	(free_lang_data): Unconditionally compute alias sets for all
      	standard integer types.  Bail out if gate bailed out previously.
      	Do not reset the types_compatible_p langhook.
      	(gate_free_lang_data): Remove.
      	(struct pass_ipa_free_lang_data): Enable unconditionally.
      	* gimple.c (gimple_get_alias_set): Use the same alias-set for
      	all pointer types.
      
      From-SVN: r153659
      Richard Guenther committed
    • [multiple changes] · 69ba91ed
      2009-10-28  Robert Dewar  <dewar@adacore.com>
      
      	* exp_attr.adb, exp_ch9.adb, prj-nmsc.adb, tbuild.adb, ali.adb,
      	types.ads: Minor reformatting
      
      2009-10-28  Tristan Gingold  <gingold@adacore.com>
      
      	* init.c: Fix __gnat_error_handler for Darwin10 (Snow Leopard)
      
      From-SVN: r153658
      Arnaud Charlet committed
    • [multiple changes] · 5f3f175d
      2009-10-28  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Type_Conversion): Perform Integer promotion for
      	the operand of the unary minus and ABS operators.
      
      	* sem_type.adb (Covers): A concurrent type and its corresponding record
      	type are compatible.
      	* exp_attr.adb (Expand_N_Attribute_Reference): Do not rewrite a 'Access
      	attribute reference for the current instance of a protected type while
      	analyzing an access discriminant constraint in a component definition.
      	Such a reference is handled in the corresponding record's init proc,
      	while initializing the constrained component.
      	* exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
      	corresponding record type, propagate components'
      	Has_Per_Object_Constraint flag.
      	* exp_ch3.adb (Build_Init_Procedure.Build_Init_Statements):
      	For a concurrent type, set up concurrent aspects before initializing
      	components with a per object constrain, because they may be controlled,
      	and their initialization may call entries or protected subprograms of
      	the enclosing concurrent object.
      
      2009-10-28  Emmanuel Briot  <briot@adacore.com>
      
      	* prj-nmsc.adb (Add_If_Not_In_List): New subprogram, for better sharing
      	of code.
      	(Find_Source_Dirs): resolve links if Opt.Follow_Links_For_Dirs when
      	processing the directories specified explicitly in the project file.
      
      From-SVN: r153657
      Arnaud Charlet committed
    • [multiple changes] · b87971f3
      2009-10-28  Robert Dewar  <dewar@adacore.com>
      
      	* a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb,
      	a-textio.ads, a-textio.adb: Reorganize (moving specs from private part
      	to body).
      	(Initialize_Standard_Files): New procedure.
      	* a-tienau.adb: Minor change to make EOF directly visible
      	* a-tirsfi.ads, a-wrstfi.adb, a-wrstfi.ads, a-zrstfi.adb,
      	a-zrstfi.ads, a-tirsfi.adb: New unit, initial version.
      	* gnat_rm.texi: Add documentation for
      	Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files.
      	* Makefile.rtl: Add entries for
      	Ada.[Wide_[Wide_]]Text_IO.Reset_Standard_Files
      
      2009-10-28  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch9.ads: Minor reformatting
      	* sem_ch3.adb: Minor reformatting
      	* sem_aggr.adb: Minor reformatting.
      	* sem_attr.adb: Minor reformatting
      	* tbuild.adb, tbuild.ads, par-ch4.adb, exp_ch4.adb (Tbuild.New_Op_Node):
      	New subprogram.
      	Minor code reorganization/factoring.
      
      From-SVN: r153656
      Arnaud Charlet committed
    • re PR middle-end/41855 (ICE in refs_may_alias_p_1, at tree-ssa-alias.c:855) · 1307c758
      2009-10-28  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/41855
      	* tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
      	(ref_maybe_used_by_call_p_1): Fix bcopy handling.
      	(call_may_clobber_ref_p_1): Likewise.
      	* tree-ssa-structalias.c (find_func_aliases): Likewise.
      	* alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
      
      	* gfortran.dg/lto/20091028-1_0.f90: New testcase.
      	* gfortran.dg/lto/20091028-1_1.c: Likewise.
      	* gfortran.dg/lto/20091028-2_0.f90: Likewise.
      	* gfortran.dg/lto/20091028-2_1.c: Likewise.
      
      From-SVN: r153655
      Richard Guenther committed
    • stl_iterator_base_funcs.h: (next): Change template parameter name consistently… · de5b9f12
      stl_iterator_base_funcs.h: (next): Change template parameter name consistently with the resolution of DR...
      
      2009-10-28  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/stl_iterator_base_funcs.h: (next): Change
      	template parameter name consistently with the resolution
      	of DR 1011 ([Ready] in Santa Cruz).
      
      From-SVN: r153654
      Paolo Carlini committed
    • re PR rtl-optimization/41812 (test 20071030-1.c fails execution on powerpc64) · e5bb5009
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/41812
      
      	Revert:
      	2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
      
      	* df-problems.c (df_md_scratch): New.
      	(df_md_alloc, df_md_free): Allocate/free it.
      	(df_md_local_compute): Only include live registers in init.
      	(df_md_transfer_function): Prune the in-set computed by
      	the confluence function, and the gen-set too.
      
      From-SVN: r153652
      Paolo Bonzini committed
    • re PR target/39715 ([cond-optab] extra sign extensions on Thumb) · 5d49d0ea
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/39715
      	* combine.c (simplify_comparison): Use extensions to
      	widen comparisons.  Try an ANDing first.
      
      testsuite:
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/39715
      	* gcc.target/arm/thumb-bitfld1.c: New.
      
      From-SVN: r153651
      Paolo Bonzini committed
    • re PR target/40741 (code size explosion for integer comparison) · 582021ba
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/40741
      	* config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
      	a small constant is cheap.
      	* config/arm/arm.md (andsi3, iorsi3): Try to place the result of
      	force_reg on the LHS.
      	(xorsi3): Likewise, and split the XOR if the constant is complex
      	and not in Thumb mode.
      
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	PR rtl-optimization/40741
      	* gcc.target/arm/thumb-branch1.c: New.
      
      From-SVN: r153650
      Paolo Bonzini committed
    • re PR libstdc++/40852 ([parallel-mode] parallel sort run time increases ~10 fold… · 15e2a6c0
      re PR libstdc++/40852 ([parallel-mode] parallel sort run time increases ~10 fold when vector size gets over ~4*10^9)
      
      2009-10-28  Johannes Singler  <singler@kit.edu>
      
              PR libstdc++/40852
              * include/parallel/multiseq_selection.h
              (multiseq_partition, multiseq_selection):  Avoid intermediate
              values exceeding the integer type range for very large inputs.
      
      From-SVN: r153648
      Johannes Singler committed
    • expmed.c (emit_store_flag): Check costs before transforming to the opposite representation. · 533d4b99
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	* expmed.c (emit_store_flag): Check costs before
      	transforming to the opposite representation.
      
      From-SVN: r153647
      Paolo Bonzini committed
    • sh.md (cbranchfp4_media): Remove hack extending cstore result to DImode. · 42663bf1
      2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
      
      	* config/sh/sh.md (cbranchfp4_media): Remove hack extending
      	cstore result to DImode.
      
      From-SVN: r153646
      Paolo Bonzini committed
    • sh.md (stuff_delay_slot): Move const_int pattern inside the unspec vector. · f60e5a20
      	* config/sh/sh.md (stuff_delay_slot): Move const_int pattern
      	inside the unspec vector.
      
      From-SVN: r153643
      Kaz Kojima committed
    • Daily bump. · 5690de8f
      From-SVN: r153621
      GCC Administrator committed
  2. 27 Oct, 2009 10 commits