re PR testsuite/35512 (gcc.target/ia64/visibility-1.c)
authorJames E Wilson <wilson@tuliptree.org>
Tue, 18 Mar 2008 04:01:21 +0000 (21:01 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 18 Mar 2008 04:01:21 +0000 (21:01 -0700)
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
gcc/testsuite/gcc.target/ia64/visibility-1.c

index 195a779d5561aa76d7f2633c439d76cc1ff38c41..954f011d72abc17fff925408c9771243dd46fff1 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-17  James E. Wilson  <wilson@tuliptree.org>
+
+       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  <jason@redhat.com>
 
        PR c++/35548
index 53bc2c3f7852bfc3cc67fa5585320105b197d222..fdccab3c7508d459a751c83f7335865321553cce 100644 (file)
@@ -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)