From: andreast Date: Wed, 14 Nov 2012 15:55:50 +0000 (+0000) Subject: 2012-11-14 Andreas Tobler X-Git-Tag: upstream/4.9.2~9199 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcdb0f810c793a2a186451f00030e67a8e2a0e42;p=platform%2Fupstream%2Flinaro-gcc.git 2012-11-14 Andreas Tobler * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard variables with ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION where needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193501 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + + * 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 * 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;