diff options
author | Mark Wielaard <mjw@redhat.com> | 2014-09-23 11:07:08 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2014-09-23 11:07:08 +0000 |
commit | 84eca54267742a6978fe467c8e36a6eace7170c8 (patch) | |
tree | 10107a40fb6baf9ac0eafee5dac528bc11ed8e08 | |
parent | 0043a6c9b9b7ad956c5db232e46b2b760ada0cec (diff) | |
download | gcc-84eca54267742a6978fe467c8e36a6eace7170c8.zip gcc-84eca54267742a6978fe467c8e36a6eace7170c8.tar.gz gcc-84eca54267742a6978fe467c8e36a6eace7170c8.tar.bz2 |
Make all gcc.dg/guality/const-volatile.c subtests PASS under LTO.
Some subtests were reported as UNSUPPORTED when running under LTO.
That was just because the relevant variables were optimized out.
Mark those variables as used. Now const-volatile reports 192 PASS.
gcc/testsuite/ChangeLog
* gcc.dg/guality/const-volatile.c (i): Mark as used.
(ci): Likewise.
(pci): Likewise.
(pvi): Likewise.
(pcvi): Likewise.
(cip): Likewise.
(foo): Likewise.
(cfoo): Likewise.
From-SVN: r215502
-rw-r--r-- | gcc/testsuite/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/guality/const-volatile.c | 16 |
2 files changed, 19 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e80c48a..a3bd1eb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,16 @@ 2014-09-20 Mark Wielaard <mjw@redhat.com> + * gcc.dg/guality/const-volatile.c (i): Mark as used. + (ci): Likewise. + (pci): Likewise. + (pvi): Likewise. + (pcvi): Likewise. + (cip): Likewise. + (foo): Likewise. + (cfoo): Likewise. + +2014-09-20 Mark Wielaard <mjw@redhat.com> + * lib/gcc-gdb-test.exp (gdb-test): Transform gdb types "short int" and "long int" to plain "short" and "long". * gcc.dg/guality/const-volatile.c (struct bar): New struct diff --git a/gcc/testsuite/gcc.dg/guality/const-volatile.c b/gcc/testsuite/gcc.dg/guality/const-volatile.c index eb45ae5..d657f48 100644 --- a/gcc/testsuite/gcc.dg/guality/const-volatile.c +++ b/gcc/testsuite/gcc.dg/guality/const-volatile.c @@ -2,17 +2,17 @@ /* { dg-do run } */ /* { dg-options "-g" } */ -int i; -const int ci; +int i __attribute__((used)); +const int ci __attribute__((used)); volatile int vi; const volatile int cvi; int *pi __attribute__((used)); -const int *pci; -volatile int *pvi; -const volatile int *pcvi; +const int *pci __attribute__((used)); +volatile int *pvi __attribute__((used)); +const volatile int *pcvi __attribute__((used)); -int * const cip; +int * const cip __attribute__((used)); int * volatile vip; int * const volatile cvip; @@ -38,8 +38,8 @@ struct bar }; struct bar bar __attribute__((used)); -struct foo foo; -const struct foo cfoo; +struct foo foo __attribute__((used)); +const struct foo cfoo __attribute__((used)); volatile struct foo vfoo; const volatile struct foo cvfoo; |