1. 16 Feb, 2018 17 commits
  2. 15 Feb, 2018 22 commits
  3. 14 Feb, 2018 1 commit
    • 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