1. 16 Feb, 2018 8 commits
  2. 15 Feb, 2018 22 commits
  3. 14 Feb, 2018 10 commits
    • PR tree-optimization/83698 - bogus offset in -Wrestrict messages for strcat of unknown strings · 816fad6e
      gcc/ChangeLog:
      
      	PR tree-optimization/83698
      	* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For
      	arrays constrain the offset range to their bounds.
      	(builtin_access::strcat_overlap): Adjust the bounds of overlap offset.
      	(builtin_access::overlap): Avoid setting the size of overlap if it's
      	already been set.
      	(maybe_diag_overlap): Also consider arrays when deciding what values
      	of offsets to include in diagnostics.
      
      gcc/testsuite/ChangeLog:
      
      	PR tree-optimization/83698
      	* gcc.dg/Wrestrict-7.c: New test.
      	* c-c++-common/Wrestrict.c: Adjust expected values for strcat.
      	* gcc.target/i386/chkp-stropt-17.c: Same.
      
      From-SVN: r257676
      Martin Sebor committed
    • gcc/testsuite/ChangeLog: · 7c102986
      2018-02-14  Carl Love  <cel@us.ibm.com>
              * gcc.target/powerpc/builtins-4-int128-runnable.c
      	(dg-require-effective-target): Change vsx_hw to p8vector_hw.
      	(dg-options): Change -maltivec -mvsx to -mpower8-vector.
      
      From-SVN: r257675
      Carl Love committed
    • PR middle-end/84108 - incorrect -Wattributes warning for packed/aligned conflict on struct members · fba303ed
      gcc/ChangeLog:
      
      	PR c/84108
      	* attribs.c (diag_attr_exclusions): Consider the exclusion(s)
      	that correspond to the kind of a declaration.
      
      gcc/testsuite/ChangeLog:
      
      	PR c/84108
      	* gcc.dg/Wattributes-8.c: New test.
      
      From-SVN: r257674
      Martin Sebor committed
    • re PR fortran/84385 ([F03] Reject invalid SELECT TYPE selector (allocate_with_source_22.f03)) · ee3bb1b7
      2018-02-14  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/84385
      	* match.c (gfc_match_select_type): Fix check for selector in
      	SELECT TYPE statement.
      
      
      2018-02-14  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/84385
      	* gfortran.dg/allocate_with_source_22.f03: Fix invalid test case.
      	* gfortran.dg/allocate_with_source_23.f90: Ditto.
      	* gfortran.dg/select_type_1.f03: Extend test case.
      
      From-SVN: r257673
      Janus Weil committed
    • re PR target/83984 (ld: The value 0x8000000000005 does not fit when applying the relocation DIR21L) · 6ae67989
      	PR target/83984
      	* config/pa/pa.md: Load address of PIC label using the linkage table
      	if the label is nonlocal.
      
      From-SVN: r257672
      John David Anglin committed
    • pr57193.c (dg-do): Remove target selector. · 4ce5745c
      	* gcc.target/i386/pr57193.c (dg-do): Remove target selector.
      	(dg-options): Use -O2 -msse2 -mno-sse3.
      
      From-SVN: r257669
      Uros Bizjak committed
    • rs6000.c (rs6000_option_override_internal): Issue warning message if user requests -maltivec=be. · 49cc0354
      gcc/ChangeLog:
      
      2018-02-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
      
      	* config/rs6000/rs6000.c (rs6000_option_override_internal): Issue
      	warning message if user requests -maltivec=be.
      	* doc/invoke.texi: Document deprecation of -maltivec=be.
      
      gcc/testsuite/ChangeLog:
      
      2018-02-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
      
      	* gcc.dg/vmx/extract-be-order.c: Disable -maltivec=be warning so
      	this test case still works ok.
      	* gcc.dg/vmx/extract-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/insert-be-order.c: Likewise.
      	* gcc.dg/vmx/insert-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/ld-be-order.c: Likewise.
      	* gcc.dg/vmx/ld-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/lde-be-order.c: Likewise.
      	* gcc.dg/vmx/ldl-be-order.c: Likewise.
      	* gcc.dg/vmx/ldl-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/merge-be-order.c: Likewise.
      	* gcc.dg/vmx/merge-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/mult-even-odd-be-order.c: Likewise.
      	* gcc.dg/vmx/pack-be-order.c: Likewise.
      	* gcc.dg/vmx/perm-be-order.c: Likewise.
      	* gcc.dg/vmx/splat-be-order.c: Likewise.
      	* gcc.dg/vmx/splat-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/st-be-order.c: Likewise.
      	* gcc.dg/vmx/st-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/ste-be-order.c: Likewise.
      	* gcc.dg/vmx/stl-be-order.c: Likewise.
      	* gcc.dg/vmx/stl-vsx-be-order.c: Likewise.
      	* gcc.dg/vmx/sum2s-be-order.c: Likewise.
      	* gcc.dg/vmx/unpack-be-order.c: Likewise.
      	* gcc.dg/vmx/vsums-be-order.c: Likewise.
      	* gcc.target/powerpc/vec-setup-be-long.c: Likewise.
      
      From-SVN: r257668
      Kelvin Nilsen committed
    • re PR c++/84350 (ICE with new and auto) · 2482a4ec
      /cp
      2018-02-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/84350
      	* pt.c (do_auto_deduction): Don't check the TREE_TYPE of a null
      	init, early return.
      
      /testsuite
      2018-02-14  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/84350
      	* g++.dg/cpp0x/auto49.C: New.
      
      From-SVN: r257666
      Paolo Carlini committed
    • [C++ PATCH]: instantiation via vtable marking · 486c5299
      https://gcc.gnu.org/ml/gcc-patches/2018-02/msg00850.html
      	gcc/cp/
      	* decl2.c (mark_vtable_entries): Set input_location to decl's.
      	(c_parse_final_cleanups): Restore input_location after emitting
      	vtables.
      
      	gcc/testsuite/
      	* g++.dg/template/instantiate5.C: Adjust required-from loc.
      
      From-SVN: r257665
      Nathan Sidwell committed
    • altivec-consts.c: Update compile stanzas. · 34c58a43
      
      [testsuite]
      
      2018-02-14  Will Schmidt  <will_schmidt@vnet.ibm.com>
      
      	* gcc.target/powerpc/altivec-consts.c:  Update compile stanzas.
      	* gcc.target/powerpc/le-altivec-consts.c:  Same.
      
      From-SVN: r257664
      Will Schmidt committed