From: Richard Biener Date: Mon, 6 May 2019 07:38:26 +0000 (+0000) Subject: re PR testsuite/90331 (New test case gcc.dg/pr87314-1.c fails) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33a0bfcdca547909f5510dee3ce0b76e41b9d1f6;p=gcc.git re PR testsuite/90331 (New test case gcc.dg/pr87314-1.c fails) 2019-05-06 Richard Biener PR testsuite/90331 * gcc.dg/pr87314-1.c: Align the substring to open up string merging for targets aligning strings to 8 bytes. From-SVN: r270900 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3e4bf2b56ee..1dec62f5d97 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-05-06 Richard Biener + + PR testsuite/90331 + * gcc.dg/pr87314-1.c: Align the substring to open up + string merging for targets aligning strings to 8 bytes. + 2019-05-06 Martin Liska PR sanitizer/90312 diff --git a/gcc/testsuite/gcc.dg/pr87314-1.c b/gcc/testsuite/gcc.dg/pr87314-1.c index 4dc85c8eee6..9bc905612b5 100644 --- a/gcc/testsuite/gcc.dg/pr87314-1.c +++ b/gcc/testsuite/gcc.dg/pr87314-1.c @@ -3,9 +3,9 @@ int f(){ int a; return &a==(void *)"hello"; } int g(){ return "bye"=="hello"; } -int h() { return "bye"=="hellobye"+5; } +int h() { return "bye"=="helloooobye"+8; } /* { dg-final { scan-tree-dump-times "hello" 1 "original" } } */ /* The test in h() should be retained because the result depends on string merging. */ -/* { dg-final { scan-assembler "hello" } } */ +/* { dg-final { scan-assembler "hellooo" } } */