public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] PR 35512 IA-64 testsuite failure
@ 2008-03-18  4:08 Jim Wilson
  0 siblings, 0 replies; only message in thread
From: Jim Wilson @ 2008-03-18  4:08 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

The IA-64 visibility-1.c testcase has a static variable that is read but
not written.  New optimization support is able to optimize away the
variable causing the testcase to fail.  This just changes the testcase
to write to variables instead of reading from them.

This was tested with a C only make check to verify that it works, and
then was checked in.

Jim

[-- Attachment #2: patch.ia64.vis --]
[-- Type: text/plain, Size: 666 bytes --]

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.

Index: visibility-1.c
===================================================================
--- visibility-1.c	(revision 133293)
+++ visibility-1.c	(working copy)
@@ -19,9 +19,11 @@
 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-18  4:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18  4:08 [committed] PR 35512 IA-64 testsuite failure Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).