- 25 Feb, 2014 25 commits
-
-
* einfo.ads Update the usage of flag Uses_Sec_Stack. Uses_Sec_Stack now applies to E_Loop entities. * exp_ch5.adb (Expand_Iterator_Loop): The temporary for a cursor now starts with the letter 'C'. This makes reading expanded code easier. * exp_ch7.adb (Establish_Transient_Scope): Add local variable Iter_Loop. Signal that an Ada 2012 iterator loop requires secondary stack management when creating a transient scope for an element reference. * exp_util.adb (Process_Statements_For_Controlled_Objects): When wrapping the statements of a loop, pass the E_Loop entity to the wrapping machinery. (Wrap_Statements_In_Block): Add formal parameter Scop along with comment on usage. Add local variables Block_Id, Block_Nod and Iter_Loop. Mark the generated block as requiring secondary stack management when the block is created inside an Ada 2012 iterator loop. This ensures that any reference objects are reclaimed on each iteration of the loop. * sem_ch5.adb (Analyze_Loop_Statement): Mark the generated block tasked with the handling of container iterators as requiring secondary stack management. This ensures that iterators are reclaimed when the loop terminates or is exited in any fashion. * sem_util.adb (Add_Block_Identifier): New routine. (Find_Enclosing_Iterator_Loop): New routine. * sem_util.ads (Add_Block_Identifier): New routine. (Find_Enclosing_Iterator_Loop): New routine. From-SVN: r208133
Hristian Kirtchev committed -
2014-02-25 Robert Dewar <dewar@adacore.com> * sinfo.ads: Minor reformatting. 2014-02-25 Tristan Gingold <gingold@adacore.com> * s-expllu.ads, s-expuns.ads, s-expmod.ads: Minor comment fix. 2014-02-25 Pascal Obry <obry@adacore.com> * sinput-l.adb, osint.adb, osint.ads: Add Prep_Suffix to factorize code. From-SVN: r208132
Arnaud Charlet committed -
2014-02-25 Tristan Gingold <gingold@adacore.com> * sem_ch10.adb: Minor comment fix. 2014-02-25 Bob Duff <duff@adacore.com> * s-tasdeb.adb: Misc cleanup of this package, including printing addresses in hexadecimal. (Write): Fix minor bug when taking 'Address of an empty string. 2014-02-25 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Analyze_Part_Of): Reject state refinement in a public child unit when it does not refer to the abstract state of a public ancestor. From-SVN: r208131
Arnaud Charlet committed -
2014-02-25 Yannick Moy <moy@adacore.com> * sem_prag.adb (Analyze_Pragma/Pragma_Validity_Checks): Ignore pragma Validity_Checks in GNATprove and CodePeer modes. 2014-02-25 Pascal Obry <obry@adacore.com> * prj-attr.adb, projects.texi, snames.ads-tmpl: Add package Install's Artifacts attribute. From-SVN: r208130
Arnaud Charlet committed -
2014-02-25 Yannick Moy <moy@adacore.com> * sem_prag.adb: Minor reformatting to get consistent messages. 2014-02-25 Robert Dewar <dewar@adacore.com> * checks.adb: Minor reformatting. * sinfo.ads (Do_Range_Check): Document that this flag is never passed to the back end. From-SVN: r208129
Arnaud Charlet committed -
2014-02-25 Yannick Moy <moy@adacore.com> * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem_attr.adb, sem_ch6.adb: Remove useless references to SPARK RM in error messages. 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com> * sem_res.adb (Appears_In_Check): New routine. (Resolve_Entity_Name): Remove local variables Prev and Usage_OK. Par is now a constant. Remove the parent chain traversal as the placement of a volatile object with enabled property Async_Writers and/or Effective_Reads must appear immediately within a legal construct. 2014-02-25 Hristian Kirtchev <kirtchev@adacore.com> * checks.adb (Apply_Selected_Range_Checks): Alphabetize local constants and variables. Add comments. Always insert a range check that requires runtime evaluation into the tree. From-SVN: r208128
Arnaud Charlet committed -
2014-02-25 Robert Dewar <dewar@adacore.com> * sem_attr.adb, sem_ch6.adb, par-ch3.adb: Minor reformatting. 2014-02-25 Bob Duff <duff@adacore.com> * s-tassta.adb (Finalize_Global_Tasks): Limit the number of loop iterations while waiting for independent tasks to terminate; if an independent task does not terminate, we do not want to hang here. In that case, the thread will be terminated when the process exits. * s-taprop-linux.adb (Abort_Task): Fix Assert to allow for ESRCH. 2014-02-25 Ed Schonberg <schonberg@adacore.com> * sem_prag.adb (Check_SPARK_Aspect_For_ASIS): New subprogram, used to perform pre-analysis of the expression for SPARK aspects that have a non-standard syntax, such as GLobal and Initializes. The procedure applies to the original expression in an aspect specification, prior to the analysis of the corresponding pragma, in order to provide semantic information for ASIS navigation purposes. (Analyze_Global_In_Decl_List, Analyze_Initializes_In_Decl_Part): Call new subprogram. From-SVN: r208127
Arnaud Charlet committed -
2014-02-25 Yannick Moy <moy@adacore.com> * sem_prag.adb: Remove obsolete reference to SPARK RM in error message. 2014-02-25 Doug Rupp <rupp@adacore.com> * init.c (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Enable for ARM. (__gnat_adjust_context_for_raise): Bump the PC by 2. 2014-02-25 Ed Schonberg <schonberg@adacore.com> * par-ch3.adb (P_Basic_Declarative_Items): In the case of a misplaced IS, add a statement sequence to improper body only if one has not been parsed already. 2014-02-25 Ed Schonberg <schonberg@adacore.com> * sem_attr.adb (Analyze_Attribute, case 'Update): Check for mismatch when multidimensional array is updated with a single index. From-SVN: r208126
Arnaud Charlet committed -
2014-02-25 Yannick Moy <moy@adacore.com> * sem_ch3.adb, sem_ch5.adb, sem_prag.adb, sem_attr.adb, errout.ads, sem_ch6.adb: Mark most references to SPARK RM in error messages for removal. From-SVN: r208125
Yannick Moy committed -
From-SVN: r208124
William Schmidt committed -
2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * config/rs6000/vector.md (*vector_ordered<mode>): Change split to use canonical form for nor<mode>3. (*vector_unordered<mode>): Likewise. From-SVN: r208122
Bill Schmidt committed -
gcc/testsuite: 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.dg/vmx/ld-vsx.c: Don't use vec_all_eq. * gcc.dg/vmx/ld-vsx-be-order.c: Likewise. * gcc.dg/vmx/ldl-vsx.c: Likewise. * gcc.dg/vmx/ldl-vsx-be-order.c: Likewise. * gcc.dg/vmx/merge-vsx.c: Likewise. * gcc.dg/vmx/merge-vsx-be-order.c: Likewise. From-SVN: r208120
Bill Schmidt committed -
PR target/55426 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit conversions. From-SVN: r208116
Kyrylo Tkachov committed -
* common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET), (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New. (ix86_handle_option): Handle OPT_mprefetchwt1. * config/i386/cpuid.h (bit_PREFETCHWT1): New. * config/i386/driver-i386.c (host_detect_local_cpu): Detect PREFETCHWT1 CPUID. * config/i386/i386-c.c (ix86_target_macros_internal): Handle OPTION_MASK_ISA_PREFETCHWT1. * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1. (PTA_PREFETCHWT1): New. (ix86_option_override_internal): Handle PTA_PREFETCHWT1. (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1. * config/i386/i386.h (TARGET_PREFETCHWT1), (TARGET_PREFETCHWT1_P): New. * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1 (*prefetch_avx512pf_<mode>_: Change into ... (*prefetch_prefetchwt1_<mode>: This. * config/i386/i386.opt (mprefetchwt1): New. * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1. (_mm_prefetch): Handle intent to write. * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument. gcc/testsuite/ * gcc.target/i386/avx-1.c: Update __builtin_prefetch. * gcc.target/i386/prefetchwt1-1.c: New. * g++.dg/other/i386-2.C: Add new option. * g++.dg/other/i386-3.C: Ditto. * gcc.target/i386/sse-12.c: Ditto. * gcc.target/i386/sse-13.c: Update __builtin_prefetch, add new option. * gcc.target/i386/sse-22.c: Add new option. * gcc.target/i386/sse-23.c: Update __builtin_prefetch, add new option. From-SVN: r208115
Ilya Tocar committed -
Skip gfortran.dg/erf_3.F90 and gfortran.dg/round_4.f90 on Solaris 9 (PR libfortran/59313, libfortran/58015) PR libfortran/59313 * gfortran.dg/erf_3.F90: Skip on sparc*-*-solaris2.9*. PR libfortran/58015 * gfortran.dg/round_4.f90: Skip on *-*-solaris2.9*. From-SVN: r208114
Rainer Orth committed -
re PR middle-end/60291 (slow compile times for any mode (-O0/-O1/-O2) on large .c source file (30MBs)) 2014-02-25 Richard Biener <rguenther@suse.de> PR middle-end/60291 * emit-rtl.c (mem_attrs_htab): Remove. (mem_attrs_htab_hash): Likewise. (mem_attrs_htab_eq): Likewise. (set_mem_attrs): Always allocate new mem-attrs when something changed. (init_emit_once): Do not allocate mem_attrs_htab. From-SVN: r208113
Richard Biener committed -
2014-02-25 Richard Biener <rguenther@suse.de> PR lto/60319 * lto-opts.c (lto_write_options): Output non-explicit conservative -fwrapv, -fno-trapv and -fno-strict-overflow. * lto-wrapper.c (merge_and_complain): Handle merging those options. (run_gcc): And pass them through. From-SVN: r208112
Richard Biener committed -
Fix PR c++/60311. PR c++/60311 * parser.c (function_being_declared_is_template_p): Return false when processing a template parameter list. (cp_parser_parameter_declaration_clause): Don't set auto_is_implicit_function_template_parm_p when processing a template parameter list. PR c++/60311 * g++.dg/cpp1y/pr60311.C: New testcase. From-SVN: r208111
Adam Butcher committed -
* sel-sched.c (calculate_new_fences): New parameter ptime. Calculate it as a maximum over all fence cycles. (sel_sched_region_2): Adjust the call to calculate_new_fences. Print the final schedule timing when sched_verbose. From-SVN: r208110
Andrey Belevantsev committed -
re PR middle-end/60292 (ICE: in fill_vec_av_set, at sel-sched.c:3863 with -m64 after r206174 on powerpc-apple-darwin9.8.0) PR rtl-optimization/60292 * sel-sched.c (fill_vec_av_set): Do not reset target availability bit fot the fence instruction. From-SVN: r208109
Andrey Belevantsev committed -
From-SVN: r208108
Alangi Derick committed -
* parser.c (synthesize_implicit_template_parm): Inject new template argument list appropriately when a generic member function of a class template is declared out-of-line. * g++.dg/cpp1y/fn-generic-member-ool.C: New testcase. From-SVN: r208107
Adam Butcher committed -
Fix PR c++/60065. PR c++/60065 * parser.c (cp_parser_direct_declarator): Don't save and restore num_template_parameter_lists around call to cp_parser_parameter_declaration_list. (function_being_declared_is_template_p): New predicate. (cp_parser_parameter_declaration_list): Use function_being_declared_is_template_p as predicate for inspecting current function template parameter list length rather than num_template_parameter_lists. PR c++/60065 * g++.dg/cpp1y/pr60065.C: New testcase. From-SVN: r208106
Adam Butcher committed -
* config/pa/pa.c (pa_output_move_double): Don't valididate when adjusting offsetable addresses. From-SVN: r208101
John David Anglin committed -
From-SVN: r208100
GCC Administrator committed
-
- 24 Feb, 2014 15 commits
-
-
PR lto/60295 * lto.c (stream_out): Avoid parallel streaming with -flto=jobserver until we are able to throttle it down resonably. From-SVN: r208097
Jan Hubicka committed -
PR c++/60146 * pt.c (tsubst_omp_for_iterator): Don't let substitution of the DECL_EXPR initialize a non-class iterator. From-SVN: r208094
Jason Merrill committed -
PR c++/60312 * parser.c (cp_parser_template_type_arg): Check for invalid 'auto'. From-SVN: r208092
Jason Merrill committed -
* sparseset.h (sparseset_pop): Fix the wrong index. From-SVN: r208091
Guozhi Wei committed -
2014-02-24 Thomas Quinot <quinot@adacore.com> * s-os_lib.ads: Update comment. 2014-02-24 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Expression_Function): Use sloc of original defining identifiers in parameter specifications for body. They may differ from parameter specification itself if a list of identifiers appears in the tree and is expanded by parser. 2014-02-24 Ed Schonberg <schonberg@adacore.com> * par-ch3.adb (P_Basic_Declarative_Items): If an improper body appears in a list of basic declarations, complete the tree with an empty statement list, to prevent cascaded errors and crashes if semantic analysis is attempted. From-SVN: r208090
Arnaud Charlet committed -
2014-02-24 Thomas Quinot <quinot@adacore.com> * g-sercom-mingw.adb (Open): Fix incorrect test for error return value. * erroutc.adb: Minor reformatting. 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com> * sem_prag.adb (Check_Clause_Syntax): Account for a solitary input item in a dependency list. 2014-02-24 Yannick Moy <moy@adacore.com> * gnat1drv.adb (Adjust_Global_Switches): Do not use validity checks at all in GNATprove_Mode. From-SVN: r208089
Arnaud Charlet committed -
2014-02-24 Robert Dewar <dewar@adacore.com> * g-sercom-mingw.adb, g-sercom-linux.adb, sem_prag.adb, freeze.adb, atree.adb, atree.ads: Minor reformatting. From-SVN: r208088
Robert Dewar committed -
sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce global and dependence refinement when SPARK_Mode is off. 2014-02-24 Hristian Kirtchev <kirtchev@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Body_Contract): Do not enforce global and dependence refinement when SPARK_Mode is off. * sem_ch7.adb (Analyze_Package_Body_Contract): Do not enforce state refinement when SPARK_Mode is off. * sem_ch13.adb (Analyze_Aspect_Specifications): Add local variable Decl. Insert the generated pragma for Refined_State after a potential pragma SPARK_Mode. * sem_prag.adb (Analyze_Depends_In_Decl_Part): Add local constant Deps. Remove local variable Expr. Check the syntax of pragma Depends when SPARK_Mode is off. Factor out the processing for extra parenthesis around individual clauses. (Analyze_Global_In_Decl_List): Items is now a constant. Check the syntax of pragma Global when SPARK_Mode is off. (Analyze_Initializes_In_Decl_Part): Check the syntax of pragma Initializes when SPARK_Mode is off. (Analyze_Part_Of): Check the syntax of the encapsulating state when SPARK_Mode is off. (Analyze_Pragma): Check the syntax of pragma Abstract_State when SPARK_Mode is off. Move the declaration order check with respect to pragma Initializes to the end of the processing. Do not verify the declaration order for pragma Initial_Condition when SPARK_Mode is off. Do not complain about a useless package refinement when SPARK_Mode is off. (Analyze_Refined_Depends_In_Decl_Part): Refs is now a constant. Check the syntax of pragma Refined_Depends when SPARK_Mode is off. (Analyze_Refined_Global_In_Decl_Part): Check the syntax of pragma Refined_Global when SPARK_Mode is off. (Analyze_Refined_State_In_Decl_Part): Check the syntax of pragma Refined_State when SPARK_Mode is off. (Check_Dependence_List_Syntax): New routine. (Check_Global_List_Syntax): New routine. (Check_Initialization_List_Syntax): New routine. (Check_Item_Syntax): New routine. (Check_State_Declaration_Syntax): New routine. (Check_Refinement_List_Syntax): New routine. (Has_Extra_Parentheses): Moved to the top level of Sem_Prag. From-SVN: r208087
Hristian Kirtchev committed -
2014-02-24 Robert Dewar <dewar@adacore.com> * a-tags.adb, s-os_lib.adb: Minor reformatting. 2014-02-24 Thomas Quinot <quinot@adacore.com> * g-sercom-mingw.adb, g-sercom-linux.adb (Raise_Error): Include strerror message, not just numeric errno value. 2014-02-24 Doug Rupp <rupp@adacore.com> * raise-gcc.c (exception_class_eq): Make endian neutral. 2014-02-24 Ed Schonberg <schonberg@adacore.com> * atree.ads, atree,adb (Copy_Separate_Tree): Remove Syntax_Only flag, and reset Etype and Analyzed attributes unconditionally when copying a tree that may be partly analyzed. * freeze.adb: Change calls to Copy_Separate_Tree accordingly. * sem_ch6.adb (Check_Inline_Pragma): If the Inline pragma appears within a subprogram body and applies to it, remove it from the body before making a copy of it, to prevent spurious errors when analyzing the copied body. From-SVN: r208086
Arnaud Charlet committed -
From-SVN: r208085
Arnaud Charlet committed -
* gcc-interface/Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Update deps. From-SVN: r208084
Arnaud Charlet committed -
2014-02-24 Thomas Quinot <quinot@adacore.com> * s-os_lib.adb (Errno_Message): Do not depend on Integer'Image. * s-oscons-tmplt.c: On VxWorks, include adaint.h only after vxWorks.h has been included. Also ensure that file attributes related definitions are output even in cases where socket support is not enabled. * a-tags.adb: Code clean up. * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Use -iquote instead of -I to add the main ada source directory to the header search path, in order to avoid conflict between our own "types.h" and VxWork's <types.h>. 2014-02-24 Robert Dewar <dewar@adacore.com> * atree.ads, atree.adb (Copy_Separate_Tree): Add Syntax_Only parameter. * debug.adb: Remove documentation of -gnatd.X, no longer used. * freeze.adb (Wrap_Imported_Subprogram): Fixed and activated. 2014-02-24 Bob Duff <duff@adacore.com> * gnat_ugn.texi: Improve documentation of gnatpp. From-SVN: r208083
Arnaud Charlet committed -
2014-02-24 Thomas Quinot <quinot@adacore.com> * g-stheme.adb, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads, g-stseme.adb, g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads, g-socket.adb (Host_Error_Message): Return a string, not a chars_ptr, because on Windows this is a renaming of Socket_Error_Message. From-SVN: r208082
Thomas Quinot committed -
2014-02-24 Robert Dewar <dewar@adacore.com> * a-direct.adb, sem_ch5.adb, a-cfdlli.adb, a-cfhase.adb, a-tags.adb, s-filatt.ads, a-cforma.adb, sem_ch6.adb, g-socthi-mingw.adb, a-cfhama.adb, a-cforse.adb, a-cofove.adb: Minor reformatting and code reorganization. 2014-02-24 Thomas Quinot <quinot@adacore.com> * Make-generated.in (OSCONS_CPP, OSCONS_EXTRACT): Make sure that the source directory containing s-oscons-tmplt.c is on the include path, so that all internal header files are available. From-SVN: r208081
Arnaud Charlet committed -
sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the domain of iteration is an attribute reference 'Old... 2014-02-24 Ed Schonberg <schonberg@adacore.com> * sem_ch5.adb (Analyze_Loop_Parameter_Specification): If the domain of iteration is an attribute reference 'Old, this is an Ada 2012 iterator and the loop must be rewritten as such. From-SVN: r208080
Ed Schonberg committed
-