1. 23 Jan, 2018 8 commits
  2. 22 Jan, 2018 26 commits
    • re PR tree-optimization/83957 (ICE: Segmentation fault (in gimple_phi_arg)) · 164485b5
      	PR tree-optimization/83957
      	* omp-expand.c (expand_omp_for_generic): Ignore virtual PHIs.  Remove
      	semicolon after for body surrounded by braces.
      
      	* gcc.dg/autopar/pr83957.c: New test.
      
      From-SVN: r256967
      Jakub Jelinek committed
    • re PR tree-optimization/83081 ([arm] gcc.dg/pr80218.c fails since r254888) · f5c517f0
      	PR tree-optimization/83081
      	* profile-count.h (profile_probability::split): New method.
      	* dojump.c (do_jump_1) <case TRUTH_ANDIF_EXPR, case TRUTH_ORIF_EXPR>:
      	Use profile_probability::split.
      	(do_compare_rtx_and_jump): Fix adjustment of probabilities
      	when splitting a single conditional jump into 2.
      
      	* gcc.dg/predict-8.c: Adjust expected probability.
      
      From-SVN: r256966
      Jakub Jelinek committed
    • PR c++/83720 - different fix · c3b56023
      	* decl2.c (determine_visibility): Fix template_decl handling
      	instead of blocking it.
      
      From-SVN: r256965
      Jason Merrill committed
    • PR c++/83720 - ICE with lambda and LTO. · 1fcaa1eb
      	* decl2.c (determine_visibility): Clear template_decl for
      	function-scope decls.  Propagate anonymous linkage from containing
      	function.
      
      From-SVN: r256964
      Jason Merrill committed
    • Finish removing class move_computations_dom_walker · 3774938e
      r232820 (aka 2c7b2f8860794cc9b9cf5eeea9d7dc109c0de3be) removed the
      implementation of class move_computations_dom_walker, but kept the decl.
      
      This patch removes the stray decl.
      
      gcc/ChangeLog:
      	PR tree-optimization/69452
      	* tree-ssa-loop-im.c (class move_computations_dom_walker): Remove
      	decl.
      
      From-SVN: r256963
      David Malcolm committed
    • rl78-expand.md: New define_expand "bswaphi2" · 4101250d
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78-expand.md: New define_expand "bswaphi2"
      	* config/rl78/rl78-virt.md: New define_insn "*bswaphi2_virt"
      	* config/rl78/rl78-real.md: New define_insn "*bswaphi2_real"
      
      From-SVN: r256961
      Sebastian Perta committed
    • rl78-protos.h: New function declaration rl78_split_movdi · 10cd6ec5
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78-protos.h: New function declaration rl78_split_movdi
      	* config/rl78/rl78.md: New define_expand "movdi"
      	* config/rl78/rl78.c: New function definition rl78_split_movdi
      
      From-SVN: r256960
      Sebastian Perta committed
    • re PR target/83862 (powerpc: ICE in signbit testcase) · de0ecff8
      [gcc]
      2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/83862
      	* config/rs6000/rs6000-protos.h (rs6000_split_signbit): Delete,
      	no longer used.
      	* config/rs6000/rs6000.c (rs6000_split_signbit): Likewise.
      	* config/rs6000/rs6000.md (signbit<mode>2): Change code for IEEE
      	128-bit to produce an UNSPEC move to get the double word with the
      	signbit and then a shift directly to do signbit.
      	(signbit<mode>2_dm): Replace old IEEE 128-bit signbit
      	implementation with a new version that just does either a direct
      	move or a regular move.  Move memory interface to separate insns.
      	Move insns so they are next to the expander.
      	(signbit<mode>2_dm_mem_be): New combiner insns to combine load
      	with signbit move.  Split big and little endian case.
      	(signbit<mode>2_dm_mem_le): Likewise.
      	(signbit<mode>2_dm_<su>ext): Delete, no longer used.
      	(signbit<mode>2_dm2): Likewise.
      
      [gcc/testsuite]
      2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/83862
      	* gcc.target/powerpc/pr83862.c: New test.
      
      From-SVN: r256959
      Michael Meissner committed
    • rl78.md: New define_expand "anddi3". · bc8b0d04
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78.md: New define_expand "anddi3".
      
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/anddi3.S: New assembly file.
      	* config/rl78/t-rl78: Added anddi3.S to LIB2ADD.
      
      From-SVN: r256958
      Sebastian Perta committed
    • rl78.md: New define_expand "umindi3". · 99cc06ea
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78.md: New define_expand "umindi3".
      
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/umindi3.S: New assembly file.
      	* config/rl78/t-rl78: Added umindi3.S to LIB2ADD.
      
      From-SVN: r256957
      Sebastian Perta committed
    • * es.po: Update. · 832f9cc7
      From-SVN: r256955
      Joseph Myers committed
    • rl78.md: New define_expand "smindi3". · 6e9007a0
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78.md: New define_expand "smindi3".
      
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/smindi3.S: New assembly file.
      	* config/rl78/t-rl78: Added smindi3.S to LIB2ADD.
      
      From-SVN: r256954
      Sebastian Perta committed
    • rl78.md: New define_expand "smaxdi3". · d975e494
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78.md: New define_expand "smaxdi3".
      
      2018-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
       
      	* config/rl78/smaxdi3.S: New assembly file.
      	* config/rl78/t-rl78: Added smaxdi3.S to LIB2ADD.
      
      From-SVN: r256953
      Sebastian Perta committed
    • rs6000-builtin.def (ST_ELEMREV_V1TI, [...]): Add macro expansion. · d10cff95
      gcc/ChangeLog:
      
      2018-01-22 Carl Love <cel@us.ibm.com>
      
      	* config/rs6000/rs6000-builtin.def (ST_ELEMREV_V1TI, LD_ELEMREV_V1TI,
      	LVX_V1TI): Add macro expansion.
      	* config/rs6000/rs6000-c.c (altivec_builtin_types): Add argument
      	definitions for VSX_BUILTIN_VEC_XST_BE, VSX_BUILTIN_VEC_ST,
      	VSX_BUILTIN_VEC_XL, LD_ELEMREV_V1TI builtins.
      	* config/rs6000/rs6000-p8swap.c (insn_is_swappable_p);
      	Change check to determine if the instruction is a byte reversing
      	entry.  Fix typo in comment.
      	* config/rs6000/rs6000.c (altivec_expand_builtin): Add case entry
      	for VSX_BUILTIN_ST_ELEMREV_V1TI and VSX_BUILTIN_LD_ELEMREV_V1TI.
      	Add def_builtin calls for new builtins.
      	* config/rs6000/vsx.md (vsx_st_elemrev_v1ti, vsx_ld_elemrev_v1ti):
      	Add define_insn expansion.
      
      gcc/testsuite/ChangeLog:
      
      2018-01-22  Carl Love  <cel@us.ibm.com>
      	* gcc.target/powerpc/powerpc.exp: Add torture tests for
      	builtins-4-runnable.c, builtins-6-runnable.c,
      	builtins-5-p9-runnable.c, builtins-6-p9-runnable.c.
      	* gcc.target/powerpc/builtins-6-runnable.c: New test file.
      	* gcc.target/powerpc/builtins-4-runnable.c: Add additional tests
      	for signed/unsigned 128-bit and long long int loads.
      
      From-SVN: r256952
      Carl Love committed
    • re PR c++/81933 (Invalid "constexpr call flows off the end of the function" error) · f25d7e06
      	PR c++/81933
      	* typeck2.c (split_nonconstant_init_1): Return false if we didn't
      	split out anything.
      	
      	* g++.dg/cpp1y/constexpr-empty4.C: New test.
      
      From-SVN: r256951
      Marek Polacek committed
    • fixed year in gcc/ChangeLog and libgcc/ChangeLog · 6a18c146
      From-SVN: r256949
      Sebastian Perta committed
    • rl78.md: New define_expand "umaxdi3". · 5dd16013
      2017-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
      
      	* config/rl78/rl78.md: New define_expand "umaxdi3".
      
      2017-01-22  Sebastian Perta  <sebastian.perta@renesas.com>
       
      	* config/rl78/umaxdi3.S: New assembly file.
      	* config/rl78/t-rl78: Added umaxdi3.S to LIB2ADD.
      
      From-SVN: r256948
      Sebastian Perta committed
    • fold-vec-abs-short-fwrap.c: Add xxspltib to scan-asembler valid instructions list. · 0d918596
      [testsuite]
      
      	2018-01-19  Will Schmidt <will_schmidt@vnet.ibm.com>
      
      	* gcc.target/powerpc/fold-vec-abs-short-fwrap.c: Add xxspltib to
      	scan-asembler valid instructions list.
      	* gcc.target/powerpc/fold-vec-abs-short.c: Same.
      	* gcc.target/powerpc/fold-vec-shift-left-longlong.c: Clean up
      	power8-vector requirement and option.
      	* gcc.target/powerpc/fold-vec-shift-left-fwrapv.c: Same.
      
      From-SVN: r256947
      Will Schmidt committed
    • rl78.c (rl78_note_reg_set): fixed dead reg check for non-QImode registers · 049b866d
      2018-01-12  Sebastian Perta  <sebastian.perta@renesas.com>
      	
      	* config/rl78/rl78.c (rl78_note_reg_set): fixed dead reg check 
      	for non-QImode registers
      
      From-SVN: r256945
      Sebastian Perta committed
    • PR 78534, 83704 Large character lengths · 6b271a2e
      This patch fixes various parts of the code to use a larger type than
      int for the character length. Depending on the situation,
      HOST_WIDE_INT, size_t, or gfc_charlen_t is appropriate.
      
      Regtested on x86_64-pc-linux-gnu and i686-pc-linux-gnu.
      
      gcc/fortran/ChangeLog:
      
      2018-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR 78534
      	PR 83704
      	* arith.c (gfc_arith_concat): Use size_t for string length.
      	(gfc_compare_string): Likewise.
      	(gfc_compare_with_Cstring): Likewise.
      	* array.c (gfc_resolve_character_array_constructor): Use
      	HOST_WIDE_INT, gfc_mpz_get_hwi.
      	* check.c (gfc_check_fe_runtime_error): Use size_t.
      	* data.c (create_character_initializer): Use HOST_WIDE_INT,
      	gfc_extract_hwi.
      	* decl.c (gfc_set_constant_character_len): Use gfc_charlen_t.
      	(add_init_expr_to_sym): Use HOST_WIDE_INT.
      	* expr.c (gfc_build_init_expr): Use HOST_WIDE_INT,
      	gfc_extract_hwi.
      	(gfc_apply_init): Likewise.
      	* match.h (gfc_set_constant_character_len): Update prototype.
      	* primary.c (match_string_constant): Use size_t.
      	* resolve.c (resolve_ordinary_assign): Use HOST_WIDE_INT,
      	gfc_mpz_get_hwi.
      	* simplify.c (init_result_expr): Likewise.
      	(gfc_simplify_len_trim): Use size_t.
      	* target-memory.c (gfc_encode_character): Use size_t.
      	(gfc_target_encode_expr): Use HOST_WIDE_INT, gfc_mpz_get_hwi.
      	(interpret_array): Use size_t.
      	(gfc_interpret_character): Likewise.
      	* target-memory.h (gfc_encode_character): Update prototype.
      	(gfc_interpret_character): Likewise.
      	(gfc_target_interpret_expr): Likewise.
      	* trans-const.c (gfc_build_string_const): Use size_t for length
      	argument.
      	(gfc_build_wide_string_const): Likewise.
      	* trans-const.h (gfc_build_string_const): Likewise.
      	(gfc_build_wide_string_const): Likewise.
      
      2018-01-22  Janne Blomqvist  <jb@gcc.gnu.org>
      
      	PR 78534
      	PR 83704
      	* gfortran.dg/string_1.f90: Remove printing the length.
      
      From-SVN: r256944
      Janne Blomqvist committed
    • re PR tree-optimization/83963 ([graphite] ICE in merge_sese, at graphite-scop-detection.c:517) · 1dba94d4
      2018-01-22  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/83963
      	* graphite-scop-detection.c (scop_detection::get_sese): Delay
      	including the loop exit block.
      	(scop_detection::merge_sese): Likewise.
      	(scop_detection::add_scop): Do it here instead.
      
      	* gcc.dg/graphite/pr83963.c: New testcase.
      
      From-SVN: r256943
      Richard Biener committed
    • re PR c++/83895 (-Wparentheses warns about pointer-to-member typedefs) · 74e95ed0
      PR c++/83895
      
      cp/
      
      * decl.c (grokdeclarator): Don't diagnose extra parens
      on typedefs.
      
      testsuite/
      
      * g++.dg/warn/83895.C: New.
      
      From-SVN: r256942
      Ville Voutilainen committed
    • [ARM] Fix test fail with conflicting -mfloat-abi · 0e32449b
      This patch fixes my earlier test case that fails for arm-none-eabi
      with explicit user option for -mfloat-abi which conflict with
      the test case options. I have added a guard to skip the test
      on those cases.
      
      ChangeLog entries:
      
      *** gcc/testsuite/ChangeLog ***
      
      2018-01-22  Sudakshina Das  <sudi.das@arm.com>
      
      	* gcc.c-torture/compile/pr82096.c: Add dg-skip-if and
      	dg-require-effective-target directives.
      
      From-SVN: r256941
      Sudakshina Das committed
    • [arm] Make gcc.target/arm/copysign_softfloat_1.c more robust · dececdaa
      This test has needlessly restrictive requirements. It tries to force a soft-float target and tries to run.
      This makes it unsupportable for any non-soft-float variant.
      In fact, the test can be a run-time test for any target, and only the scan-assembler tests are specific to
      -mfloat-abi=soft. So this patch makes the test always runnable and makes the scan-assembler checks predicable
      on the the new arm_sotftfloat effective target check. 
      
      	* doc/sourcebuild.texi (arm_softfloat): Document.
      
      	* lib/target-supports.exp (check_effective_target_arm_softfloat):
      	New procedure.
      	* gcc.target/arm/copysign_softfloat_1.c: Allow running everywhere.
      	Adjust scan-assembler checks for soft-float.
      
      From-SVN: r256940
      Kyrylo Tkachov committed
    • re PR target/83946 (Safe Indirect Jumps broken on AIX) · 6a79ea14
      2018-01-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR target/83946
      	* gcc.target/powerpc/safe-indirect-jump-8.c: Skip for AIX.
      
      From-SVN: r256939
      Bill Schmidt committed
    • Daily bump. · e59ffda4
      From-SVN: r256938
      GCC Administrator committed
  3. 21 Jan, 2018 6 commits
    • pr83621.c: Add -fno-common additional option on hppa*-&-hpux*. · bca5a9a1
      	* gcc.dg/pr83621.c: Add -fno-common additional option on hppa*-&-hpux*.
      	* gcc.dg/pr83623.c: Likewise.
      	* gcc.dg/pr83666.c: Likewise.
      
      From-SVN: r256935
      John David Anglin committed
    • re PR testsuite/77734 (FAIL: gcc.dg/plugin/must-tail-call-1.c… · e55b72cf
      re PR testsuite/77734 (FAIL: gcc.dg/plugin/must-tail-call-1.c -fplugin=./must_tail_call_plugin.so (test  for excess errors))
      
      	PR gcc/77734
      	* config/pa/pa.c (pa_function_ok_for_sibcall): Use
      	targetm.binds_local_p instead of TREE_PUBLIC to check local binding.
      	Move TARGET_PORTABLE_RUNTIME check after TARGET_64BIT check.
      
      From-SVN: r256934
      John David Anglin committed
    • re PR lto/83452 (FAIL: gfortran.dg/save_6.f90 -O0 (test for excess errors)) · 07baf4a5
      	PR lto/83452
      	* config/pa/stublib.c (L_gnu_lto_v1): New stub definition.
      	* config/pa/t-stublib (gnu_lto_v1-stub.o): Add make fragment.
      
      From-SVN: r256933
      John David Anglin committed
    • re PR target/83946 (Safe Indirect Jumps broken on AIX) · b8f63c51
      [gcc]
      
      2018-01-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      	    David Edelsohn <dje.gcc@gmail.com>
      
      	PR target/83946
      	* config/rs6000/rs6000.md (*call_indirect_nonlocal_sysv<mode>):
      	Change "crset eq" to "crset 2".
      	(*call_value_indirect_nonlocal_sysv<mode>): Likewise.
      	(*call_indirect_aix<mode>_nospec): Likewise.
      	(*call_value_indirect_aix<mode>_nospec): Likewise.
      	(*call_indirect_elfv2<mode>_nospec): Likewise.
      	(*call_value_indirect_elfv2<mode>_nospec): Likewise.
      	(*sibcall_nonlocal_sysv<mode>): Change "crset eq" to "crset 2";
      	change assembly output from . to $.
      	(*sibcall_value_nonlocal_sysv<mode>): Likewise.
      	(indirect_jump<mode>_nospec): Change assembly output from . to $.
      	(*tablejump<mode>_internal1_nospec): Likewise.
      
      [gcc/testsuite]
      
      2018-01-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      	    David Edelsohn <dje.gcc@gmail.com>
      
      	PR target/83946
      	* gcc.target/powerpc/safe-indirect-jump-1.c: Change expected
      	assembly output from "crset eq" to "crset 2".
      	* gcc.target/powerpc/safe-indirect-jump-2.c: Change expected
      	assembly output from . to $.
      	* gcc.target/powerpc/safe-indirect-jump-3.c: Likewise.
      	* gcc.target/powerpc/safe-indirect-jump-1.c: Change expected
      	assembly output from "crset eq" to "crset 2".
      	* gcc.target/powerpc/safe-indirect-jump-8.c: Change expected
      	assembly output from "crset eq" to "crset 2", and from . to $.
      
      
      Co-Authored-By: David Edelsohn <dje.gcc@gmail.com>
      
      From-SVN: r256931
      Bill Schmidt committed
    • Fix ChangeLog entry. · f54a25b8
      From-SVN: r256927
      Oleg Endo committed
    • re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS) · 218e2a54
      	PR target/80870
      	* config/sh/rx/rx.c (config/sh/sh_optimize_sett_clrt.cc):
      	Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes.
      
      From-SVN: r256926
      Oleg Endo committed