]> gcc.gnu.org Git - gcc.git/commitdiff
i386.c (ix86_get_function_versions_dispatcher): Guard variables with ASM_OUTPUT_TYPE_...
authorAndreas Tobler <andreast@fgznet.ch>
Wed, 14 Nov 2012 15:55:50 +0000 (16:55 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Wed, 14 Nov 2012 15:55:50 +0000 (16:55 +0100)
2012-11-14  Andreas Tobler  <andreast@fgznet.ch>

* config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
variables with ASM_OUTPUT_TYPE_DIRECTIVE and
HAVE_GNU_INDIRECT_FUNCTION where needed.

From-SVN: r193501

gcc/ChangeLog
gcc/config/i386/i386.c

index 2aa741dca62715db0a83d5c5597ca22c1f9f7a2a..94b12008aa29372b9c39d611df9db1ed8685a20f 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-14  Andreas Tobler  <andreast@fgznet.ch>
+
+       * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
+       variables with ASM_OUTPUT_TYPE_DIRECTIVE and
+       HAVE_GNU_INDIRECT_FUNCTION where needed.
+
 2012-11-13  Ian Lance Taylor  <iant@google.com>
 
        * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
index de94d4b0f7cbe9a5a442550422629dfc315841a4..eee2b93771d05fcca517d4b5a3402a22002ecc03 100644 (file)
@@ -28907,12 +28907,15 @@ ix86_get_function_versions_dispatcher (void *decl)
   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;
  
This page took 0.11436 seconds and 5 git commands to generate.