Import gcc fix for -fstack-protector that produces segfaulting
binaries on arm/armel. Related gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35965 PR: 161128 MFC after: 1 week
This commit is contained in:
parent
23a541f4f7
commit
da5a448eb2
@ -3217,6 +3217,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
|
||||
gcc_assert (!no_new_pseudos);
|
||||
if (arm_pic_register != INVALID_REGNUM)
|
||||
{
|
||||
if (!cfun->machine->pic_reg)
|
||||
cfun->machine->pic_reg = gen_rtx_REG (Pmode, arm_pic_register);
|
||||
|
||||
/* Play games to avoid marking the function as needing pic
|
||||
@ -3229,6 +3230,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
|
||||
{
|
||||
rtx seq;
|
||||
|
||||
if (!cfun->machine->pic_reg)
|
||||
cfun->machine->pic_reg = gen_reg_rtx (Pmode);
|
||||
|
||||
/* Play games to avoid marking the function as needing pic
|
||||
|
Loading…
Reference in New Issue
Block a user