diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-11-12 12:54:00 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-12 04:54:00 -0800 |
commit | b9700367fa3ab754909f3b2930b432c34a74a691 (patch) | |
tree | d6e6b89a5e50f93a5ab1bd6a86d15370f8f37cc5 /gcc | |
parent | 47b25362bc8f509e3e1852a4ec719494e6afaace (diff) | |
download | gcc-b9700367fa3ab754909f3b2930b432c34a74a691.zip gcc-b9700367fa3ab754909f3b2930b432c34a74a691.tar.gz gcc-b9700367fa3ab754909f3b2930b432c34a74a691.tar.bz2 |
Avoid tail call in c-c++-common/asan/strlen-overflow-1.c
PR testsuite/63830
* c-c++-common/asan/strlen-overflow-1.c (main): Avoid tail call.
From-SVN: r217417
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9ec99af..c72e75f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-12 H.J. Lu <hongjiu.lu@intel.com> + + PR testsuite/63830 + * c-c++-common/asan/strlen-overflow-1.c (main): Avoid tail call. + 2014-11-12 Jakub Jelinek <jakub@redhat.com> PR c/59708 diff --git a/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c b/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c index 0f49286..33696ed 100644 --- a/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c +++ b/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c @@ -16,7 +16,7 @@ int main () { char *p = &a[0]; asm ("" : "+r"(p)); __asan_poison_memory_region ((char *)&a[1], 1); - return __builtin_strlen (a); + return __builtin_strlen (a) + 1; } /* { dg-output "READ of size 2 at 0x\[0-9a-f\]+ thread T0.*(\n|\r\n|\r)" } */ |