Commit fae67e1d by Richard Sandiford Committed by Richard Sandiford

optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target to emit_library_call_value.

gcc/
	* optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
	to emit_library_call_value.
	(expand_atomic_compare_and_swap): Likewise.

From-SVN: r182021
parent 2b808bd9
2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
* optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
to emit_library_call_value.
(expand_atomic_compare_and_swap): Likewise.
2011-12-05 Vladimir Makarov <vmakarov@redhat.com> 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
PR other/50775 PR other/50775
...@@ -7400,7 +7400,7 @@ maybe_emit_sync_lock_test_and_set (rtx target, rtx mem, rtx val, ...@@ -7400,7 +7400,7 @@ maybe_emit_sync_lock_test_and_set (rtx target, rtx mem, rtx val,
rtx addr; rtx addr;
addr = convert_memory_address (ptr_mode, XEXP (mem, 0)); addr = convert_memory_address (ptr_mode, XEXP (mem, 0));
return emit_library_call_value (libfunc, target, LCT_NORMAL, return emit_library_call_value (libfunc, NULL_RTX, LCT_NORMAL,
mode, 2, addr, ptr_mode, mode, 2, addr, ptr_mode,
val, mode); val, mode);
} }
...@@ -7637,7 +7637,7 @@ expand_atomic_compare_and_swap (rtx *ptarget_bool, rtx *ptarget_oval, ...@@ -7637,7 +7637,7 @@ expand_atomic_compare_and_swap (rtx *ptarget_bool, rtx *ptarget_oval,
if (libfunc != NULL) if (libfunc != NULL)
{ {
rtx addr = convert_memory_address (ptr_mode, XEXP (mem, 0)); rtx addr = convert_memory_address (ptr_mode, XEXP (mem, 0));
target_oval = emit_library_call_value (libfunc, target_oval, LCT_NORMAL, target_oval = emit_library_call_value (libfunc, NULL_RTX, LCT_NORMAL,
mode, 3, addr, ptr_mode, mode, 3, addr, ptr_mode,
expected, mode, desired, mode); expected, mode, desired, mode);
......
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