1. 19 Oct, 2010 16 commits
    • [multiple changes] · 437f8c1e
      2010-10-19  Robert Dewar  <dewar@adacore.com>
      
      	* sem_eval.adb: Minor reformatting.
      
      2010-10-19  Tristan Gingold  <gingold@adacore.com>
      
      	* exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
      	Expand_Intrinsic_Call if the function is intrinsic.
      	* exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
      	binary operator on the unsigned_quadword record.
      	* exp_intr.ads (Expand_Intrinsic_Call): Update comments.
      
      2010-10-19  Geert Bosch  <bosch@adacore.com>
      
      	* gnat_rm.texi (pragma Float_Representation): Fix typo.
      
      2010-10-19  Arnaud Charlet  <charlet@adacore.com>
      
      	* switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
      	* fe.h (Exception_Extra_Info): Declare.
      	* usage.adb (usage): Add -gnateE doc.
      	* checks.adb (Install_Null_Excluding_Check): Use better sloc.
      	* sem_util.adb (Insert_Explicit_Dereference): Ditto.
      	* gnat_ugn.texi: Document -gnateE switch.
      	* a-except.adb (Set_Exception_C_Msg): New parameter Column.
      	* a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
      	(Raise_Constraint_Error_Msg): Ditto.
      	(Image): New helper function.
      	(Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
      	detailed exception information.
      	Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
      	* a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
      	* opt.ads (Exception_Extra_Info): New flag.
      	* gcc-interface/utils.c (gnat_raise_decls_ext): New.
      	* gcc-interface/utils2.c (build_call_raise_range,
      	build_call_raise_column): New functions.
      	* gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
      	build_call_raise_range, build_call_raise_column): Declare.
      	gcc-interface/trans.c (build_raise_check): New function.
      	(gigi): Initialize gnat_raise_decls_ext.
      	(gnat_to_gnu): Add initial support for -gnateE switch.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r165696
      Arnaud Charlet committed
    • [multiple changes] · e606088a
      2010-10-19  Geert Bosch  <bosch@adacore.com>
      
      	* ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
      	symmetric.
      
      2010-10-19  Robert Dewar  <dewar@adacore.com>
      
      	* atree.h (Field29): Fix incorrect definition.
      	* einfo.adb (Invariant_Procedure): New attribute
      	(Has_Invariants): New flag
      	(Has_Inheritable_Invariants): New flag
      	(OK_To_Reference): New flag
      	Minor code reorganization (use Next_Rep_Item function)
      	* einfo.ads (Invariant_Procedure): New attribute
      	(Has_Invariants): New flag
      	(Has_Inheritable_Invariants): New flag
      	(OK_To_Reference): New flag
      	* exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
      	* exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
      	conversion.  Minor reformatting.
      	* exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
      	* opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
      	* par-prag.adb: Add dummy entry for pragma Invariant.
      	* sem_ch13.adb (Build_Invariant_Procedure): New procedure
      	(Analyze_Aspect_Specification): Add support for Invariant aspect
      	* sem_ch13.ads (Build_Invariant_Procedure): New procedure
      	* sem_ch3.adb (Build_Derived_Type): Propagate invariant information
      	(Process_Full_View): Deal with invariants, building invariant procedure
      	Minor reformatting
      	* sem_ch6.adb (Process_PPCs): Add processing of invariants
      	* sem_ch7.adb (Analyze_Package_Specification): Build invariant
      	procedures.
      	* sem_prag.adb: Implement pragma Invariant.
      	* sem_res.adb (Resolve_Entity_Name): Allow type reference if
      	OK_To_Reference set.
      	* sem_warn.adb (List_Inherited_Aspects): New name for
      	List_Inherited_Pre_Post.
      	* snames.ads-tmpl: Add entries for pragma Invariant.
      	* treepr.adb (Print_Entity_Information): Add handling of Field29.
      	* usage.adb: Warning .l/.L applies to invariant as well as pre/post.
      
      From-SVN: r165694
      Arnaud Charlet committed
    • Minor reformatting. · c95e0edc
      From-SVN: r165693
      Arnaud Charlet committed
    • [multiple changes] · 4adf3c50
      2010-10-19  Javier Miranda  <miranda@adacore.com>
      
      	* par-ch4.adb: Update documentation of Ada 2012 syntax rules for
      	membership test.
      
      2010-10-19  Bob Duff  <duff@adacore.com>
      
      	* sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
      	attribute.
      	* exp_attr.adb (Expand_N_Attribute_Reference): Add
      	Attribute_Max_Alignment_For_Allocation to the case statement.
      	* snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
      	Attribute_Max_Alignment_For_Allocation): New attribute name.
      
      2010-10-19  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
      	parameterless function appears syntactically as an explicit dereference.
      
      2010-10-19  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
      	i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
      
      2010-10-19  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_util.adb (Collect_Primitive_Operations): A function with an
      	anonymous access result designating T is a primitive operation of T.
      
      From-SVN: r165692
      Arnaud Charlet committed
    • rx.c (rx_function_value): Small integer types are promotes to SImode. · e2f289f3
              * config/rx/rx.c (rx_function_value): Small integer types are
              promotes to SImode.
              (rx_promote_function_mode): New function.
              (TARGET_PROMOTE_FUNCTION_MODE): Define.
      
      From-SVN: r165690
      Nick Clifton committed
    • [multiple changes] · 46202729
      2010-10-19  Tristan Gingold  <gingold@adacore.com>
      
      	* init.c: On Alpha/VMS, only adjust PC for HPARITH.
      
      2010-10-19  Tristan Gingold  <gingold@adacore.com>
      
      	* sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
      	evaluated on VMS.
      
      2010-10-19  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
      	an instantiation of a renaming of the implicit generic child that
      	appears within an instance of its parent.
      
      2010-10-19  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch9.adb: Minor reformatting.
      	* einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
      	(Referenced_Object): Remove unused entity attribute.
      	(Direct_Primitive_Operations): Move to Elist10, this is set for all
      	tagged types, including synchronous ones, so can't use field15 which is
      	used as Storage_Size_Variable for task types and Entry_Bodies_Array for
      	protected types.
      	(Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
      	against Concurrent_Types (we must handle the case of a RACW designating
      	a class-wide private synchronous type).
      	Use Direct_Primitive_Operations, not Primitive_Operations, since we
      	really want the former.
      
      2010-10-19  Bob Duff  <duff@adacore.com>
      
      	* sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
      
      2010-10-19  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
      	for N_Range nodes.
      
      From-SVN: r165689
      Arnaud Charlet committed
    • einfo.ads, atree.ads: Minor comment fixes. · 6c946a9f
      2010-10-19  Thomas Quinot  <quinot@adacore.com>
      
      	* einfo.ads, atree.ads: Minor comment fixes.
      
      From-SVN: r165688
      Thomas Quinot committed
    • mep.c (mep_print_operand): Use targetm.strip_name_encoding. · 9018b19c
              * config/mep/mep.c (mep_print_operand): Use
              targetm.strip_name_encoding.
              (mep_output_aligned_common): Likewise.
      
      From-SVN: r165682
      Nick Clifton committed
    • line-map.h (source_location): Remove obsolete comment mentioning location_s. · 078419c9
      2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
      	* line-map.h (source_location): Remove obsolete comment
      	mentioning location_s.
      
      From-SVN: r165680
      Basile Starynkevitch committed
    • gengtype.c (new_structure): Remove ad-hoc "location_s" processing. · c512a6a0
      2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
      	* gengtype.c (new_structure): Remove ad-hoc "location_s"
      	processing.
      
      From-SVN: r165679
      Basile Starynkevitch committed
    • simplify-rtx.c (simplify_ternary_operation): Simplify (fma (neg a) (neg b) c)… · 5c822194
      simplify-rtx.c (simplify_ternary_operation): Simplify (fma (neg a) (neg b) c) and (fma a (neg b) c).
      
      	 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
      	(fma (neg a) (neg b) c) and (fma a (neg b) c).
      
      From-SVN: r165677
      Richard Henderson committed
    • Simplify FMA4 patterns with FMA rtx code. · 89509419
      Also fix incorrect rtl generation for scalar instructions.
      
      From-SVN: r165676
      Richard Henderson committed
    • io.h: Remove definition of the BT enumerator. · a11930ba
      2010-10-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	* io/io.h: Remove definition of the BT enumerator.
      	* libgfortran.h: Replace GFC_DTYPE enumerator with BT.
      	* intrinsics/iso_c_generated_procs.c: Likewise
      	* intrinsics/date_and_time.c: Likewise.
      	* intrinsics/iso_c_binding.c: Likewise.
      	* io/list_read.c: Likewise.
      	* io/transfer.c: Likewise.
      	* io/write.c: Likewise.
      
      2010-10-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	* gfortran.h: Remove definition of bt enumerator.
      	* libgfortran.h: Add bt enumerator type alighned with defintion.
      	Remove the dtype enumerator, no longer used.
      	previously given in libgfortran/io.h
      	* trans-types.c: Use new bt enumerator.
      	* trans-io.c: Likewise.
      
      From-SVN: r165675
      Jerry DeLisle committed
    • re PR rtl-optimization/45966 (Incorrect combiner transformation.) · 21016e43
      	PR rtl-optimization/45966
      	* combine.c (try_combine): If added_sets_2, deal with the case
      	where i0 feeds i1 and i1 feeds i2.
      
      From-SVN: r165674
      Bernd Schmidt committed
    • Daily bump. · 91d2ae68
      From-SVN: r165673
      GCC Administrator committed
    • ipa.c (cgraph_externally_visible_p): Handle externally visible and preserve… · 93a3eea4
      ipa.c (cgraph_externally_visible_p): Handle externally visible and preserve flags before trying to guess on visibility.
      
      	* ipa.c (cgraph_externally_visible_p): Handle externally visible and
      	preserve flags before trying to guess on visibility.
      	(varpool_externally_visible_p): New function.
      	(function_and_variable_visibility): Use it.
      
      From-SVN: r165669
      Jan Hubicka committed
  2. 18 Oct, 2010 24 commits
    • In gcc/testsuite/: 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> · 2a613cff
      In gcc/testsuite/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
      
              2006-03-16 Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4293709
              * objc.dg/proto-init-mimatch-1.m: New.
              * obj-c++.dg/proto-init-mimatch-1.mm: New.
      
      From-SVN: r165668
      Nicola Pero committed
    • In gcc/: 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> · da57d1b9
      In gcc/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Implemented parsing @synthesize and @dynamic for Objective-C.
              * c-parser.c (c_parser_external_declaration): Recognize
              RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
              (c_parser_objc_at_synthesize_declaration): New.
              (c_parser_objc_at_dynamic_declaration): New.
      
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * c-parser.c (c_parser_objc_class_declaration): After finding an
              error, parse the whole declaration then reset parser->error.
      
      In gcc/cp/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Implemented parsing @synthesize and @dynamic for Objective-C++.
              * parser.c (cp_parser_objc_method_definition_list): Recognize
              RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
              (cp_parser_objc_at_dynamic_declaration): New.
              (cp_parser_objc_at_synthesize_declaration): New.
      
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * parser.c (cp_parser_objc_identifier_list): Check the return
              value of cp_parser_identifier and react if it is error_mark_node.
      
      In gcc/objc/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Implemented parsing @synthesize and @dynamic for
              Objective-C/Objective-C++.
              * objc-act.c (objc_add_synthesize_declaration): New.
              (objc_add_dynamic_declaration): New.
      
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (lookup_and_install_protocols): Return NULL if passed
              error_mark_node.
      
      In gcc/testsuite/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Implemented parsing @synthesize and @dynamic for
              Objective-C/Objective-C++.
              * objc.dg/property/dynamic-1.m: New.
              * objc.dg/property/synthesize-1.m: New.
              * obj-c++.dg/property/dynamic-1.mm: New.
              * obj-c++.dg/property/synthesize-1.mm: New.
      
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/at-class-1.m: New.
              * objc.dg/at-class-1.mm: New.
      
      From-SVN: r165667
      Nicola Pero committed
    • Fix PR 46041 · 0069111f
      From-SVN: r165666
      Michael Meissner committed
    • 920625-1.c: Remove dg-prune-output lines. · cd9c769a
      2010-10-18  Steve Ellcey  <sje@cup.hp.com>
      
      	* gcc.c-torture/compile/920625-1.c: Remove dg-prune-output lines.
      
      From-SVN: r165665
      Steve Ellcey committed
    • re PR target/36898 (Insufficient qp-mutex declarations) · 89774469
      2010-10-18  Steve Ellcey  <sje@cup.hp.com>
      
      	PR target/36898
      	PR middle-end/43760
      	* config/ia64/ia64.c (rws_access_regno): Remove predicate check.
      
      From-SVN: r165664
      Steve Ellcey committed
    • i386.c (ix86_option_override_internal): Define and use USE_X86_64_FRAME_POINTER… · b69da3d8
      i386.c (ix86_option_override_internal): Define and use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer default.
      
      	* config/i386/i386.c (ix86_option_override_internal): Define and
      	use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
      	default.
      	* config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
      	(USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
      
      From-SVN: r165660
      Joseph Myers committed
    • In gcc/objc/: 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> · fd4e428a
      In gcc/objc/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
      
              2006-03-10  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4407151
              * objc/objc-act.c (objc_is_class_name): template parameter is not
              an objective class name.
              (objc_generate_cxx_cdtors): Check for the null
              objc_implementation_context.
      
      In gcc/testsuite/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
      
              2006-01-17  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4407151
              * obj-c++.dg/template-7.mm: New.
      
      From-SVN: r165657
      Nicola Pero committed
    • In gcc/: 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> · 71fc71d8
      In gcc/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers. 
              * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
              following Objective-C change:
      
              2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4301047
              * c-parse.in (objc_quals): Build objc qualifier list same way
              as gcc-3.3
              
      In gcc/testsuite/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/proto-qual-1.m: Adjust test for GNU runtime to match
              bugfix.
      
      From-SVN: r165656
      Nicola Pero committed
    • ipa.c (cgraph_externally_visible_p, [...]): Revert accidental commit. · 7ba6eb1e
      	* ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
      	function_and_variable_visibility): Revert accidental commit.
      
      From-SVN: r165655
      Jan Hubicka committed
    • In gcc/: 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> · e426b47b
      In gcc/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
              * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
              the following Objective-C change:
      
              2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4204796
              * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
              'volatilized' type used in a typeof operator.
      
      In gcc/c-family/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
              
              2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4330422
              * c-common.h (objc_non_volatilized_type): New declaration
              * stub-objc.c (objc_non_volatilized_type): New stub.
      
      In gcc/cp/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
              
              Merge from apple/trunk branch on FSF servers.
              
              2005-03-01 Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4451818
              * call.c (standard_conversion, implicit_conversion): Ignore
              'volatile' attribute of artificially volatized type in objc when
              evaluating various conversion weights.
      
              2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4330422
              * typeck.c (comp_ptr_ttypes_real): Remove the hack. un-volatize the
              artiificially 'volatized' type before doing pointer comparison.
              
      In gcc/objc/:
      2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
              
              2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4330422
              * objc/objc-act.c (objc_non_volatilized_type): New
      
              2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
              
              Radar 4204796
              * objc-act.c (objc_build_volatilized_type): Build 'volatilzed'
              types with proper attribute set and correctly.
              (objc_volatilize_decl): Remove unneeded code.
              (objc_type_quals_match): Use the new attribute to check on
              'volatilzed' type.
              (hash_init): removed unneeded code.
              
      In gcc/testsuite/:
      2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
              
              Merge from 'apple/trunk' branch on FSF servers.
      
              2005-03-01 Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4451818
              * obj-c++.dg/try-catch-16.mm: New.
              * obj-c++.dg/try-catch-17.mm: New.
      
              2005-11-08  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4330422
              * obj-c++.dg/try-catch-15.mm: New
      
              2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4204796
              * obj-c++.dg/try-catch-12.mm: New
              * obj-c++.dg/try-catch-13.mm: New
              * obj-c++.dg/try-catch-14.mm: New
              * objc.dg/try-catch-11.m: New
              * objc.dg/try-catch-12.m: New
              * objc.dg/try-catch-13.m: New
      
      From-SVN: r165654
      Nicola Pero committed
    • re PR libstdc++/45866 ([C++0x] std::ratio_add, ratio_sub, ratio_multiply,… · e1d4e035
      re PR libstdc++/45866 ([C++0x] std::ratio_add, ratio_sub, ratio_multiply, ratio_divide do not have num and den members.)
      
      2010-10-18  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/45866
      	* include/std/ratio (ratio<>::type): Add.
      	(ratio_add<>::num, ratio_add<>::den,
      	ratio_subtract<>::num, ratio_subtract<>::den,
      	ratio_multiply<>::num, ratio_multiply<>::den,
      	ratio_divide<>::num, ratio_divide<>::den): Likewise.
      	* testsuite/20_util/ratio/operations/45866.cc: New.
      
      From-SVN: r165649
      Paolo Carlini committed
    • tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare. · 30fd5881
      	* tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
      	* tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
      	rewrite modelled on gimple_purge_dead_eh_edges.
      	(gimple_purge_all_dead_abnormal_call_edges): New function.
      	* tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
      	directly instead of through gimple_purge_dead_abnormal_call_edges.
      	* tree-ssa-pre.c (need_ab_cleanup): New static variable.
      	(eliminate): Set bit in need_ab_cleanup for the basic block if we have
      	removed AB side-effects from one of its statements.
      	(init_pre): Initialize need_ab_cleanup.
      	(fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
      	are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
      
      From-SVN: r165646
      Eric Botcazou committed
    • re PR c/46015 (-Wunused-but-set-variable warns for arrays used in gotos) · 84628aa8
      	PR c/46015
      	* c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
      	on computed goto argument.
      
      	* semantics.c (finish_goto_stmt): Call mark_rvalue_use on computed
      	goto destination.
      
      	* c-c++-common/Wunused-var-13.c: New test.
      
      From-SVN: r165643
      Jakub Jelinek committed
    • re PR tree-optimization/45967 (gcc-4.5.x optimizes code with side-effects away) · 0f8d6231
      2010-10-18  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/45967
      	* tree-ssa-structalias.c (type_could_have_pointers): Remove.
      	(could_have_pointers): Likewise.
      	(handle_rhs_call, handle_const_call, handle_pure_call,
      	find_func_aliases, intra_create_variable_infos): Remove calls to them.
      	(struct fieldoff): Add must_have_pointers field.
      	(type_must_have_pointers): New function.
      	(field_must_have_pointers): Likewise.
      	(push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
      	Adjust field merging.
      	(create_function_info_for): May-have-pointers of varinfo is
      	almost always true.
      	(create_variable_info_for_1): Likewise.
      
      	* gcc.dg/torture/pr45967.c: New testcase.
      	* gcc.dg/ipa/ipa-pta-10.c: Adjust.
      	* gcc.dg/ipa/ipa-pta-13.c: Likewise
      	* gcc.dg/torture/pr39074-2.c: Likewise
      	* gcc.dg/torture/pta-escape-1.c: Likewise
      	* gcc.dg/torture/pta-ptrarith-1.c: Likewise
      	* gcc.dg/tree-ssa/pta-callused.c: Likewise
      	* gcc.dg/tree-ssa/pta-escape-1.c: Likewise
      	* gcc.dg/tree-ssa/pta-escape-2.c: Likewise
      	* gcc.dg/tree-ssa/pta-escape-3.c: Likewise
      	* gcc.dg/tree-ssa/ssa-pre-21.c: Likewise
      
      From-SVN: r165641
      Richard Guenther committed
    • re PR lto/45638 (No rule to make target `check-lto', needed by `check'. Stop.) · 1915c739
      	PR lto/45638
      	* Make-lang.in (check-lto): New dummy target.
      
      From-SVN: r165638
      Jakub Jelinek committed
    • [multiple changes] · fab2daeb
      2010-10-18  Bob Duff  <duff@adacore.com>
      
      	* sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
      	correct, and to be in a more convenient order.
      	(Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
      	recording the Default_Storage_Pool for a parent library unit.
      	* einfo.ads (Etype): Document the case in which Etype can be Empty.
      	* sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
      	Default_Storage_Pool pragma.
      	* sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
      	* gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
      	pragma.
      	* freeze.adb (Freeze_Entity): When freezing an access type, take into
      	account any Default_Storage_Pool pragma that applies. We have to do
      	this at the freezing point, because up until that point, a Storage_Pool
      	or Storage_Size clause could occur, which should override the
      	Default_Storage_Pool.
      	* par-prag.adb: Add this pragma to the list of pragmas handled entirely
      	during semantics.
      	* sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
      	Default_Storage_Pool information.
      	* opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
      	currently-applicable Default_Storage_Pool pragmas.
      	* opt.adb: Save/restore the globals as appropriate.
      	* snames.ads-tmpl (Name_Default_Storage_Pool,
      	Pragma_Default_Storage_Pool): New pragma name.
      
      2010-10-18  Vincent Celier  <celier@adacore.com>
      
      	* make.adb (Switches_Of): Put the spec and body suffix in canonical
      	case.
      
      From-SVN: r165637
      Arnaud Charlet committed
    • [multiple changes] · 6191e212
      2010-10-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
      	library level, the pre/postconditions must be treated as global
      	declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
      	* freeze.adb (Freeze_Expression): If the expression is at library level
      	there is no enclosing record to check.
      
      2010-10-18  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch3.ads (Find_Type_Name): Add documentation.
      	* sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
      	propagation of the class-wide entity is now done by routine
      	Find_Type_Name to factorize this code.
      	(Analyze_Private_Extension_Declaration): Handle private type that
      	completes an incomplete type.
      	(Tag_Mismatch): Add error message for tag mismatch in a private type
      	declaration that completes an incomplete type.
      	(Find_Type_Name): Handle completion of incomplete type by means of
      	a private declaration. Generate an error if a tagged incomplete type
      	is completed by an untagged private type.
      	* sem_ch7.adb (New_Private_Type): Handle private type that completes an
      	incomplete type.
      	* einfo.ads (Full_View): Add documentation.
      
      2010-10-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
      	a renaming, generate a reference for it before analyzing the renamed
      	entity, to prevent spurious warnings.
      
      From-SVN: r165636
      Arnaud Charlet committed
    • adaint.c (__gnat_pthread_setaffinity_np, [...]): Remove wrappers, no longer needed. · 0ae44446
      2010-10-18  Jose Ruiz  <ruiz@adacore.com>
      
      	* adaint.c (__gnat_pthread_setaffinity_np,
      	__gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
      	* s-osinte-linux.ads (pthread_setaffinity_np,
      	pthread_attr_setaffinity_np): Remove use of wrappers.
      	* s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
      	whether the affinity functionality is available in the OS.
      	* gcc-interface/utils.c: Set TREE_STATIC on functions only when there
      	are defined.
      
      From-SVN: r165635
      Jose Ruiz committed
    • [multiple changes] · 3fd9f17c
      2010-10-18  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.ads, einfo.adb: Minor reformatting.
      	* gnat_ugn.texi, ug_words: Add missing entries, fix typos.
      
      2010-10-18  Emmanuel Briot  <briot@adacore.com>
      
      	* g-comlin.adb (Is_In_Config): When the switch accepts either a space
      	or equal, we output an equal every time.
      
      2010-10-18  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
      	member when pre/post conditions are present.
      	* exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
      	includes an index parameter, and the name of the enclosed entry call is
      	an indexed component.
      
      From-SVN: r165634
      Arnaud Charlet committed
    • bessel_7.f90: Set xfail for mingw targets. · 5e690fe3
      2010-10-18  Kai Tietz  <kai.tietz@onevision.com>
      
              * gfortran.dg/bessel_7.f90: Set xfail for mingw targets.
      
      From-SVN: r165633
      Kai Tietz committed
    • einfo.ads, einfo.adb: Minor reformatting. · cdcb8ccb
      2010-10-18  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.ads, einfo.adb: Minor reformatting.
      
      From-SVN: r165631
      Robert Dewar committed
    • neon.md (neon_move_hi_quad_<mode>): Fix the order of operands to vec_concat. · 3f2c0baf
      2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
      
      	* config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
      	of operands to vec_concat.
      
      From-SVN: r165630
      Tejas Belagod committed
    • re PR lto/44950 (ICE in dwarf2out_finish, at dwarf2out.c:22271) · e20efbfb
      2010-10-18  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/44950
      	* tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
      	also clear references to entries of it.
      
      	* g++.dg/lto/20101015-2_0.C: New testcase.
      
      From-SVN: r165629
      Richard Guenther committed