diff options
author | Jeff Law <law@redhat.com> | 2019-06-26 12:00:00 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2019-06-26 12:00:00 -0600 |
commit | 4a61cf9c62212fd04f21704efc2decffe9544651 (patch) | |
tree | 8a77e9e1bb86fbebcf8adcaa6f027ce901a2a13b /gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c | |
parent | f363fc5b49cb83aa98d89efa98fe42f57af4de05 (diff) | |
download | gcc-4a61cf9c62212fd04f21704efc2decffe9544651.zip gcc-4a61cf9c62212fd04f21704efc2decffe9544651.tar.gz gcc-4a61cf9c62212fd04f21704efc2decffe9544651.tar.bz2 |
tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of memcpy, memmove and memset builtins.
* tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
memcpy, memmove and memset builtins.
(maybe_trim_memstar_call): Likewise.
* gcc.c-torture/execute/builtins/builtins.exp: Add -fno-tree-dse
as DSE compromises several of these tests.
* gcc.dg/builtin-stringop-chk-1.c: Similarly.
* gcc.dg/memcpy-2.c: Similarly.
* gcc.dg/pr40340-1.c: Similarly.
* gcc.dg/pr40340-2.c: Similarly.
* gcc.dg/pr40340-5.c: Similarly.
From-SVN: r272704
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c index afd07dd..40cfa04 100644 --- a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c +++ b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c @@ -1,7 +1,7 @@ /* Test whether buffer overflow warnings for __*_chk builtins are emitted properly. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wno-format -std=gnu99 -ftrack-macro-expansion=0" } */ +/* { dg-options "-O2 -Wno-format -std=gnu99 -ftrack-macro-expansion=0 -fno-tree-dse" } */ // { dg-skip-if "packed attribute missing for t" { "epiphany-*-*" } } extern void abort (void); |