diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7715336624..3c38d3f6ae8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-11-06 Gerald Pfeifer + + * config/i386/i386.c (make_dispatcher_decl): Guard with + ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION. + 2012-11-06 Jan Hubicka * ipa-inline-analysis.c (estimate_function_body_sizes, diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 9e544b2be3b..47c6386d6c5 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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. */