1. 25 Jan, 2014 13 commits
  2. 24 Jan, 2014 27 commits
    • print-rtl.c (in_call_function_usage): New var. · 4def6060
      	* print-rtl.c (in_call_function_usage): New var.
      	(print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
      	EXPR_LIST mode as mode and not as reg note name.
      
      From-SVN: r207066
      Jakub Jelinek committed
    • re PR middle-end/59561 (warning: iteration 4 invokes undefined behavior) · 2105be5a
      	PR middle-end/59561
      	* cfgloopmanip.c (copy_loop_info): If
      	loop->warned_aggressive_loop_optimizations, make sure
      	the flag is set in target loop too.
      
      From-SVN: r207065
      Jakub Jelinek committed
    • Replace flag_enable_cilkplus with flag_cilkplus. · b72271b9
      gcc/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
      +       flag_cilkplus.
      +       * builtins.def: Likewise.
      +       * cilk.h (fn_contains_cilk_spawn_p): Likewise.
      +       * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
      +       * ira.c (ira_setup_eliminable_regset): Likewise.
      +       * omp-low.c (gate_expand_omp): Likewise.
      +       (execute_lower_omp): Likewise.
      +       (diagnose_sb_0): Likewise.
      +       (gate_diagnose_omp_blocks): Likewise.
      +       (simd_clone_clauses_extract): Likewise.
      +       (gate): Likewise.
      +
      
      gcc/c-family/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
      +       flag_cilkplus.
      +       * c-pragma.c (init_pragma): Likewise.
      +       * c.opt: Likewise.
      +
      
      gcc/c/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * c-parser.c (c_parser_declaration_or_fndef): Replaced
      +       flag_enable_cilkplus with flag_cilkplus.
      +       (c_parser_direct_declarator_inner): Likewise.
      +       (c_parser_attribute_any_word): Likewise.
      +       (c_parser_attributes): Likewise.
      +       (c_parser_compound_statement): Likewise.
      +       (c_parser_statement_after_labels): Likewise.
      +       (c_parser_if_statement): Likewise.
      +       (c_parser_switch_statement): Likewise.
      +       (c_parser_do_statement): Likewise.
      +       (c_parser_for_statement): Likewise.
      +       (c_parser_unary_expression): Likewise.
      +       (c_parser_postfix_expression): Likewise.
      +       (c_parser_postfix_expression_after_primary): Likewise.
      +       (c_parser_postfix_expression_after_primary): Likewise.
      +       (c_parser_omp_clause_name): Likewise.
      +       (c_finish_omp_declare_simd): Likewise.
      +       (c_parser_cilk_verify_simd): Likewise.
      +       * c-typeck.c (build_array_ref): Likewise.
      +       (build_function_call_vec): Likewise.
      +       (convert_arguments): Likewise.
      +       (build_compound_expr): Likewise.
      +       (c_finish_return): Likewise.
      +       (c_finish_if_stmt): Likewise.
      +       (c_finish_loop): Likewise.
      +       (build_binary_op): Likewise.
      +
      
      gcc/lto/ChangeLog
      +2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
      +
      +       * lto-lang.c (lto_init): Replaced flag_enable_cilkplus with
      +       flag_cilkplus.
      +
      
      From-SVN: r207064
      Balaji V. Iyer committed
    • compiler: Use backend interface for unary expressions. · 8a35e18d
      	* go-gcc.cc (Gcc_backend::unary_expression): New function.
      
      From-SVN: r207063
      Chris Manghane committed
    • rs6000.c (rs6000_expand_vec_perm_const_1): Remove correction for little endian... · 8adcc78b
      2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
      	correction for little endian...
      	* config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
      	here.
      
      From-SVN: r207062
      Bill Schmidt committed
    • re PR tree-optimization/59919 (ICE in process_assert_insertions_for, at tree-vrp.c:6096) · 3d750496
      	PR tree-optimization/59919
      	* tree-vrp.c (find_assert_locations_1): Do not register asserts
      	for non-returning calls.
      
      	PR tree-optimization/59919
      	* gcc.c-torture/compile/pr59919.c: New test.
      
      From-SVN: r207061
      Jeff Law committed
    • re PR libstdc++/59531 (string_view overrun in copy operation) · bb393514
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      
      	PR libstdc++/59531
      	* testsuite/experimental/string_view/operations/copy/char/1.cc: New.
      	* testsuite/experimental/string_view/operations/copy/wchar_t/1.cc: New.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59531
      	* include/experimental/string_view
      	(copy(_CharT*, size_type, size_type) const): Correct throw string.
      	Correct copy start location.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59530
      	* include/experimental/string_view (operator[](size_type) const):
      	Fix one-off index error in debug check.
      	* testsuite/experimental/string_view/element_access/char/1.cc: Don't
      	test basic_string_view at size().
      	* testsuite/experimental/string_view/element_access/wchar_t/1.cc: Ditto.
      
      2014-01-24  Ed Smith-Rowland  <3dw4rd@verizon.net>
      	    Peter A. Bigot <pab@pabigot.com>
      
      	PR libstdc++/59529
      	* include/experimental/string_view
      	(basic_string_view(const _CharT*, size_type)): Don't care if len == 0.
      	* testsuite/experimental/string_view/operations/substr/char/1.cc:
      	Comment out catch of out_of_range; No terminating null
      	in basic_string_view.  Check begin == end.
      	* testsuite/experimental/string_view/operations/substr/wchar_t/1.cc:
      	Ditto.
      
      
      Co-Authored-By: Peter A. Bigot <pab@pabigot.com>
      
      From-SVN: r207060
      Ed Smith-Rowland committed
    • re PR libstdc++/59548 (Abort after copying std::unordered_map in debug mode) · f7491277
      	PR libstdc++/59548
      	* include/debug/safe_base.h (_Safe_sequence_base): Define copy
      	constructor to prevent it being implicitly defined as deleted, but
      	do not copy anything.
      	* include/debug/safe_unordered_base.h (_Safe_unordered_container_base):
      	Define copy and move constructors similar to _Safe_sequence_base's.
      	* testsuite/23_containers/unordered_map/59548.cc: New.
      
      From-SVN: r207059
      Jonathan Wakely committed
    • re PR c++/58550 (][c++11] ICE with auto in function return type and lto) · 233aedf4
      	PR c++/58550
      	* decl.c (grokdeclarator): Turn pedwarn about auto return type in
      	c++11 into error.
      
      From-SVN: r207055
      Jason Merrill committed
    • typo · 4bcfd75c
      From-SVN: r207054
      Jason Merrill committed
    • [AArch64] fix big.LITTLE spec rewriting · 1c05df59
      gcc/
      
      	* common/config/aarch64/aarch64-common.c
      	(aarch64_rewrite_mcpu): Handle multiple names.
      	* config/aarch64/aarch64.h
      	(BIG_LITTLE_SPEC): Do not discard mcpu switches.
      
      From-SVN: r207053
      James Greenhalgh committed
    • re PR c++/59886 (C++ array init optimization results in RANGE_EXPRs in assignments) · 5f36e00f
      	PR c++/59886
      	PR c++/59659
      	* g++.dg/opt/value-init2.C: Remove.
      
      From-SVN: r207052
      Jason Merrill committed
    • re PR c++/59886 (C++ array init optimization results in RANGE_EXPRs in assignments) · 114bf260
      	PR c++/59886
      	PR c++/59659
      	* typeck2.c (process_init_constructor_array): Don't create
      	RANGE_EXPR yet.
      
      From-SVN: r207051
      Jason Merrill committed
    • typeck2.c (split_nonconstant_init_1): Fix num_split_elts handling for RANGE_ARRAY case. · 2cbf3dd7
      	* typeck2.c (split_nonconstant_init_1): Fix num_split_elts
      	handling for RANGE_ARRAY case.
      
      From-SVN: r207050
      Jakub Jelinek committed
    • [multiple changes] · c51f5910
      2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* set_targ.adb: Set Short_Enums.
      	* gcc-interface/lang.opt (fshort-enums): New option.
      	* gcc-interface/misc.c (gnat_handle_option): Handle it.
      	(gnat_post_options): Do not modify the global settings.
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* g-rannum.ads, g-rannum.adb (Random_Ordinary_Fixed): New generic
      	function.
      	(Random_Decimal_Fixed): New generic function.
      	* s-rannum.ads: Minor comment clarifications.
      
      From-SVN: r207049
      Arnaud Charlet committed
    • re PR c++/57524 (ICE: in timevar_start, at timevar.c:343) · f9e2a506
      /cp
      2014-01-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/57524
      	* name-lookup.c (push_using_directive): Use timevar_cond_start.
      
      /testsuite
      2014-01-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/57524
      	* g++.dg/ext/timevar2.C: New.
      
      From-SVN: r207047
      Paolo Carlini committed
    • Avoid crashing when an input file could not be opened · 317363b4
      	* input.c (add_file_to_cache_tab): Handle the case where fopen
      	returns NULL.
      
      Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
      
      From-SVN: r207046
      Dodji Seketeli committed
    • back_end.adb: Remove Short_Enums handling (handled in Ttypes/Get_Targ now) Minor added comments. · f27ad2b2
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* back_end.adb: Remove Short_Enums handling (handled in
      	Ttypes/Get_Targ now) Minor added comments.
      	* freeze.adb: Change name Short_Enums_On_Target to
      	Target_Short_Enums.
      	* get_targ.ads, get_targ.adb (Get_Short_Enums): New function.
      	* opt.ads: Minor comment updates.
      	* sem_ch13.adb: Change name Short_Enums_On_Target to
      	Target_Short_Enums.
      	* set_targ.adb: Set Short_Enums from gcc back end.
      	* set_targ.ads (Short_Enums): New variable.
      	* targparm.ads, targparm.adb: Remove Short_Enums entries (handled in
      	Ttypes/Get_Targ now).
      	* ttypes.ads (Target_Short_Enums): New constant boolean switch
      
      From-SVN: r207045
      Robert Dewar committed
    • g-sercom-mingw.adb: Fix serial port name for port number > 10. · dd6ab508
      2014-01-24  Pascal Obry  <obry@adacore.com>
      
      	* g-sercom-mingw.adb: Fix serial port name for port number > 10.
      
      From-SVN: r207044
      Pascal Obry committed
    • exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when comparing it with Ctrl_Arg... · e6d5d940
      2014-01-24  Gary Dismukes  <dismukes@adacore.com>
      
      	* exp_disp.adb (Expand_Dispatching_Call): Call Unqualify on Param when
      	comparing it with Ctrl_Arg, since Ctrl_Arg may have had qualification
      	stripped off.
      
      From-SVN: r207043
      Gary Dismukes committed
    • [multiple changes] · ab986406
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* sinfo.ads, make.adb, prj-env.adb: Minor reformatting.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj.adb (Add_Aggregated_Project): Do not add a project in
      	the list if it is already there.
      
      2014-01-24  Yannick Moy  <moy@adacore.com>
      
      	* lib-xref-spark_specific.adb (Enclosing_Subprogram_Or_Package):
      	Correct the search for a subrogram declaration to which a pragma is
      	attached.
      
      2014-01-24  Bob Duff  <duff@adacore.com>
      
      	* gnat_ugn.texi: Document --decimal-grouping and
      	--based-grouping switches in gnatpp.
      
      From-SVN: r207042
      Arnaud Charlet committed
    • sinfo.ads: Documentation update. · 979b94ea
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sinfo.ads: Documentation update.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Constant_Redeclaration): New declaration is
      	illegal if previous one has an initial expression that is an
      	aggregate expanded into assignments.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Loop_Parameter_Specification): Small
      	code reorganization to remove spurious warning on a loop with
      	an array element iterator that has a null range.
      
      From-SVN: r207041
      Arnaud Charlet committed
    • prj.adb, [...]: Add comment, minor code clean ups. · 8edc33fa
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* prj.adb, prj-env.adb, back_end.adb: Add comment, minor code clean ups.
      
      From-SVN: r207040
      Robert Dewar committed
    • sem_ch3.adb (Analyze_Declarations): At the end of an appropriate declarative part... · ad4e3362
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Analyze_Declarations): At the end of an
      	appropriate declarative part, call Freeze_All from the first
      	declaration in the scope, not from the first unfrozen one. This
      	is necessary to apply visibility checks to entities with delayed
      	aspects. Otherwise, in the presence of instantiations and cleanups
      	that they may generate, the delayed aspects may be analyzed too
      	late and produce spurious visibility errors.
      	* sem_attr.adb: Place etype on range.
      	* sem_ch6.adb: Documentation expression functions.
      
      From-SVN: r207039
      Ed Schonberg committed
    • misc.c (flag_short_enums): Declare. · bff2d234
      2014-01-24  Tristan Gingold  <gingold@adacore.com>
              
      	* gcc-interface/misc.c (flag_short_enums): Declare.
      	(gnat_post_options): Set it.
      
      From-SVN: r207037
      Tristan Gingold committed
    • [multiple changes] · d0ef7921
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch7.adb: Minor change of Indices to Indexes (preferred
      	terminology in compiler).
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* scans.ads: Remove Tok_Raise from Sterm, Eterm, After_SM
      	categories, now that Ada 95 supports raise expressions.
      
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* freeze.adb (Freeze_Enumeration_Type): Use new target parameter
      	Short_Enums_On_Target.
      	* sem_ch13.adb (Set_Enum_Esize): Take Short_Enums_On_Target
      	into account.
      	* targparm.ads, targparm.adb: Add new target parameter Short_Enums.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Iterator_Specification): If subtype
      	indication is given explicity, check that it matches the array
      	component type or the container element type of the domain
      	of iteration.
      
      2014-01-24  Tristan Gingold  <gingold@adacore.com>
      
      	* back_end.adb (Scan_Compiler_Arguments): Set Short_Enums_On_Target.
      
      2014-01-24  Vincent Celier  <celier@adacore.com>
      
      	* prj-env.adb (Ada_Objects_Path): Use Ada_Objects_Path_No_Libs
      	to cache the result when Including_Libraries is False.
      	* prj-env.ads (Ada_Objects_Path): Update documentation
      	* prj.adb (Free (Project_Id)): Also free Ada_Objects_Path_No_Libs
      	(Get_Object_Directory): Return the Library_Ali_Dir only when
      	when Including_Libraries is True.
      	* prj.ads (Get_Object_Directory): Fix and complete documentation
      	(Project_Data): New component Ada_Objects_Path_No_Libs
      
      From-SVN: r207036
      Arnaud Charlet committed
    • [multiple changes] · 162c21d9
      2014-01-24  Robert Dewar  <dewar@adacore.com>
      
      	* checks.adb (Expr_Known_Valid): Result of fpt operator never
      	considered valid.
      
      2014-01-24  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* back_end.adb: Minor fix in comment.
      
      2014-01-24  Javier Miranda  <miranda@adacore.com>
      
      	* sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration
      	required to report the error in case of task types.
      
      2014-01-24  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_attr.adb: Additional index checking.
      
      From-SVN: r207035
      Arnaud Charlet committed