aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@fgznet.ch>2012-11-14 16:55:50 +0100
committerAndreas Tobler <andreast@gcc.gnu.org>2012-11-14 16:55:50 +0100
commit4a3d0b10a2b64ff78a6448240afe89c2b8d68076 (patch)
tree468942cfa2314e0333ccc78a4829bf86b48974d8
parent4a56a7be3d2cfca5cc74e75dc4b4365d8f1fbcc5 (diff)
downloadgcc-4a3d0b10a2b64ff78a6448240afe89c2b8d68076.zip
gcc-4a3d0b10a2b64ff78a6448240afe89c2b8d68076.tar.gz
gcc-4a3d0b10a2b64ff78a6448240afe89c2b8d68076.tar.bz2
i386.c (ix86_get_function_versions_dispatcher): Guard variables with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION...
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2aa741d..94b1200 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index de94d4b..eee2b93 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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;