OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Dec 2011 19:24:53 +0000 (19:24 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Dec 2011 19:24:53 +0000 (19:24 +0000)
* optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
to emit_library_call_value.
(expand_atomic_compare_and_swap): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182021 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optabs.c

index 3a21b74..762c57f 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR other/50775
index 4f5340e..55cfe8c 100644 (file)
@@ -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);