1. 14 Jul, 2014 6 commits
  2. 13 Jul, 2014 10 commits
  3. 12 Jul, 2014 13 commits
    • re PR fortran/61780 (Wrong code when shifting elements of a multidimensional array) · f8ec0561
      2014-07-12  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/61780
      	* dependency.c (gfc_dep_resolver): Index the 'reverse' array so
      	that elements are skipped. This then correctly aligns 'reverse'
      	with the scalarizer loops.
      
      2014-07-12  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/61780
      	* gfortran.dg/dependency_44.f90 : New test
      
      From-SVN: r212486
      Paul Thomas committed
    • re PR fortran/61628 ([MinGW)Write of medium sized or larger matrix fails without error message.) · fae3018d
      2014-07-12  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/61628
              * trans-types.c (gfc_init_types): Fix data-type bug
              with gfc_max_array_element_size.
      
      From-SVN: r212485
      Tobias Burnus committed
    • libgfortran.h (libcaf_atomic_codes): Add. · 42a8246d
      2014-07-12  Tobias Burnus  <burnus@net-b.de>
      
      gcc/fortran/
              * libgfortran.h (libcaf_atomic_codes): Add.
              * trans-decl.c (gfor_fndecl_caf_atomic_def,
              gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
              gfor_fndecl_caf_atomic_op): New variables.
              (gfc_build_builtin_function_decls): Initialize them.
              * trans.h (gfor_fndecl_caf_atomic_def,
              gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
              gfor_fndecl_caf_atomic_op): New variables.
              * trans-intrinsic.c (conv_intrinsic_atomic_op,
              conv_intrinsic_atomic_ref, conv_intrinsic_atomic_cas):
              Add library calls with -fcoarray=lib.
      
      libgfortran/
              * caf/libcaf.h (_gfortran_caf_atomic_define,
              _gfortran_caf_atomic_ref, _gfortran_caf_atomic_op,
              _gfortran_caf_atomic_cas): New prototypes.
              * caf/single.c (_gfortran_caf_atomic_define,
              _gfortran_caf_atomic_ref, _gfortran_caf_atomic_op,
              _gfortran_caf_atomic_cas): New functions.
      
      From-SVN: r212484
      Tobias Burnus committed
    • check.c (gfc_check_atomic): Update for STAT=. · 7f4aaf91
      gcc/fortran/
      2014-07-12  Tobias Burnus  <burnus@net-b.de>
      
              * check.c (gfc_check_atomic): Update for STAT=.
              (gfc_check_atomic_def, gfc_check_atomic_ref): Update call.
              (gfc_check_atomic_op, gfc_check_atomic_cas,
              gfc_check_atomic_fetch_op): New.
              * gfortran.h (gfc_isym_id): GFC_ISYM_ATOMIC_CAS,
              * GFC_ISYM_ATOMIC_ADD,
              GFC_ISYM_ATOMIC_AND, GFC_ISYM_ATOMIC_OR, GFC_ISYM_ATOMIC_XOR,
              GFC_ISYM_ATOMIC_FETCH_ADD, GFC_ISYM_ATOMIC_FETCH_AND,
              GFC_ISYM_ATOMIC_FETCH_OR and GFC_ISYM_ATOMIC_FETCH_XOR.
              * intrinsic.c (add_subroutines): Handle them.
              * intrinsic.texi: Add documentation for them.
              (ATOMIC_REF, ATOMIC_DEFINE): Add STAT=.
              (ISO_FORTRAN_ENV): Add STAT_FAILED_IMAGE.
              * intrinsic.h (gfc_check_atomic_op, gfc_check_atomic_cas,
              gfc_check_atomic_fetch_op): New
              prototypes.
              * libgfortran.h (libgfortran_stat_codes): Add
              * GFC_STAT_FAILED_IMAGE.
              * iso-fortran-env.def: Add it.
              * trans-intrinsic.c (conv_intrinsic_atomic_op): Renamed from
              conv_intrinsic_atomic_ref; handle more atomics.
              (conv_intrinsic_atomic_def): Handle STAT=.
              (conv_intrinsic_atomic_cas): New.
              (gfc_conv_intrinsic_subroutine): Handle new atomics.
      
      gcc/testsuite/
      2014-07-12  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/coarray_atomic_1.f90: Update dg-error.
              * gfortran.dg/coarray_atomic_2.f90: New.
              * gfortran.dg/coarray_atomic_3.f90: New.
              * gfortran.dg/coarray_atomic_4.f90: New.
              * gfortran.dg/coarray/atomic_2.f90: New.
      
      From-SVN: r212483
      Tobias Burnus committed
    • re PR c++/22434 (ICE in simplify_{,gen_}subreg) · 0eb5f158
      	PR c++/22434
      	PR c++/61288
      	* call.c (build_conditional_expr_1): Avoid reading freed memory.
      
      From-SVN: r212482
      Jason Merrill committed
    • tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC on builtin types. · c59f7203
      
      	* tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
      	on builtin types.
      	* ipa-devirt.c: Include stor-layout.h and intl.h
      	(odr_subtypes_equivalent_p): New function.
      	(warn_odr): New function.
      	(warn_type_mismatch): New function.
      	(odr_types_equivalent_p): New function.
      	(add_type_duplicate): Use it.
      	* common.opt (Wodr): New flag.
      	* doc/invoke.texi (Wodr): Document new warning.
      
      From-SVN: r212481
      Jan Hubicka committed
    • 2014-07-12 Paolo Carlini <paolo.carlini@oracle.com> · 3720cb58
      	* Minor ChangeLog adjustment.
      
      From-SVN: r212480
      Paolo Carlini committed
    • lto.c (read_cgraph_and_symbols): Do not push DECL_INIT_IO timevar · 917dd9bf
      
      	* lto.c (read_cgraph_and_symbols): Do not push DECL_INIT_IO
      	timevar
      	(materialize_cgraph): Do not push GIMPLE_IN timevar.
      
      	* timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
      	(TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
      	* cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
      	(varpool_get_constructor): Push CTORS_IN timevar.
      	* lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT
      	timevar.
      
      From-SVN: r212479
      Jan Hubicka committed
    • i386-builtin-types.def: Add USHORT_FTYPE_VOID. · e0770e2a
      	* config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
      	Remove VOID_FTYPE_PUSHORT.
      	* config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
      	Change code to USHORT_FTYPE_VOID.
      	(ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
      	(ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
      	(ix86_atomic_assign_expand_fenv): Update for
      	__builtin_ia32_fnstsw changes.
      	* config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
      	(fnstsw): Change operand 0 to nonimmediate operand.
      
      From-SVN: r212478
      Uros Bizjak committed
    • PR c++/57644 - [C++1y] Cannot bind bitfield to lvalue reference · c35146e7
      2014-07-11  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	PR c++/57644 - [C++1y] Cannot bind bitfield to lvalue reference
      	g++.dg/cpp0x/pr57644.C: New.
      
      From-SVN: r212477
      Edward Smith-Rowland committed
    • Add the logistic_distribution as an extension. · 8daac774
      2014-07-11  Edward Smith-Rowland  <3dw4rd@verizon.net>
      
      	Add the logistic_distribution as an extension.
      	* include/ext/random: Add the logistic_distribution.
      	* include/ext/random.tcc: Add the logistic_distribution.
      	* testsuite/ext/random/logistic_distribution/cons/parms.cc: New.
      	* testsuite/ext/random/logistic_distribution/cons/default.cc: New.
      	* testsuite/ext/random/logistic_distribution/requirements/typedefs.cc:
      	New.
      	* testsuite/ext/random/logistic_distribution/operators/inequal.cc: New.
      	* testsuite/ext/random/logistic_distribution/operators/equal.cc: New.
      	* testsuite/ext/random/logistic_distribution/operators/serialize.cc:
      	New.
      
      From-SVN: r212476
      Edward Smith-Rowland committed
    • Daily bump. · 0b150cb4
      From-SVN: r212475
      GCC Administrator committed
    • runtime: Merge master revision 19185. · 2fa39ad8
      This revision renames several files in the runtime directory
      from .c to .goc.
      
      From-SVN: r212472
      Ian Lance Taylor committed
  4. 11 Jul, 2014 11 commits
    • 2014-07-11 Paolo Carlini <paolo.carlini@oracle.com> · ca76ae5c
      	* Minor ChangeLog adjustment.
      
      From-SVN: r212471
      Paolo Carlini committed
    • 2014-07-11 Paolo Carlini <paolo.carlini@oracle.com> · 7086e4b6
      	* Minor ChangeLog adjustments.
      
      From-SVN: r212470
      Paolo Carlini committed
    • re PR c++/53159 (Missing narrowing check) · 2410819b
      /cp
      2014-07-11  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53159
      	* call.c (build_user_type_conversion_1): Copy LOOKUP_NO_NARROWING
      	into convflags.
      	* decl.c (check_initializer): Don't call check_narrowing here,
      	set LOOKUP_NO_NARROWING.
      	* typeck2.c (digest_init_r): Likewise.
      
      /testsuite
      2014-07-11  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/53159
      	* g++.dg/cpp0x/Wnarrowing1.C: New.
      
      From-SVN: r212469
      Paolo Carlini committed
    • * doc/invoke.texi: Document -fno-use-all-virtuals. · 54c61de7
      From-SVN: r212468
      Jason Merrill committed
    • vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h · 0b83e688
      
      	* vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
      	(varpool_get_constructor): New function.
      	(varpool_ctor_useable_for_folding_p): Break out from ...
      	(ctor_for_folding): ... here; use varpool_get_constructor.
      	(varpool_assemble_decl): Likewise.
      	* lto-streamer.h (struct output_block): Turn cgraph_node
      	to symbol filed.
      	(lto_input_variable_constructor): Declare.
      	* ipa-visibility.c (function_and_variable_visibility): Use
      	varpool_get_constructor.
      	* cgraph.h (varpool_get_constructor): Declare.
      	(varpool_ctor_useable_for_folding_p): New function.
      	* lto-streamer-out.c (get_symbol_initial_value): Take encoder
      	parameter; return error_mark_node for non-trivial constructors.
      	(lto_write_tree_1, DFS_write_tree): UPdate use of
      	get_symbol_initial_value.
      	(output_function): Update initialization of symbol.
      	(output_constructor): New function.
      	(copy_function): Rename to ..
      	(copy_function_or_variable): ... this one; handle vars too.
      	(lto_output): Output variable sections.
      	* lto-streamer-in.c (input_constructor): New function.
      	(lto_read_body): Rename from ...
      	(lto_read_body_or_constructor): ... this one; handle vars
      	too.
      	(lto_input_variable_constructor): New function.
      	* ipa-prop.c (ipa_prop_write_jump_functions,
      	ipa_prop_write_all_agg_replacement): Update.
      	* lto-cgraph.c (compute_ltrans_boundary): Use it.
      	(output_cgraph_opt_summary): Set symbol to NULL.
      
      	* lto-partition.c (add_references_to_partition): Use 
      	varpool_ctor_useable_for_folding_p.
      	* lto.c (lto_read_in_decl_state): Update sanity check.
      
      From-SVN: r212467
      Jan Hubicka committed
    • ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk non-polymorphic types. · 01a92e70
      
      	* ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
      	non-polymorphic types.
      	* ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
      	* ipa-devirt.c (types_same_for_odr): Do not explode when one
      	of types is not polymorphic.
      
      From-SVN: r212466
      Jan Hubicka committed
    • lra-constraints.c (remove_inheritance_pseudos): Process destination pseudo too. · 12b308fa
      2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
      
      	* lra-constraints.c (remove_inheritance_pseudos): Process
      	destination pseudo too.
      
      From-SVN: r212464
      Vladimir Makarov committed
    • libgcov-util.c (gcov_max_filename): Fix declartion. · d5313205
      2014-07-11  Rong Xu  <xur@google.com>
      
      	* libgcov-util.c (gcov_max_filename): Fix declartion.
      
      From-SVN: r212463
      Rong Xu committed
    • gcov-tool.c (gcov_output_files): Fix build error introduced in commit r212448. · 68f68004
      2014-07-11  Rong Xu  <xur@google.com>
      
      	* gcov-tool.c (gcov_output_files): Fix build error introduced in
      	commit r212448.
      
      From-SVN: r212462
      Rong Xu committed
    • avr-arch.h (avr_mcu_t): Add text section start attribute. · cba4ea9e
      	* config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
      	* config/avr/avr-devices.c (AVR_MCU): Same.
      	(avr_mcu_types): add text start value to end of device list.
      	* config/avr/avr-mcus.def: Add text section start for all devices.
      	(ata5782): Add new avr5 device.
      	(ata5831): Same.
      	* config/avr/avr-tables.opt: Regenerate.
      	* config/avr/avr.h: Add declaration for text section start handler.
      	(EXTRA_SPEC_FUNCTIONS): Add text section start handler to SPEC function=
      s.
      	(LINK_SPEC): Include text section start handler to linker spec.
      	* config/avr/driver-avr.c (avr_device_to_text_start): New function to
      	pass -Ttext option to linker if the text section start for the device i=
      s
      	not zero.
      	* config/avr/t-multilib: Regenerate.
      	* doc/avr-mmcu.texi: Regenerate.
      
      From-SVN: r212461
      Pitchumani Sivanupandi committed
    • aix51.h (LINK_SPEC): Remove -bnodelcsect. · 8762d747
              * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
              * config/rs6000/aix52.h (LINK_SPEC): Same.
              * config/rs6000/aix53.h (LINK_SPEC): Same.
              * config/rs6000/aix61.h (LINK_SPEC): Same.
              * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
      
      From-SVN: r212460
      David Edelsohn committed