Commit 959c1e20 by Aldy Hernandez Committed by Aldy Hernandez

builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating PIC_OFFSET_TABLE_REGNUM twice.

	* builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
	PIC_OFFSET_TABLE_REGNUM twice.

From-SVN: r241625
parent 93f90bec
2016-10-27 Aldy Hernandez <aldyh@redhat.com>
* builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
PIC_OFFSET_TABLE_REGNUM twice.
2016-10-27 Bin Cheng <bin.cheng@arm.com> 2016-10-27 Bin Cheng <bin.cheng@arm.com>
* match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
...@@ -1140,8 +1140,8 @@ expand_builtin_nonlocal_goto (tree exp) ...@@ -1140,8 +1140,8 @@ expand_builtin_nonlocal_goto (tree exp)
to targets with a nonlocal_goto pattern; they are free to targets with a nonlocal_goto pattern; they are free
to implement it in their own way. Note also that this is to implement it in their own way. Note also that this is
a no-op if the GP register is a global invariant.) */ a no-op if the GP register is a global invariant.) */
if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM unsigned regnum = PIC_OFFSET_TABLE_REGNUM;
&& fixed_regs[PIC_OFFSET_TABLE_REGNUM]) if (regnum != INVALID_REGNUM && fixed_regs[regnum])
emit_use (pic_offset_table_rtx); emit_use (pic_offset_table_rtx);
emit_indirect_jump (r_label); emit_indirect_jump (r_label);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment