- 19 Feb, 2014 21 commits
-
-
2014-02-19 Robert Dewar <dewar@adacore.com> * exp_attr.adb (Expand_Min_Max_Attribute): Use Insert_Declaration (Expand_Min_Max_Attribute): Use Matching_Standard_Type. * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove special handling for the case of Modify_Tree_For_C, this approach did not work. * exp_util.adb (Matching_Standard_Type): New function (Side_Effect_Free): New top level functions (from Remove_Side_Effects). * exp_util.ads (Side_Effect_Free): New top level functions (moved from body). * sinfo.ads: Minor comment updates. 2014-02-19 Ed Schonberg <schonberg@adacore.com> * exp_ch6.adb (Expand_Simple_Function_Return): If return type is unconstrained and uses the secondary stack, mark the enclosing function accordingly, to ensure that the value is not prematurely removed. 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * par.adb Alphabetize the routines in Par.Sync. (Resync_Past_Malformed_Aspect): New routine. * par-ch13.adb (Get_Aspect_Specifications): Alphabetize local variables. Code and comment reformatting. Detect missing parentheses on aspects [Refined_]Global and [Refined_]Depends with a non-null definition. * par-sync.adb: Alphabetize all routines in this separate unit. (Resync_Past_Malformed_Aspect): New routine. From-SVN: r207890
Arnaud Charlet committed -
2014-02-19 Robert Dewar <dewar@adacore.com> * sem_eval.ads, sem_eval.adb (Subtypes_Statically_Match): Return False if Esize values do not match. From-SVN: r207889
Robert Dewar committed -
2014-02-19 Yannick Moy <moy@adacore.com> * sinfo.ads: Minor comment update. 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * atree.ads: Minor reformatting (change Entity_Info to Einfo). 2014-02-19 Thomas Quinot <quinot@adacore.com> * exp_ch7.adb (Find_Node_To_Be_Wrapped): An assignment statement that has the No_Ctrl_Actions flag is a suitable node to be wrapped if the assigned expression has no finalization actions. * sem_eval.adb (Eval_Entity_Name): For a compile time known boolean value, mark the corresponding condition SCO as constant. 2014-02-19 Robert Dewar <dewar@adacore.com> * exp_util.adb: Minor reformatting. * exp_util.ads (Matching_Standard_Type): New function. * exp_ch7.adb: Minor reformatting. 2014-02-19 Ed Schonberg <schonberg@adacore.com> * sem_ch13.adb (Get_Cursor_Type): Use scope of iterable type to find declaration for Cursor, to handle properly the case of a discriminated iterable type. 2014-02-19 Vincent Celier <celier@adacore.com> * gnatcmd.adb (GNATCmd): Always replace the object dirs of imported library projects with the library ALI dirs, when setting the object paths. * prj-env.ads (Ada_Objects_Path): Correct comments about argument Including_Libraries. From-SVN: r207888
Arnaud Charlet committed -
2014-02-19 Gary Dismukes <dismukes@adacore.com> * gnat_rm.texi: Minor spelling fixes. 2014-02-19 Doug Rupp <rupp@adacore.com> * init.c: Remove unneeded code. * fe.h (Float_Format): New macro * gcc-interface/trans.c (gigi): On VMS, set vms_float_format. From-SVN: r207887
Arnaud Charlet committed -
2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * sem_prag.adb (Check_Refined_Global_Item): A state or variable acts as a constituent only it is part of an encapsulating state and the state has visible refinement. 2014-02-19 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Contract): Do not warn on a postcondition for a function when the expression does not mention 'Result but the function has in-out parameters. 2014-02-19 Robert Dewar <dewar@adacore.com> * gnat_rm.texi: Add documentation on Value_Size forcing biased representation. From-SVN: r207886
Arnaud Charlet committed -
2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * lib-xref.ads Remove the small table of letter and symbol usage as we already have one. 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Emit specific error messages depending on the offending misplaced aspect specifications. (Diagnose_Misplaced_Aspect_Specifications): New routine. 2014-02-19 Ed Schonberg <schonberg@adacore.com> * sem_ch13.adb (Get_Cursor): Utility to retrieve cursor type for iterable aspect primitives. (Resolve_Iterable_Operation): Use expected signature of iterable aspect to resolve primitive when overloading is present. (Validate_Iterable_Aspect, Analyze_Aspects_At_Freeze_Point): use it. (Check_Signature): Removed. From-SVN: r207885
Arnaud Charlet committed -
2014-02-19 Yannick Moy <moy@adacore.com> * sem_ch10.adb (Analyze_Proper_Body): Issue error on missing subunit in GNATprove_Mode. * sinfo.ads (GNATprove_Mode): Document error issued in GNATprove_Mode. 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * lib-xref.ads Alphabetize the contents of table Xref_Entity_Letters. Add an entry in table Xref_Entity_Letters for E_Abstract_State. List all letters and symbols in use. * sem_prag.adb (Analyze_Abstract_State): Update all calls to Create_Abstract_State to reflect the new signature. (Create_Abstract_State): Change subprogram profile and update the comment on usage. Use the proper location of the state declaration when creating a new abstract state entity. Do not generate an external name, but simply reuse the name coming from the state declaration. From-SVN: r207884
Arnaud Charlet committed -
exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure declarations get properly inserted in Modify_Tree_For_C mode. 2014-02-19 Robert Dewar <dewar@adacore.com> * exp_ch4.adb (Expand_N_Expression_With_Actions): Make sure declarations get properly inserted in Modify_Tree_For_C mode. * sinfo.ads: Minor comment addition. From-SVN: r207883
Robert Dewar committed -
2014-02-19 Robert Dewar <dewar@adacore.com> * par-ch9.adb, exp_ch5.adb, sem_ch5.adb, exp_attr.adb, sem_util.adb, sem_util.ads, sem_ch13.adb, sem_ch13.ads: Minor reformatting. From-SVN: r207882
Robert Dewar committed -
2014-02-19 Ed Schonberg <schonberg@adacore.com> * style.adb (Missing_Overriding): Warning does not apply in language versions prior to Ada 2005. * snames.ads-tmpl: Add Name_Iterable and Attribute_Iterable. * sem_attr.adb: Add Attribute_Iterable where needed. * exp_attr.adb: ditto. * exp_ch5.adb (Expand_Formal_Container_Loop): New procedure to handle loops and quantified expressions over types that have an iterable aspect. Called from Expand_Iterator_Loop. * sem_ch5.adb (Analyze_Iterator_Specification): Recognize types with Iterable aspect. * sem_ch13.adb (Validate_Iterable_Aspect): Verify that the subprograms specified in the Iterable aspect have the proper signature involving container and cursor. (Check_Aspect_At_Freeze_Point): Analyze value of iterable aspect. * sem_ch13.ads (Validate_Iterable_Aspect): New subprogram. * sem_util.ads, sem_util.adb (Get_Iterable_Type_Primitive): New procedure to retrieve one of the primitives First, Last, or Has_Element, from the value of the iterable aspect of a formal container. (Is_Container_Element): Predicate to recognize expressions that denote an element of one of the predefined containers, for possible optimization. This subprogram is not currently used, pending ARG discussions on the legality of the proposed optimization. Worth preserving for eventual use. (Is_Iterator): Recognize formal container types. * aspects.ads, aspects.adb: Add Aspect_Iterable where needed. From-SVN: r207881
Ed Schonberg committed -
2014-02-19 Robert Dewar <dewar@adacore.com> * exp_attr.adb (Expand_Min_Max_Attribute): New procedure (Expand_N_Attribute_Reference): Use this procedure for Min and Max. * exp_ch4.adb (Expand_N_Expression_With_Actions): Remove object declarations from list of actions. * output.ads, output.adb (Delete_Last_Char): New procedure. * sinfo.ads: Document handling of Mod and expression with actions in Modify_Tree_For_C mode. 2014-02-19 Ed Schonberg <schonberg@adacore.com> * par-ch9.adb (P_Task): Add a null statement to produce a well-formed task body when due to a previous syntax error the statement list is empty. 2014-02-19 Hristian Kirtchev <kirtchev@adacore.com> * sem_prag.adb (Check_Dependency_Clause): Account for the case where a state with a non-null refinement matches a null output list. Comment reformatting. (Inputs_Match): Copy a solitary input to avoid an assertion failure when trying to match the same input in multiple clauses. 2014-02-19 Gary Dismukes <dismukes@adacore.com> * sem_attr.adb: Minor typo fix. From-SVN: r207880
Arnaud Charlet committed -
2014-02-19 Richard Biener <rguenther@suse.de> PR ipa/60243 * ipa-prop.c: Include stringpool.h and tree-ssanames.h. (ipa_modify_call_arguments): Emit an argument load explicitely and preserve virtual SSA form there and for the replacement call. Do not update SSA form nor free dominance info. From-SVN: r207879
Richard Biener committed -
* ipa.c (function_and_variable_visibility): Also clear WEAK flag when disolving COMDAT_GROUP. From-SVN: r207878
Jan Hubicka committed -
* ipa-prop.h (ipa_ancestor_jf_data): Update ocmment. * ipa-prop.c (ipa_set_jf_known_type): Return early when not devirtualizing. (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved; do more sanity checks. (detect_type_change): Return true when giving up early. (compute_complex_assign_jump_func): Fix type parameter of ipa_set_ancestor_jf. (compute_complex_ancestor_jump_func): Likewise. (update_jump_functions_after_inlining): Fix updating of ancestor function. * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL. From-SVN: r207877
Jan Hubicka committed -
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove inline clones when edge disappears. From-SVN: r207875
Jan Hubicka committed -
PR c/60195 c/ * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. Call mark_exp_read on exp.value. (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set TREE_ADDRESSABLE on old instead of val. (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. testsuite/ * gcc.dg/pr60195.c: New test. From-SVN: r207873
Marek Polacek committed -
2014-02-19 Paul Pluzhnikov <ppluzhnikov@google.com> * gcc.dg/vect/no-vfa-vect-depend-2.c (main1): Fix buffer overflow. From-SVN: r207872
Paul Pluzhnikov committed -
PR preprocessor/58844 * macro.c (enter_macro_context): Only push macro_real_token_count (macro) tokens rather than macro->count tokens, regardless of CPP_OPTION (pfile, track-macro-expansion). * c-c++-common/cpp/pr58844-1.c: New test. * c-c++-common/cpp/pr58844-2.c: New test. From-SVN: r207871
Jakub Jelinek committed -
2014-02-18 Balaji V. Iyer <balaji.v.iyer@intel.com> + + * include/cilk/common.h (__CILKRTS_ABI_VERSION): Set the ABI version + to 1 instead of 0. + * runtime/cilk-abi-cilk-for.cpp (cilk_for_recursive): Added a fix to + initialize stack frame correctly. + From-SVN: r207870
Balaji V. Iyer committed -
2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/60203 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves): Split 64-bit moves into 2 patterns. Do not allow the use of direct move for TDmode in little endian, since the decimal value has little endian bytes within a word, but the 64-bit pieces are ordered in a big endian fashion, and normal subreg's of TDmode are not allowed. (mov<mode>_64bit_dm): Likewise. (movtd_64bit_nodm): Likewise. From-SVN: r207868
Michael Meissner committed -
From-SVN: r207863
GCC Administrator committed
-
- 18 Feb, 2014 18 commits
-
-
PR tree-optimization/60174 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining statement of an SSA_NAME that occurs in an abnormal PHI node. From-SVN: r207859
Eric Botcazou committed -
/cp 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60225 * semantics.c (ensure_literal_type_for_constexpr_object): Use strip_array_types. /testsuite 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60225 * g++.dg/cpp0x/constexpr-ice10.C: New. /cp 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60215 * semantics.c (cxx_eval_constant_expression, [COMPONENT_REF]): During error recovery allow_non_constant may be false. /testsuite 2014-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60215 * g++.dg/cpp0x/pr60215.C: New. From-SVN: r207858
Paolo Carlini committed -
Fix PR c++/60064. PR c++/60064 * parser.c (cp_parser_member_declaration): Pop fully implicit template scope for generic friend declarations as well as for non-friends. PR c++/60064 * g++.dg/cpp1y/pr60064.C: New testcase. From-SVN: r207856
Adam Butcher committed -
2014-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/49397 * gfortran.dg/proc_ptr_45.f90: New. * gfortran.dg/proc_ptr_46.f90: New. From-SVN: r207855
Tobias Burnus committed -
2014-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/49397 * expr.c (gfc_check_pointer_assign): Add check for F2008Cor2, C729. * trans-decl.c (gfc_get_symbol_decl): Correctly generate * external decl in a corner case. 2014-02-18 Tobias Burnus <burnus@net-b.de> PR fortran/49397 * gfortran.dg/proc_ptr_45.f90: New. * gfortran.dg/proc_ptr_46.f90: New. From-SVN: r207854
Tobias Burnus committed -
re PR sanitizer/60142 ([asan] -fsanitize=address breaks debugging - stepping into functions no longer possible) PR sanitizer/60142 * final.c (SEEN_BB): Remove. (SEEN_NOTE, SEEN_EMITTED): Renumber. (final_scan_insn): Don't force_source_line on second NOTE_INSN_BASIC_BLOCK. From-SVN: r207853
Jakub Jelinek committed -
Fix PR c++/60190. PR c++/60190 * parser.c (cp_parser_lambda_declarator_opt): Pop template parameter scope whenever a template parameter list has been started, independent of whether the function call operator was well-formed or not. PR c++/60190 * g++.dg/cpp1y/pr60190.C: New testcase. From-SVN: r207852
Adam Butcher committed -
PR target/60205 * config/i386/i386.h (struct ix86_args): Add warn_avx512f. * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f. (type_natural_mode): Warn ABI change when %zmm register is not available for AVX512F vector value passing. testsuite/ChangeLog: PR target/60205 * gcc.target/i386/pr60205-1.c: New test. * gcc.target/i386/pr60205-2.c: Ditto. From-SVN: r207851
Uros Bizjak committed -
2014-02-18 Kai Tietz <ktietz@redhat.com> Jonathan Schleifer <js@webkeks.org> PR objc/56870 * unwind-seh.c (_GCC_specific_handler): Pass proper value to unwind-handler. Co-Authored-By: Jonathan Schleifer <js@webkeks.org> From-SVN: r207849
Kai Tietz committed -
2014-02-18 Kai Tietz <ktietz@redhat.com> PR target/60193 * config/i386/i386.c (ix86_expand_prologue): Use rax register as displacement for restoring %r10, %rax. Additional fix wrong offset for restoring both-registers. 2014-02-18 Kai Tietz <ktietz@redhat.com> PR target/60193 * gcc.target/i386/nest-1.c: New testcase. From-SVN: r207844
Kai Tietz committed -
2014-02-18 Robert Dewar <dewar@adacore.com> * cstand.adb (Build_Signed_Integer_Type): Minor change of formal from Int to Nat (Build_Unsigned_Integer_Type): New procedure (Create_Standard): Create new unsigned types. * exp_ch4.adb (Expand_N_Op_Mod): Expand mod in Modify_Tree_For_C mode (Expand_N_Reference): Removed, problematic and not needed for now. * exp_ch4.ads (Expand_N_Reference): Removed, problematic and not needed for now. * exp_util.ads, exp_util.adb (Power_Of_Two): New function. * expander.adb: Remove call to Expand_N_Reference (problematic, and not needed now). * sem_aux.ads, sem_aux.adb (Corresponding_Unsigned_Type): New function. * stand.adb: Read and write unsigned type entities. * stand.ads: Add new unsigned types. 2014-02-18 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch4.adb (Analyze_Call): Do not mark a function call as being inside an assertion expression as the flag is now removed. (Check_Ghost_Subprogram_Call): Do not query the In_Assertion_Expression flag as it is now removed, instead use a predicate function. * sem_elab.adb (Check_Internal_Call_Continue): Do not query the In_Assertion_Expression flag as it is now removed, instead use a predicate function. * sem_prag.ads: Add new table Assertion_Expression_Pragma. * sem_util.adb Add with and use clause for Sem_Prag. (In_Assertion_Expression_Pragma): New routine. * sem_util.ads (In_Assertion_Expression_Pragma): New routine. * sinfo.adb (In_Assertion_Expression): Removed. (Set_In_Assertion_Expression): Removed. * sinfo.ads Remove flag In_Assertion_Expression along with its use in nodes. (In_Assertion_Expression): Removed along with pragma Inline. (Set_In_Assertion_Expression): Removed along with pragma Inline. 2014-02-18 Sergey Rybin <rybin@adacore.com frybin> * gnat_ugn.texi: gnatpp section: add note that '-j' cannot be used together with '-r', '-rf' or '-rnb' options. 2014-02-18 Hristian Kirtchev <kirtchev@adacore.com> * sem_attr.adb (Analyze_Attribute): Comment and code reformatting. Use separate routines to check the legality of attribute 'Old in certain pragmas. Verify the use of 'Old, 'Result and locally declared entities within the prefix of 'Old. (Check_References_In_Prefix): New routine. (Check_Use_In_Contract_Cases): New routine. (Check_Use_In_Test_Case): New routine. From-SVN: r207843
Arnaud Charlet committed -
2014-02-18 Vincent Celier <celier@adacore.com> * sem_aux.adb (Is_By_Reference_Type): For each components of a record type, check also if the component is volatile as it may have an aspect that makes it volatile. If it is, then the record type is a by reference type. From-SVN: r207842
Vincent Celier committed -
2014-02-18 Robert Dewar <dewar@adacore.com> * exp_attr.adb: Minor reformatting. * exp_ch4.ads, exp_ch4.adb (Expand_N_Reference): New procedure. * exp_util.adb (Remove_Side_Effects): Add conditional expressions as another case where we don't generate N_Reference nodes for primitive types. * expander.adb (Expand): Add call to Expand_N_Reference. From-SVN: r207841
Robert Dewar committed -
ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous assertion with conditional return. * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous assertion with conditional return. From-SVN: r207838
Eric Botcazou committed -
2014-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/60231 * resolve.c (check_generic_tbp_ambiguity): Check for presence of dummy arguments to prevent ICE. 2014-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/60231 * gfortran.dg/typebound_generic_15.f90: New. From-SVN: r207836
Janus Weil committed -
PR driver/60233 * config/i386/driver-i386.c (host_detect_local_cpu): If YMM state is not saved by the OS, also clear has_f16c. Move CPUID 0x80000001 handling before YMM state saving checking. Co-Authored-By: Uros Bizjak <ubizjak@gmail.com> From-SVN: r207833
Jakub Jelinek committed -
PR rtl-optimization/58960 * haifa-sched.c (alloc_global_sched_pressure_data): New, factored out from ... (sched_init): ... here. (free_global_sched_pressure_data): New, factored out from ... (sched_finish): ... here. * sched-int.h (free_global_sched_pressure_data): Declare. * sched-rgn.c (nr_regions_initial): New static global. (haifa_find_rgns): Initialize it. (schedule_region): Disable sched-pressure for the newly generated regions. From-SVN: r207832
Andrey Belevantsev committed -
From-SVN: r207831
GCC Administrator committed
-
- 17 Feb, 2014 1 commit
-
-
From-SVN: r207828
Loren J. Rittle committed
-