1. 29 Jul, 2014 8 commits
    • [multiple changes] · e2bc5465
      2014-07-29  Robert Dewar  <dewar@adacore.com>
      
      	* errout.adb: Minor reformatting.
      
      2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch3.adb (Default_Initialize_Object): Add new variables
      	Abrt_Blk and Dummy. Generate a dummy temporary when aborts are
      	not allowed to ensure the symmetrical generation of symbols.
      	* exp_ch7.adb (Build_Object_Declarations): Remove variables A_Expr
      	and E_Decl. Add new variables Decl and Dummy. Generate a dummy
      	temporary when aborts are not allowed to ensure symmertrical
      	generation of symbols.
      	* exp_intr.adb (Expand_Unc_Deallocation): Add new variable
      	Dummy. Generate a dummy temporary when aborts are not allowed
      	to ensure symmertrical generation of symbols.
      
      2014-07-29  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_dbug.adb (Debug_Renaming_Declaration): For an object
      	renaming, indicate that the renamed entity itself needs debug
      	information. This is necessary if that entity is a temporary,
      	e.g. part of the expansion of an explicit dereference in an
      	iterator.
      
      From-SVN: r213157
      Arnaud Charlet committed
    • [multiple changes] · 414c6563
      2014-07-29  Thomas Quinot  <quinot@adacore.com>
      
      	* errout.adb (Set_Error_Posted): When propagating flag to
      	an enclosing named association, also propagate to the parent
      	of that node, so that named and positional associations are
      	treated consistently.
      
      2014-07-29  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb (Resolve_Attribute, case 'Update):  Set
      	Do_Range_Check properly on array component expressions that
      	have a scalar type. In GNATprove mode, only checks on scalar
      	components must be marked by the front-end.
      
      2014-07-29  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Resolve_Type_Conversion): If the type of the
      	expression is a limited view, use the non-limited view when
      	available.
      
      2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch4.adb (Expand_N_Case_Expression): Mark the generated
      	case statement as coming from a conditional expression.
      	(Expand_N_If_Expression): Mark the generated if statement as
      	coming from a conditional expression.
      	* exp_ch5.adb (Expand_N_Case_Statement): Do not process controlled
      	objects found in case statement alternatives when the case
      	statement is actually a case expression.
      	(Expand_N_If_Statement):
      	Do not process controlled objects found in an if statement when
      	the if statement is actually an if expression.
      	* sinfo.adb (From_Conditional_Expression): New routine.
      	(Set_From_Conditional_Expression): New routine.
      	* sinfo.ads Add new semantic flag From_Conditional_Expression and
      	update related nodes.
      	(From_Conditional_Expression): New routine along with pragma Inline.
      	(Set_From_Conditional_Expression): New routine along with pragma Inline.
      
      From-SVN: r213156
      Arnaud Charlet committed
    • [multiple changes] · 0382062b
      2014-07-29  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove
      	formal parameter Obj_Id and update the comment on usage. Renamed
      	Obj_Typ to Func_Typ and update all occurrences.
      	(Find_Last_Init): Remove formal parameter Decl and update the comment
      	on usage.
      	Remove local constants Obj_Id and Obj_Typ. Remove local variables
      	Init_Typ and Is_Conc. Remove the extraction of the initialization type.
      	(Find_Last_Init_In_Block): Remove formal parameter
      	Init_Typ and update the comment on usage.
      	(Is_Init_Call): Remove formal parameter Init_Typ and update the comment
      	on usage. Check whether the procedure call is an initialization
      	procedure of either the object type or the initialization type.
      	(Is_Init_Proc_Of): New routine.
      	(Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this
      	routine. Add new variable Init_Typ. Add circuitry to extract the object
      	type as well as the initialization type.
      
      2014-07-29  Robert Dewar  <dewar@adacore.com>
      
      	* sem_case.adb: Minor reformatting.
      	* sem_aux.ads: Minor reformatting.
      
      2014-07-29  Ed Schonberg  <schonberg@adacore.com>
      
      	* sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent
      	pointer on these fields, even though they are semantic, because
      	subsequent analysis and expansion of action nades may require
      	exploring the tree, for example to locate a node to be wrapped
      	when a function with controlled result is called.
      
      2014-07-29  Claire Dross  <dross@adacore.com>
      
      	* sem_aux.adb (Get_Binary_Nkind): Use case on
      	Name_Id instead of an intermediate string.
      	(Get_Unary_Nkind): Use case on Name_Id instead of an intermediate
      	string.
      
      2014-07-29  Sergey Rybin  <rybin@adacore.com frybin>
      
      	* gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note
      	about processing sources with preprocessor directives.
      
      From-SVN: r213155
      Arnaud Charlet committed
    • tree-sra.c (sra_modify_constructor_assign): Change type of stmt parameter to gimple. · 56386ab9
      2014-07-29  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-sra.c (sra_modify_constructor_assign): Change type of stmt
      	parameter to gimple.
      	(sra_modify_assign): Likewise.
      
      From-SVN: r213154
      Martin Jambor committed
    • re PR middle-end/52478 (-ftrapv calls the wrong functions in libgcc) · e05531ef
      2014-07-29  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/52478
      	* expr.c (expand_expr_real_2): Revert last change.
      
      From-SVN: r213153
      Richard Biener committed
    • cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data. · 3339f0bc
      	* cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
      	* cgraph.h (cgraph_indirect_call_info): Add speculative data.
      	* gimple-fold.c (fold_gimple_assign): Fix check for virtual
      	call.
      	* ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
      	(contains_type_p): Forward declare.
      	(polymorphic_call_target_hasher::hash): Hash speculative info.
      	(polymorphic_call_target_hasher::equal): Compare speculative info.
      	(get_class_context): Handle speuclation.
      	(contains_type_p): Update.
      	(get_polymorphic_call_info_for_decl): Update.
      	(walk_ssa_copies): Break out from ...
      	(get_polymorphic_call_info): ... here; set speculative context
      	before giving up.
      	* ipa-prop.c (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info):
      	Stream speculative context.
      	* ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
      	(SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
      	SPECULATIVE_MAYBE_DERIVED_TYPE).
      	(possible_polymorphic_call_targets overriders): Update.
      	(dump_possible_polymorphic_call_targets overriders): Update.
      	(dump_possible_polymorphic_call_target_p overriders): Update.
      
      From-SVN: r213152
      Jan Hubicka committed
    • gimple-fold.c (fold_gimple_assign): Fix condition guarding ipa-devirt path; fix thinko there. · f8a39967
      	* gimple-fold.c (fold_gimple_assign): Fix condition guarding
      	ipa-devirt path; fix thinko there.
      
      From-SVN: r213150
      Jan Hubicka committed
    • Daily bump. · eb5453a5
      From-SVN: r213145
      GCC Administrator committed
  2. 28 Jul, 2014 16 commits
  3. 27 Jul, 2014 9 commits
  4. 26 Jul, 2014 7 commits
    • Follow up to r213079. · f1d935dc
      2014-07-26  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/61881
              PR fortran/61888
              PR fortran/57305
              * intrinsic.texi (SIZEOF): Document changed behavior
              for polymorphic arrays.
      
      From-SVN: r213085
      Tobias Burnus committed
    • re PR c/61077 (_Atomic in the return type or argument types of main not diagnosed) · be97a9d0
      	PR c/61077
      	* gcc.dg/pr61077.c: Use \[^\n\]* instead of .* in the regexp.
      
      From-SVN: r213084
      Marek Polacek committed
    • re PR target/47230 (gcc fails to bootstrap on alpha in stage2 with "relocation… · 7b7f941a
      re PR target/47230 (gcc fails to bootstrap on alpha in stage2 with "relocation truncated to fit: GPREL16 against ...")
      
      	PR target/47230
      	* configure.ac (alpha*-*-linux*): Use mh-alpha-linux.
      	* configure: Regenerate.
      
      config/ChangeLog:
      
      	PR target/47230
      	* mh-alpha-linux: New file.
      
      From-SVN: r213081
      Uros Bizjak committed
    • Minor tweaks. · 04db0548
      From-SVN: r213080
      Eric Botcazou committed
    • check.c (gfc_check_sizeof): Permit for assumed type if and only if it has an array descriptor. · 69c3654c
      2014-07-26  Tobias Burnus  <burnus@net-b.de>
      
              * check.c (gfc_check_sizeof): Permit for assumed type if and
              only if it has an array descriptor.
              * intrinsic.c (do_ts29113_check): Permit SIZEOF.
              (add_functions): SIZEOF is an Inquiry function.
              * intrinsic.texi (SIZEOF): Add note that only contiguous
              arrays are permitted.
              * trans-expr.c (gfc_conv_intrinsic_to_class): Handle assumed
              rank.
              * trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Handle
              assumed type + array descriptor, CLASS and assumed rank.
              (gfc_conv_intrinsic_storage_size): Handle class arrays.
      
      2014-07-26  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/sizeof_2.f90: Change dg-error.
              * gfortran.dg/sizeof_4.f90: New.
              * gfortran.dg/storage_size_1.f08: Correct expected
              value.
      
      From-SVN: r213079
      Tobias Burnus committed
    • ira-costs.c (find_costs_and_classes): For -O0... · 2da068d5
      gcc/
      	* ira-costs.c (find_costs_and_classes): For -O0, use the best class
      	as the allocation class if it isn't likely to be spilled.
      
      From-SVN: r213078
      Richard Sandiford committed
    • rtl.h (tls_referenced_p): Declare. · 093a6c99
      gcc/
      	* rtl.h (tls_referenced_p): Declare.
      	* rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
      	* config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
      	(mips_cannot_force_const_mem): Use tls_referenced_p.
      	* config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
      	* config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
      	instead of pa_tls_referenced_p.
      	* config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
      	(pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
      	(pa_legitimate_constant_p): Likewise.
      	(pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
      	* config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
      	(rs6000_cannot_force_const_mem, rs6000_emit_move)
      	(rs6000_address_for_altivec): Use tls_referenced_p instead of
      	rs6000_tls_referenced_p.
      	(rs6000_tls_symbol_ref_1): Delete.
      
      From-SVN: r213077
      Richard Sandiford committed