From 33a0bfcdca547909f5510dee3ce0b76e41b9d1f6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 6 May 2019 07:38:26 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/pr87314-1.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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" } } */ -- 2.30.2