This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/58542] [4.7/4.8/4.9 Regression] Arguments of __atomic_* functions are converted in unsigned mode
- From: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Oct 2013 20:09:17 +0000
- Subject: [Bug rtl-optimization/58542] [4.7/4.8/4.9 Regression] Arguments of __atomic_* functions are converted in unsigned mode
- Auto-submitted: auto-generated
- References: <bug-58542-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58542
--- Comment #13 from Richard Henderson <rth at gcc dot gnu.org> ---
Author: rth
Date: Fri Oct 25 20:09:13 2013
New Revision: 204077
URL: http://gcc.gnu.org/viewcvs?rev=204077&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_7-branch/gcc/testsuite/gcc.dg/atomic-store-6.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/optabs.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog