From fae67e1dc40c1ffa336ef06299844a6622566ccd Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 5 Dec 2011 19:24:53 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/optabs.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a21b74c541..762c57f9b3a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-12-05 Richard Sandiford + + * 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 PR other/50775 diff --git a/gcc/optabs.c b/gcc/optabs.c index 4f5340e589e..55cfe8c9887 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -7400,7 +7400,7 @@ maybe_emit_sync_lock_test_and_set (rtx target, rtx mem, rtx val, rtx addr; 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, val, mode); } @@ -7637,7 +7637,7 @@ expand_atomic_compare_and_swap (rtx *ptarget_bool, rtx *ptarget_oval, if (libfunc != NULL) { 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, expected, mode, desired, mode); -- 2.30.2