From: Richard Guenther Date: Thu, 24 Feb 2011 13:40:32 +0000 (+0000) Subject: re PR debug/47801 (guality tests have issues with LTO / -fwhole-program) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e15b6067f284009c690a7e84ba0cf6016a7c1c8a;p=gcc.git re PR debug/47801 (guality tests have issues with LTO / -fwhole-program) 2011-02-24 Richard Guenther PR testsuite/47801 * gcc.dg/guality/pr41353-1.c (vari): Mark as used. * gcc.dg/guality/pr41353-2.c (vari): Likewise. From-SVN: r170467 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4f097e27e90..23648c9271e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-02-24 Richard Guenther + + PR testsuite/47801 + * gcc.dg/guality/pr41353-1.c (vari): Mark as used. + * gcc.dg/guality/pr41353-2.c (vari): Likewise. + 2011-02-24 Richard Guenther PR fortran/47839 diff --git a/gcc/testsuite/gcc.dg/guality/pr41353-1.c b/gcc/testsuite/gcc.dg/guality/pr41353-1.c index 29ba7351677..1d2cca78707 100644 --- a/gcc/testsuite/gcc.dg/guality/pr41353-1.c +++ b/gcc/testsuite/gcc.dg/guality/pr41353-1.c @@ -2,7 +2,7 @@ /* { dg-do run } */ /* { dg-options "-g" } */ -int vari = 17, varj; +int vari __attribute__((used)) = 17, varj; __attribute__((noinline)) int f1 (void) diff --git a/gcc/testsuite/gcc.dg/guality/pr41353-2.c b/gcc/testsuite/gcc.dg/guality/pr41353-2.c index 3ff8d3691c8..0983bf4ab59 100644 --- a/gcc/testsuite/gcc.dg/guality/pr41353-2.c +++ b/gcc/testsuite/gcc.dg/guality/pr41353-2.c @@ -3,7 +3,7 @@ /* { dg-options "-g" } */ int varh; -int vari = 17, varj; +int vari __attribute__((used)) = 17, varj; __attribute__((noinline)) int f1 (void)