From f82f5289e742619a197b035fe05fab6e26a92d63 Mon Sep 17 00:00:00 2001 From: James E Wilson Date: Mon, 17 Mar 2008 21:01:21 -0700 Subject: [PATCH] re PR testsuite/35512 (gcc.target/ia64/visibility-1.c) PR testsuite/35512 * gcc.target/ia64/visibility-1.c (foo): Change return type to void. Write variables instead of reading them. From-SVN: r133301 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/ia64/visibility-1.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 195a779d556..954f011d72a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-03-17 James E. Wilson + + PR testsuite/35512 + * gcc.target/ia64/visibility-1.c (foo): Change return type to void. + Write variables instead of reading them. + 2008-03-17 Jason Merrill PR c++/35548 diff --git a/gcc/testsuite/gcc.target/ia64/visibility-1.c b/gcc/testsuite/gcc.target/ia64/visibility-1.c index 53bc2c3f785..fdccab3c750 100644 --- a/gcc/testsuite/gcc.target/ia64/visibility-1.c +++ b/gcc/testsuite/gcc.target/ia64/visibility-1.c @@ -19,9 +19,11 @@ static struct A variable_l __attribute__((section (".sbss"))); struct A variable_m __attribute__((visibility ("hidden"), section(".sbss"))); struct A variable_n __attribute__((section (".sbss"))); -int foo (void) +void foo (void) { - return variable_i + variable_j + variable_k; + variable_i = 0; + variable_j = 0; + variable_k = 0; } void bar (void) -- 2.30.2