i386.c (make_dispatcher_decl): Guard with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDI...
authorGerald Pfeifer <gerald@pfeifer.com>
Tue, 6 Nov 2012 22:14:47 +0000 (22:14 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Tue, 6 Nov 2012 22:14:47 +0000 (22:14 +0000)
* config/i386/i386.c (make_dispatcher_decl): Guard with
ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.

From-SVN: r193261

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

index f77153366248e1f47b34b0139636c7c42d8b354d..3c38d3f6ae887bfaf4751dcc0c4ef2b6f39fc271 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-06  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * config/i386/i386.c (make_dispatcher_decl): Guard with
+       ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
+
 2012-11-06  Jan Hubicka  <jh@suse.cz>
 
        * ipa-inline-analysis.c (estimate_function_body_sizes,
index 9e544b2be3b9a8947d590eb8cabf4a0fb9dc4d2b..47c6386d6c51125ced5c843e14fc1dae10b59a4e 100644 (file)
@@ -28813,6 +28813,8 @@ make_name (tree decl, const char *suffix, bool make_unique)
   return global_var_name;
 }
 
+#if defined (ASM_OUTPUT_TYPE_DIRECTIVE) && HAVE_GNU_INDIRECT_FUNCTION
+
 /* Make a dispatcher declaration for the multi-versioned function DECL.
    Calls to DECL function will be replaced with calls to the dispatcher
    by the front-end.  Return the decl created.  */
@@ -28850,6 +28852,8 @@ make_dispatcher_decl (const tree decl)
   return func_decl;  
 }
 
+#endif
+
 /* Returns true if decl is multi-versioned and DECL is the default function,
    that is it is not tagged with target specific optimization.  */