aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorIgor Zamyatin <igor.zamyatin@intel.com>2014-11-20 08:15:21 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2014-11-20 08:15:21 +0000
commit8f51aa6b267606e25e9b46e9e67ae9c08616ed28 (patch)
treecba2845509200d5b5845092a0e0cc9a17a90cab6 /gcc/cfgexpand.c
parent1be0e58d3003aa8a780d229bf38b0e4a61928b9e (diff)
downloadgcc-8f51aa6b267606e25e9b46e9e67ae9c08616ed28.zip
gcc-8f51aa6b267606e25e9b46e9e67ae9c08616ed28.tar.gz
gcc-8f51aa6b267606e25e9b46e9e67ae9c08616ed28.tar.bz2
re PR sanitizer/63845 (c-c++-common/asan/bitfield-[12345].c fails on i?86 -with -fpic)
gcc/ PR sanitizer/63845 * function.c (assign_parms): Move init of pic_offset_table_rtx from here to... * cfgexpand.c (expand_used_vars): ...here. gcc/testsuite/ PR sanitizer/63845 * gcc.dg/asan/pr63845.c: New test. From-SVN: r217825
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 45c13b4..f61140e 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1722,6 +1722,9 @@ expand_used_vars (void)
init_vars_expansion ();
+ if (targetm.use_pseudo_pic_reg ())
+ pic_offset_table_rtx = gen_reg_rtx (Pmode);
+
hash_map<tree, tree> ssa_name_decls;
for (i = 0; i < SA.map->num_partitions; i++)
{