aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2012-11-06 22:14:47 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2012-11-06 22:14:47 +0000
commit9422dd19d7c7a11bc7f0e0ac41fe14d24979e6fd (patch)
treef418779159745dd6be10b8afb0b73ac2a19f80c8 /gcc
parent46ffb64d6cc8fbbcf0f2b6325e2ca1b6397df458 (diff)
downloadgcc-9422dd19d7c7a11bc7f0e0ac41fe14d24979e6fd.zip
gcc-9422dd19d7c7a11bc7f0e0ac41fe14d24979e6fd.tar.gz
gcc-9422dd19d7c7a11bc7f0e0ac41fe14d24979e6fd.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f771533..3c38d3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 9e544b2..47c6386 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. */