aboutsummaryrefslogtreecommitdiff
path: root/gcc/df-scan.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2017-12-20 00:46:38 +0000
committerTom de Vries <vries@gcc.gnu.org>2017-12-20 00:46:38 +0000
commit4b522b8f339f4e7844843d30f38ea9459d908e3c (patch)
treecd32dc6ce38614687f2e8641be27ecb2f2300692 /gcc/df-scan.c
parentf00b0bad2afa3912e91910eaa1f6c7e74fe86683 (diff)
downloadgcc-4b522b8f339f4e7844843d30f38ea9459d908e3c.zip
gcc-4b522b8f339f4e7844843d30f38ea9459d908e3c.tar.gz
gcc-4b522b8f339f4e7844843d30f38ea9459d908e3c.tar.bz2
Don't call targetm.calls.static_chain in non-static function
2017-12-20 Tom de Vries <tom@codesourcery.com> PR middle-end/83423 * config/i386/i386.c (ix86_static_chain): Move DECL_STATIC_CHAIN test ... * calls.c (rtx_for_static_chain): ... here. New function. * calls.h (rtx_for_static_chain): Declare. * builtins.c (expand_builtin_setjmp_receiver): Use rtx_for_static_chain instead of targetm.calls.static_chain. * df-scan.c (df_get_entry_block_def_set): Same. From-SVN: r255849
Diffstat (limited to 'gcc/df-scan.c')
-rw-r--r--gcc/df-scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/df-scan.c b/gcc/df-scan.c
index 429dab8..d0addd9 100644
--- a/gcc/df-scan.c
+++ b/gcc/df-scan.c
@@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see
#include "regs.h"
#include "emit-rtl.h" /* FIXME: Can go away once crtl is moved to rtl.h. */
#include "dumpfile.h"
+#include "calls.h"
/* The set of hard registers in eliminables[i].from. */
@@ -3518,7 +3519,7 @@ df_get_entry_block_def_set (bitmap entry_block_defs)
/* If the function has an incoming STATIC_CHAIN, it has to show up
in the entry def set. */
- r = targetm.calls.static_chain (current_function_decl, true);
+ r = rtx_for_static_chain (current_function_decl, true);
if (r && REG_P (r))
bitmap_set_bit (entry_block_defs, REGNO (r));