1. 22 Sep, 2014 19 commits
    • Fix ChangeLog date in my last commit. · ed26fe9e
      From-SVN: r215466
      Jonathan Wakely committed
    • Workaround following [PATCH] Pul all constants last in tree_swap_operands_p · c71abde7
      https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01509.html
      gcc/:
              * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
      
      From-SVN: r215465
      Alan Lawrence committed
    • Make streams movable and swappable. · 9b817548
      	PR libstdc++/54316
      	PR libstdc++/53626
      	* config/abi/pre/gnu.ver: Add new exports.
      	* config/io/basic_file_stdio.h (__basic_file): Support moving and
      	swapping.
      	* include/bits/basic_ios.h (basic_ios::move, basic_ios::swap):
      	Likewise.
      	* include/bits/ios_base.h (ios_base::_M_move, ios_base::_M_swap):
      	Likewise.
      	* include/bits/fstream.tcc (basic_filebuf): Likewise.
      	* include/bits/move.h (__exchange): Define for C++11 mode.
      	* include/ext/stdio_filebuf.h (stdio_filebuf): Support moving and
      	swapping.
      	* include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf): Likewise.
      	* include/std/fstream (basic_filebuf, basic_ifstream, basic_ofstream,
      	basic_fstream): Likewise.
      	* include/std/ios: Remove whitespace.
      	* include/std/istream (basic_istream, basic_iostream): Support moving
      	and swapping.
      	* include/std/ostream (basic_ostream): Likewise.
      	* include/std/sstream (basic_stringbuf, basic_istringstream,
      	basic_ostringstream, basic_stringstream): Likewise.
      	* include/std/streambuf (basic_streambuf): Do not default copy
      	constructor and assignment on first declaration.
      	* include/std/utility (exchange): Forward to __exchange.
      	* testsuite/27_io/basic_filebuf/cons/char/copy_neg.cc: New.
      	* src/c++11/Makefile.am: Add stream-related files.
      	* src/c++11/Makefile.in: Regenerate.
      	* src/c++11/ext11-inst.cc (stdio_filebuf, stdio_sync_filebuf):
      	New file for explicit instantiation definitions.
      	* src/c++11/ios.cc: Move from src/c++98 to here.
      	(ios_base::_M_move, ios_base::_M_swap): Define.
      	* src/c++11/ios-inst.cc: Move from src/c++98 to here.
      	* src/c++11/iostream-inst.cc: Likewise.
      	* src/c++11/istream-inst.cc: Likewise.
      	* src/c++11/ostream-inst.cc: Likewise.
      	* src/c++11/sstream-inst.cc: Likewise.
      	* src/c++11/streambuf-inst.cc: Likewise.
      	* src/c++98/Makefile.am: Remove stream-related files.
      	* src/c++98/Makefile.in: Regenerate.
      	* src/c++98/ext-inst.cc (stdio_filebuf): Remove explicit
      	instantiations.
      	* src/c++98/misc-inst.cc (stdio_sync_filebuf): Likewise.
      	* src/c++98/ios-inst.cc: Move to src/c++11/.
      	* src/c++98/ios.cc: Move to src/c++11/.
      	* src/c++98/iostream-inst.cc: Likewise.
      	* src/c++98/istream-inst.cc: Likewise.
      	* src/c++98/ostream-inst.cc: Likewise.
      	* src/c++98/sstream-inst.cc: Likewise.
      	* src/c++98/streambuf-inst.cc: Likewise.
      	* testsuite/27_io/basic_filebuf/cons/char/copy_neg.cc: New.
      	* testsuite/27_io/basic_fstream/cons/move.cc: New.
      	* testsuite/27_io/basic_fstream/assign/1.cc: New.
      	* testsuite/27_io/basic_ifstream/cons/move.cc: New.
      	* testsuite/27_io/basic_ifstream/assign/1.cc: New.
      	* testsuite/27_io/basic_istringstream/assign/1.cc: New.
      	* testsuite/27_io/basic_istringstream/cons/move.cc: New.
      	* testsuite/27_io/basic_ofstream/cons/move.cc: New.
      	* testsuite/27_io/basic_ofstream/assign/1.cc: New.
      	* testsuite/27_io/basic_ostringstream/assign/1.cc: New.
      	* testsuite/27_io/basic_ostringstream/cons/move.cc: New.
      	* testsuite/27_io/basic_stringstream/assign/1.cc: New.
      	* testsuite/27_io/basic_stringstream/cons/move.cc: New.
      
      From-SVN: r215463
      Jonathan Wakely committed
    • Add --inline option to contrib/mklog · 38278d8a
      2014-09-22  Tom de Vries  <tom@codesourcery.com>
      
      	* mklog: Add --inline option.
      
      From-SVN: r215462
      Tom de Vries committed
    • gimplify.c (gimplify_init_constructor): Do not leave non-GIMPLE vector constructors around. · 931002b2
      2014-09-22  Richard Biener  <rguenther@suse.de>
      
      	* gimplify.c (gimplify_init_constructor): Do not leave
      	non-GIMPLE vector constructors around.
      	* tree-cfg.c (verify_gimple_assign_single): Verify that
      	CONSTRUCTORs have gimple elements.
      
      From-SVN: r215461
      Richard Biener committed
    • re PR target/63312 (FAIL: gcc.dg/torture/float128-exact-underflow.c -O0 execution test) · 1a849e50
      	PR target/63312
      	* config/ia64/sfp-machine.h (FE_EX_ALL, FP_TRAPPING_EXCEPTIONS):
      	New macros.
      
      From-SVN: r215458
      Joseph Myers committed
    • re PR debug/63328 (c-c++-common/gomp/pr60823-3.c test fails with -fcompare-debug) · 932b6d61
      	PR debug/63328
      	* omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
      	insert a debug source bind stmt setting DEBUG_EXPR_DECL
      	instead of a normal gimple assignment stmt.
      
      	* c-c++-common/gomp/pr63328.c: New test.
      
      From-SVN: r215454
      Jakub Jelinek committed
    • [Patch bfin] Fixup use of constraints in define_split · 1091cf49
      gcc/
      
      	* config/bfin/bfin.md: Fix use of constraints in define_split.
      
      From-SVN: r215453
      James Greenhalgh committed
    • resolve.c (resolve_fl_procedure): Remove duplicated lines. · 77fee9d8
      2014-09-21  Dominique d'Humieres <dominiq@lps.ens.fr>
      
      	* resolve.c (resolve_fl_procedure): Remove duplicated lines.
      
      From-SVN: r215452
      Dominique d'Humieres committed
    • PR lto/63270 - new test · 6e5dedda
      	* g++.dg/lto/pr63270_0.C: New test.
      	* g++.dg/lto/pr63270_1.C: New test.
      
      From-SVN: r215451
      Martin Liska committed
    • i386.c (ix86_cannot_change_mode_class): Remove GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test. · c2095627
      gcc/
      	* config/i386/i386.c (ix86_cannot_change_mode_class): Remove
      	GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
      
      From-SVN: r215450
      Richard Sandiford committed
    • hard-reg-set.h: Include hash-table.h. · 6969eb0d
      gcc/
      	* hard-reg-set.h: Include hash-table.h.
      	(target_hard_regs): Add a finalize method and a x_simplifiable_subregs
      	field.
      	* target-globals.c (target_globals::~target_globals): Call
      	hard_regs->finalize.
      	* rtl.h (subreg_shape): New structure.
      	(shape_of_subreg): New function.
      	(simplifiable_subregs): Declare.
      	* reginfo.c (simplifiable_subreg): New structure.
      	(simplifiable_subregs_hasher): Likewise.
      	(simplifiable_subregs): New function.
      	(invalid_mode_changes): Delete.
      	(alid_mode_changes, valid_mode_changes_obstack): New variables.
      	(record_subregs_of_mode): Remove subregs_of_mode parameter.
      	Record valid mode changes in valid_mode_changes.
      	(find_subregs_of_mode): Remove subregs_of_mode parameter.
      	Update calls to record_subregs_of_mode.
      	(init_subregs_of_mode): Remove invalid_mode_changes and bitmap
      	handling.  Initialize new variables.  Update call to
      	find_subregs_of_mode.
      	(invalid_mode_change_p): Check new variables instead of
      	invalid_mode_changes.
      	(finish_subregs_of_mode): Finalize new variables instead of
      	invalid_mode_changes.
      	(target_hard_regs::finalize): New function.
      	* ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
      	even when CLASS_CANNOT_CHANGE_MODE is undefined.
      
      From-SVN: r215449
      Richard Sandiford committed
    • combine.c (subst): Use simplify_subreg_regno rather than REG_CANNOT_CHANGE_MODE_P to detect... · 7af3b946
      gcc/
      	* combine.c (subst): Use simplify_subreg_regno rather than
      	REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
      
      From-SVN: r215448
      Richard Sandiford committed
    • rtl.h (subreg_info): Expand commentary · 0cb07998
      gcc/
      	* rtl.h (subreg_info): Expand commentary
      	* rtlanal.c (subreg_get_info): Likewise.
      
      From-SVN: r215447
      Richard Sandiford committed
    • gcc/ · 853d50d3
      	* hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
      	(AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
      	(IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
      
      From-SVN: r215446
      Richard Sandiford committed
    • decl.c (gnat_to_gnu_entity): Adjust comment. · 53f3f4e3
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Adjust comment.
      	* gcc-interface/utils.c (gnat_write_global_declarations): Fix typo.
      
      From-SVN: r215445
      Eric Botcazou committed
    • arm.c: #include "tm-constrs.h" · aecd88f7
      2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
      
      	* config/arm/arm.c: #include "tm-constrs.h"
      	(thumb1_size_rtx_costs): Adjust rtx costs.
      
      From-SVN: r215444
      Zhenqiang Chen committed
    • crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS override USE_PT_GNU_EH_FRAME. · 598a1586
      	* crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS
      	override USE_PT_GNU_EH_FRAME.
      	[__LIBGCC_EH_FRAME_SECTION_NAME__ && !USE_PT_GNU_EH_FRAME]: Sanity-
      	check USE_EH_FRAME_REGISTRY_ALWAYS against
      	__LIBGCC_EH_FRAME_SECTION_NAME__, emit error if unsane.
      	* Makefile.in (FORCE_EXPLICIT_EH_REGISTRY): New
      	variable for substituted force_explicit_eh_registry.
      	(CRTSTUFF_CFLAGS): Add FORCE_EXPLICIT_EH_REGISTRY.
      	* configure.ac (explicit-exception-frame-registration):
      	New AC_ARG_ENABLE.
      	* configure: Regenerate.
      
      From-SVN: r215443
      Hans-Peter Nilsson committed
    • Daily bump. · 794eb939
      From-SVN: r215442
      GCC Administrator committed
  2. 21 Sep, 2014 14 commits
  3. 20 Sep, 2014 7 commits
    • epiphany.md (sub_f_add_imm): Change constraint of operand 3 to "CnL". · 7dff44b9
              * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
              operand 3 to "CnL".
      
      From-SVN: r215422
      Joern Rennecke committed
    • trans-intrinsic.c (conv_intrinsic_atomic_op): Fix issue with generating… · b2c298ab
      trans-intrinsic.c (conv_intrinsic_atomic_op): Fix issue with generating temporary for value argument.
      
      2014-09-20  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
                  Tobias Burnus  <burnus@net-b.de>
      
      gcc/fortran
              * trans-intrinsic.c (conv_intrinsic_atomic_op): Fix issue with
              generating temporary for value argument.
      
      gcc/testsuite/
              * gfortran.dg/coarray_atomic_5.f90: New
      
      
      Co-Authored-By: Tobias Burnus <burnus@net-b.de>
      
      From-SVN: r215421
      Alessandro Fanfarillo committed
    • trans-expr.c (gfc_reset_vptr): Fix comment whitespace. · 1cc0e193
      2014-09-20  Joost VandeVondele  <vondele@gcc.gnu.org>
      
      	* trans-expr.c (gfc_reset_vptr): Fix comment whitespace.
      	(gfc_conv_class_to_class): Likewise.
      	(gfc_conv_procedure_call): Likewise.
      	(arrayfunc_assign_needs_temporary): Likewise.
      	(realloc_lhs_loop_for_fcn_call): Likewise.
      	(gfc_trans_assignment_1): Likewise.
      	* trans-array.c (gfc_conv_array_ref): Likewise.
      	(gfc_array_allocate): Likewise.
      	(gfc_alloc_allocatable_for_assignment): Likewise.
      	* symbol.c (generate_isocbinding_symbol): Likewise.
      	* class.c (finalization_scalarizer): Likewise.
      	(finalizer_insert_packed_call): Likewise.
      	(generate_finalization_wrapper): Likewise.
      	(find_intrinsic_vtab): Likewise.
      	* decl.c (gfc_match_import): Likewise.
      	(match_procedure_decl): Likewise.
      	(gfc_match_subroutine): Likewise.
      	(gfc_match_bind_c): Likewise.
      	(gfc_match_volatile): Likewise.
      	* trans-common.c (create_common): Likewise.
      	* error.c (gfc_diagnostic_starter): Likewise.
      	* trans-stmt.c (gfc_trans_sync): Likewise.
      	(gfc_trans_critical): Likewise.
      	(gfc_trans_simple_do): Likewise.
      	(gfc_trans_do): Likewise.
      	(gfc_trans_where_assign): Likewise.
      	* expr.c (gfc_is_simply_contiguous): Likewise.
      	* module.c (unquote_string): Likewise.
      	* trans.c (gfc_add_finalizer_call): Likewise.
      	* trans-types.c (gfc_init_kinds): Likewise.
      	* scanner.c (preprocessor_line): Likewise.
      	* gfortranspec.c (lang_specific_driver): Likewise.
      	* frontend-passes.c (create_var): Likewise.
      	(cfe_expr_0): Likewise.
      	* resolve.c (check_host_association): Likewise.
      	(gfc_resolve_code): Likewise.
      	(resolve_fl_derived0): Likewise.
      	(resolve_symbol): Likewise.
      	* f95-lang.c (poplevel): Likewise.
      	* trans-decl.c (create_main_function): Likewise.
      	* trans-io.c (transfer_expr): Likewise.
      	* arith.c (gfc_arith_divide): Likewise.
      	* parse.c (resolve_all_program_units): Likewise.
      	* check.c (gfc_check_rank): Likewise.
      	(gfc_check_sizeof): Likewise.
      	(is_c_interoperable): Likewise.
      	* dependency.c (gfc_dep_difference): Likewise.
      	* primary.c (gfc_match_rvalue): Likewise.
      	* trans-intrinsic.c (conv_intrinsic_system_clock): Likewise.
      	(conv_isocbinding_subroutine): Likewise.
      	* options.c (gfc_post_options): Likewise.
      	(gfc_handle_fpe_option): Likewise.
      	(gfc_get_option_string): Likewise.
      	* simplify.c (simplify_transformation_to_scalar): Likewise.
      	(gfc_simplify_spread): Likewise.
      
      From-SVN: r215420
      Joost VandeVondele committed
    • ia64.md: Remove constraints from define_split patterns. · 516e2f1c
      * config/ia64/ia64.md: Remove constraints from define_split
      patterns.
      
      From-SVN: r215419
      Andreas Schwab committed
    • ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors. · 6f8091fc
      
      	* ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
      	(possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
      	possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
      	(get_dynamic_type): Remove.
      	* ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
      	(clear_speculation): Bring to ipa-deivrt.h
      	(get_class_context): Rename to ...
      	(ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
      	(contains_type_p): Update.
      	(get_dynamic_type): Rename to ...
      	ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
      	(possible_polymorphic_call_targets): UPdate.
      	* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
      	* ipa-prop.c (ipa_analyze_call_uses): Update.
      
      From-SVN: r215418
      Jan Hubicka committed
    • ipa-visibility.c (varpool_node::externally_visible_p): Do not privatize dynamic TLS variables. · 8e1ba78f
      	* ipa-visibility.c (varpool_node::externally_visible_p): Do not
      	privatize dynamic TLS variables.
      
      From-SVN: r215417
      Jan Hubicka committed