1. 06 Nov, 2016 4 commits
    • allocate_with_source_14.f03: Fixed number mallocs occuring. · cc03bf7a
      gcc/testsuite/ChangeLog:
      
      2016-11-06  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	* gfortran.dg/allocate_with_source_14.f03: Fixed number mallocs
      	occuring.
      
      gcc/fortran/ChangeLog:
      
      2016-11-06  Andre Vehreschild  <vehre@gcc.gnu.org>
      
      	* expr.c (is_non_empty_structure_constructor): New function to detect
      	non-empty structure constructor.
      	(gfc_has_default_initializer): Analyse initializers.
      	* resolve.c (cond_init): Removed.
      	(resolve_allocate_expr): Removed dead code.  Moved invariant code out
      	of the loop over all objects to allocate.
      	(resolve_allocate_deallocate): Added the invariant code remove from
      	resolve_allocate_expr.
      	* trans-array.c (gfc_array_allocate): Removed nullify of structure
      	components in favour of doing this in gfc_trans_allocate for both
      	scalars and arrays in the same place.
      	* trans-expr.c (gfc_trans_init_assign): Always using _vptr->copy for
      	class objects.
      	* trans-stmt.c (allocate_get_initializer): Get the initializer
      	expression for object allocated.
      	(gfc_trans_allocate): Nullify a derived type only, when no SOURCE=
      	or MOLD= is present preventing duplicate work.  Moved the creation
      	of the init-expression here to prevent code for conditions that
      	can not occur on freshly allocated object, like checking for the need
      	to free allocatable components.
      
      From-SVN: r241885
      Andre Vehreschild committed
    • re PR fortran/78221 (bogus warning: Non-zero imaginary part discarded in conversion [-Wconversion]) · 18bb8b8a
      2016-11-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
              PR fortran/78221
              * arith.c (gfc_complex2real):  Change gfc_warning_now to
              gfc_warning.
      
      2016-11-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
              PR fortran/78221
              * gfortran.dg/warn_conversion_9.f90:  New test.
      
      From-SVN: r241884
      Thomas Koenig committed
    • ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code. · 0ddd4af5
      2016-11-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	* ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
      
      From-SVN: r241883
      Kugan Vivekanandarajah committed
    • Daily bump. · f471c1e9
      From-SVN: r241882
      GCC Administrator committed
  2. 05 Nov, 2016 8 commits
  3. 04 Nov, 2016 22 commits
    • libiberty: Fix -Wimplicit-fallthrough warnings. · c4ec8585
      Adjust some comments, add some explicit fall through comments or explicit
      returns where necessary to not get implicit-fallthrough warnings.
      
      All fall throughs were deliberate. In one case I added an explicit return
      false for clarity instead of falling through a default case (that also
      would return false).
      
      libiberty/ChangeLog:
      
             * cplus-dem.c (demangle_signature): Move fall through comment.
             (demangle_fund_type): Add fall through comment between 'G' and 'I'.
             * hashtab.c (iterative_hash): Add fall through comments.
             * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
             (byte_re_match_2_internal): Add Fall through comment after jump_n.
             Change "Note fall through" to "Fall through".
             (common_op_match_null_string_p): Return false after set_number_at
             instead of fall through.
      
      From-SVN: r241864
      Mark Wielaard committed
    • re PR ipa/78188 (AIX Bootstrap broken by tree-vrp.c change) · 8d48126d
      PR bootstrap/78188
      PR c++/71848
      * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
      
      From-SVN: r241863
      David Edelsohn committed
    • re PR fortran/64933 (ASSOCIATE on a character variable does not allow substring expressions) · b125dc1e
      2016-04-19  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/64933
      	* primary.c (gfc_match_varspec): If selector expression is
      	unambiguously an array, make sure that the associate name
      	is an array and has an array spec. Modify the original
      	condition for doing this to exclude character types.
      
      2016-04-19  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/64933
      	* gfortran.dg/associate_23.f90: New test.
      
      From-SVN: r241860
      Paul Thomas committed
    • re PR target/77834 (ICE: in make_decl_rtl, at varasm.c:1311 with -O -ftree-pre… · 5f4cebba
      re PR target/77834 (ICE: in make_decl_rtl, at varasm.c:1311 with -O -ftree-pre -mstringop-strategy=libcall)
      
      	PR target/77834
      	* alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
      	doesn't have rtl set.
      
      	* gcc.dg/pr77834.c: New test.
      
      From-SVN: r241859
      Jakub Jelinek committed
    • re PR c++/67980 (left shift count is negative [-Wshift-count-negative] generated… · 6e3ae7e6
      re PR c++/67980 (left shift count is negative [-Wshift-count-negative] generated for unreachable code)
      
      /cp
      2016-11-04  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67980
      	* pt.c (tsubst_expr, case IF_STMT): Use fold_non_dependent_expr
      	to suppress unwanted warnings.
      
      /testsuite
      2016-11-04  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/67980
      	* g++.dg/cpp1y/pr67980.C: New.
      
      From-SVN: r241858
      Paolo Carlini committed
    • rs6000.c (gimple-ssa.h): New #include. · fff6ed28
      [gcc]
      
      2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* config/rs6000/rs6000.c (gimple-ssa.h): New #include.
      	(TARGET_GIMPLE_FOLD_BUILTIN): Define as
      	rs6000_gimple_fold_builtin.
      	(rs6000_gimple_fold_builtin): New function.  Add handling for
      	early expansion of vector addition builtins.
      
      
      [gcc/testsuite]
      
      2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	* gcc.target/powerpc/fold-vec-add-1.c: New.
      	* gcc.target/powerpc/fold-vec-add-2.c: New.
      	* gcc.target/powerpc/fold-vec-add-3.c: New.
      	* gcc.target/powerpc/fold-vec-add-4.c: New.
      	* gcc.target/powerpc/fold-vec-add-5.c: New.
      	* gcc.target/powerpc/fold-vec-add-6.c: New.
      	* gcc.target/powerpc/fold-vec-add-7.c: New.
      
      From-SVN: r241857
      Bill Schmidt committed
    • expr.h (copy_blkmode_from_reg): Delete. · b53f8c22
      	* expr.h (copy_blkmode_from_reg): Delete.
      	* expr.c (copy_blkmode_from_reg): Make static.
      
      From-SVN: r241856
      Eric Botcazou committed
    • defaults.h (LOAD_EXTEND_OP): Define if not already defined. · 6a4cf418
      	* defaults.h (LOAD_EXTEND_OP): Define if not already defined.
      	* combine.c (LOAD_EXTEND_OP): Delete.
      	(simplify_comparison): Fix comment about LOAD_EXTEND_OP.
      	* cse.c (LOAD_EXTEND_OP): Delete.
      	* fold-const.c (LOAD_EXTEND_OP): Likewise.
      	* fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
      	* postreload.c (LOAD_EXTEND_OP): Delete.
      	* reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
      	Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
      	(find_reloads): Likewise.
      	* reload1.c (eliminate_regs_1): Likewise.
      	* rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
      	(num_sign_bit_copies1): Likewise.
      
      From-SVN: r241855
      Eric Botcazou committed
    • Correct typo in changelog author · bef3a8d7
      gcc/testsuite/ChangeLog
      	* Update toma.tobacu to toma.tabacu
      
      From-SVN: r241852
      Matthew Fortune committed
    • Start adding target-specific selftests · 40af5894
      gcc/ChangeLog:
      	* config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
      	(selftest::ix86_test_dumping_hard_regs): New function.
      	(selftest::ix86_run_selftests): New function.
      	(TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
      	selftest::ix86_run_selftests.
      	* doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
      	* doc/tm.texi: Regenerate
      	* selftest-rtl.h: New file.
      	* rtl-tests.c: Include "selftest-rtl.h".
      	(selftest::assert_rtl_dump_eq): Make non-static.
      	(ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
      	(selftest::test_dumping_regs): Update comment.
      	* selftest-run-tests.c: Include "target.h".
      	(selftest::run_tests): If non-NULL, call
      	targetm.run_target_selftests.
      	* target.def (run_target_selftests): New hook.
      
      From-SVN: r241851
      David Malcolm committed
    • MIPS: Handle -mbranch-likely in testsuite options · d7d2e7b4
      gcc/testsuite/
      	* gcc.target/mips/mips.exp (mips-dg-options): Downgrade to R5
      	for -mbranch-likely, infer -mno-branch-likely for R6.
      
      From-SVN: r241850
      Toma Tabacu committed
    • Add support for ARM Cortex-M33 processor · cf16d50f
      2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
          representative core for this architecture.
          * config/arm/arm-cores.def (cortex-m33): Define new processor.
          * config/arm/arm-tables.opt: Regenerate.
          * config/arm/arm-tune.md: Likewise.
          * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
          valid -mcpu options.
          * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
      
      From-SVN: r241849
      Thomas Preud'homme committed
    • Add support for ARM Cortex-M23 processor · f6b2065f
      2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
          representative core for this architecture.
          * config/arm/arm-cores.def (cortex-m23): Define new processor.
          * config/arm/arm-tables.opt: Regenerate.
          * config/arm/arm-tune.md: Likewise.
          * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
          this tuning parameters apply to in the comment.
          * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
          valid -mcpu options.
          * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
      
      From-SVN: r241848
      Thomas Preud'homme committed
    • fold-const.c (fold_cond_expr_with_comparison): Remove call to pedantic_non_lvalue_loc. · 26060734
      	* fold-const.c (fold_cond_expr_with_comparison): Remove call
      	to pedantic_non_lvalue_loc.  Remove useless code for lvalue
      	where cond_expr can't be a lvalue.
      
      From-SVN: r241847
      Bin Cheng committed
    • re PR c++/71973 (c++ handles built-in functions inconsistently) · dac9376a
      2016-11-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR c++/71973
              * g++.dg/cpp1y/lambda-generic-udt.C: Fix builtin function declaration.
              * g++.dg/init/new15.C: Likewise.
              * g++.dg/ipa/inline-1.C: Likewise.
              * g++.dg/ipa/inline-2.C: Likewise.
              * g++.dg/lto/20080908-1_0.C: Likewise.
              * g++.dg/tc1/dr20.C: Likewise.
              * g++.dg/tree-ssa/inline-1.C: Likewise.
              * g++.dg/tree-ssa/inline-2.C: Likewise.
              * g++.old-deja/g++.law/except1.C: Likewise.
              * g++.old-deja/g++.other/vbase5.C: Likewise.
              * obj-c++.dg/lto/trivial-1_0.mm: Likewise.
      
      From-SVN: r241846
      Bernd Edlinger committed
    • re PR tree-optimization/78210 (slsr-8.c scan-tree-dump-times optimized fails) · b210df46
      2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/78210
      	* gcc.dg/tree-ssa/slsr-8.c: Fix slsr scan to include the
      	possibility of widening multiplies.
      
      From-SVN: r241845
      Bill Schmidt committed
    • PR c++/78198 - inherited template ctor with default arg · 866115cd
      	* call.c (convert_default_arg): Look through inheriting ctors.
      
      From-SVN: r241843
      Jason Merrill committed
    • [ARC] Various small miscellaneous fixes. · 491483b0
      gcc/
      2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
      
      	* config/arc/arc.c (arc_process_double_reg_moves): Use
      	gen_dexcl_2op call.
      	* config/arc/arc.md (movsi_insn): Disable unsupported move
      	instructions for ARCv2 cores.
      	(movdi): Use prepare_move_operands.
      	(movsf, movdf): Use move_dest_operand predicate.
      	* config/arc/constraints.md (Chs): Enable when barrel shifter is
      	present.
      	* config/arc/fpu.md (divsf3): Change to divsf3_fpu.
      	* config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
      	also a destination.
      	(dexcl_3op_peep2_insn_nores): Likewise.
      	* config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
      	(LINK_COMMAND_SPEC): Remove.
      
      From-SVN: r241842
      Claudiu Zissulescu committed
    • re PR tree-optimization/78185 (Wrong branch optimization with -O1 on x86/x86_64) · 964ef24c
      2016-11-04  Richard Biener  <rguenther@suse.de>
      
      	PR middle-end/78185
      	* loop-invariant.c (find_exits): Record entering inner
      	loops as possibly exiting to handle infinite sub-loops.
      	* tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
      	(fill_always_executed_in_1): Honor infinite child loops.
      
      	* gcc.dg/pr78185.c: New testcase.
      
      From-SVN: r241841
      Richard Biener committed
    • Fix wrong patch committed · b07aafb1
      From-SVN: r241840
      Michael Meissner committed
    • ref-3.C: XFAIL AIX. · 5fb80387
              * g++.dg/debug/dwarf2/ref-3.C: XFAIL AIX.
              * g++.dg/debug/dwarf2/ref-4.C: XFAIL AIX.
      
      From-SVN: r241838
      David Edelsohn committed
    • Daily bump. · 9d90ccf9
      From-SVN: r241837
      GCC Administrator committed
  4. 03 Nov, 2016 6 commits
    • re PR target/78192 (extract from vector registers to int results in wrong data order) · f2834ebc
      2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/78192
      	* config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
      	has already been adjusted for endianness, so don't adjust it any
      	further.
      
      From-SVN: r241834
      Michael Meissner committed
    • re PR bootstrap/77993 (bootstrap failure on PowerPC/Linux) · 0bc36dec
      2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/77993
      	* config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
      	ICmode unless we have standard PowerPC floating point.
      	* config/rs6000/rs6000.md (FP iterator): Likewise.
      	(FMOVE128 iterator): Likewise.
      
      From-SVN: r241833
      Michael Meissner committed
    • re PR debug/28767 (GCC should output DW_TAG_ptr_to_member for member functions) · 6905c577
      	PR debug/28767
      	PR debug/56974
      	* langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
      	langhook.
      	* langhooks.c (lhd_type_dwarf_attribute): New function.
      	* langhooks-def.h (lhd_type_dwarf_attribute): Declare.
      	(LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
      	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
      	LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
      	(check_qualified_type, check_aligned_type): Call it.
      	* dwarf2out.c (modified_type_die): Don't use type_main_variant
      	for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
      	check_base_type and check_lang_type.
      	(gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
      	return early.  For pointer-to-data-member add DW_AT_use_location
      	attribute.
      	(gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
      	if needed.
      	(gen_type_die_with_usage): Don't use type_main_variant
      	for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
      	check_base_type and check_lang_type.  Formatting fixes. Call
      	get_debug_type langhook.
      cp/
      	* tree.c (cp_check_qualified_type): Use check_base_type and
      	TYPE_QUALS comparison instead of check_qualified_type.
      	(cxx_type_hash_eq): Return false if type_memfn_rqual don't match.
      	* cp-objcp-common.c (cp_get_debug_type): New function.
      	(cp_decl_dwarf_attribute): Don't handle types here.
      	(cp_type_dwarf_attribute): New function.
      	* cp-objcp-common.h (cp_get_debug_type, cp_type_dwarf_attribute):
      	Declare.
      	(LANG_HOOKS_GET_DEBUG_TYPE, LANG_HOOKS_TYPE_DWARF_ATTRIBUTE):
      	Define.
      testsuite/
      	* g++.dg/debug/dwarf2/ptrdmem-1.C: New test.
      	* g++.dg/debug/dwarf2/ref-3.C: New test.
      	* g++.dg/debug/dwarf2/ref-4.C: New test.
      	* g++.dg/debug/dwarf2/refqual-1.C: New test.
      	* g++.dg/debug/dwarf2/refqual-2.C: New test.
      
      From-SVN: r241832
      Jakub Jelinek committed
    • Use type_hash_eq langhook in check_qualified_type. · 1906d6b4
      gcc/
      	* tree.c (check_lang_type): New.
      	(check_qualified_type): Use it.
      	(check_aligned_type): Use it.
      	* tree.h: Declare it.
      gcc/cp/
      	* tree.c (cp_check_qualified_type): Call check_base_type instead
      	of check_qualified_type.
      	(cxx_type_hash_eq): Check ref-qualifiers.
      	* typeck.c (apply_memfn_quals): No need to mess with TYPE_CANONICAL.
      
      From-SVN: r241831
      Jason Merrill committed
    • Add missing hunk from previous commit. · d3d3f1af
      From-SVN: r241829
      Richard Earnshaw committed