Patchwork PATCH: PR lto/47222: [4.6 Regression] Revision 168593 failed many tests

login
register
mail settings
Submitter H.J. Lu
Date Jan. 10, 2011, 8:01 p.m.
Message ID <20110110200124.GA8019@intel.com>
Download mbox | patch
Permalink /patch/78198/
State New
Headers show

Comments

H.J. Lu - Jan. 10, 2011, 8:01 p.m.
Hi,

I checked in this patch to mark variables referenced from asm statements
externally visible as discussed in:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47222


H.J.
---

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 168639)
+++ ChangeLog	(working copy)
@@ -1,3 +1,15 @@ 
+2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR lto/47222
+	* g++.dg/torture/stackalign/test-unwind.h (g_edi): Mark it
+	externally visible.
+	(g_esi): Likewise.
+	(g_ebx): Likewise.
+	(g_ebp): Likewise.
+	(g_esp): Likewise.
+	(g_ebp_save): Likewise.
+	(g_esp_save): Likewise.
+
 2011-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
 	* g++.dg/ipa/pr46984.C: Add dg-require-effective-target lto.
Index: g++.dg/torture/stackalign/test-unwind.h
===================================================================
--- g++.dg/torture/stackalign/test-unwind.h	(revision 168639)
+++ g++.dg/torture/stackalign/test-unwind.h	(working copy)
@@ -47,8 +47,13 @@  copy (char *p, int size)
   __builtin_strncpy (p, "good", size);
 }
 
-int g_edi=INIT_EDI, g_esi=INIT_ESI, g_ebx=INIT_EBX; 
-int g_ebp, g_ebp_save, g_esp, g_esp_save;
+int g_edi __attribute__((externally_visible)) =INIT_EDI;
+int g_esi __attribute__((externally_visible)) =INIT_ESI;
+int g_ebx __attribute__((externally_visible)) = INIT_EBX; 
+int g_ebp __attribute__((externally_visible));
+int g_esp __attribute__((externally_visible));
+int g_ebp_save __attribute__((externally_visible));
+int g_esp_save __attribute__((externally_visible));
 int n_error;
 
 int