From: Gerald Pfeifer Date: Tue, 6 Nov 2012 22:14:47 +0000 (+0000) Subject: i386.c (make_dispatcher_decl): Guard with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDI... X-Git-Tag: releases/gcc-4.8.0~2195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9422dd19d7c7a11bc7f0e0ac41fe14d24979e6fd;p=thirdparty%2Fgcc.git i386.c (make_dispatcher_decl): Guard with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION. * config/i386/i386.c (make_dispatcher_decl): Guard with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION. From-SVN: r193261 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f77153366248..3c38d3f6ae88 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 9e544b2be3b9..47c6386d6c51 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. */