Add __attribute__((externally_visible)).
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Jan 2011 19:58:57 +0000 (19:58 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Jan 2011 19:58:57 +0000 (19:58 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168640 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/stackalign/test-unwind.h

index 2c88b5e..08241ca 100644 (file)
@@ -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 b07b27c..ff56027 100644 (file)
@@ -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