Patchwork Fix bootstrap on non-ifunc capable targets (i386)

login
register
mail settings
Submitter Andreas Tobler
Date Nov. 14, 2012, 9:31 a.m.
Message ID <7d26058a558a7b98a59f3190e7c4f66f@212.203.104.226>
Download mbox | patch
Permalink /patch/198845/
State New
Headers show

Comments

Andreas Tobler - Nov. 14, 2012, 9:31 a.m.
Hi all,

this commit: 193486 broke bootstrap on targets which do not have
HAVE_GNU_INDIRECT_FUNCTION.
Ok to commit?

TIA,
Andreas

Patch

Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 193495)
+++ config/i386/i386.c  (working copy)
@@ -28907,12 +28907,15 @@ 
   struct cgraph_node *node = NULL;
   struct cgraph_node *default_node = NULL;
   struct cgraph_function_version_info *node_v = NULL;
-  struct cgraph_function_version_info *it_v = NULL;
   struct cgraph_function_version_info *first_v = NULL;

   tree dispatch_decl = NULL;
+
+#if defined (ASM_OUTPUT_TYPE_DIRECTIVE) && HAVE_GNU_INDIRECT_FUNCTION
+  struct cgraph_function_version_info *it_v = NULL;
   struct cgraph_node *dispatcher_node = NULL;
   struct cgraph_function_version_info *dispatcher_version_info = NULL;
+#endif

   struct cgraph_function_version_info *default_version_info = NULL;