[Bug rtl-optimization/58542] [4.7/4.8/4.9 Regression] Arguments of __atomic_* functions are converted in unsigned mode

rth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 25 20:06:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58542

--- Comment #12 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Fri Oct 25 20:06:20 2013
New Revision: 204076

URL: http://gcc.gnu.org/viewcvs?rev=204076&root=gcc&view=rev
Log:
PR rtl/58542

  * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
  instead of create_convert_operand_to.
  (maybe_emit_sync_lock_test_and_set): Likewise.
  (expand_atomic_compare_and_swap): Likewise.
  (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/atomic-store-6.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/optabs.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list