re PR target/28924 (x86 sync builtins fail for char and short memory operands)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Oct 2006 16:54:43 +0000 (18:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Oct 2006 16:54:43 +0000 (18:54 +0200)
commitc66475078ce85978489b9da5a19ebf21697f2b0d
tree2e48de3ca5dfde742c2b5979a234d99ce81526c5
parenta192f4ae530552597d1153d60f498c82408cec73
re PR target/28924 (x86 sync builtins fail for char and short memory operands)

PR target/28924
* builtins.c (expand_builtin_sync_operation,
expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
Use convert_to_mode to handle promoted arguments.

* gcc.c-torture/compile/20061005-1.c: New test.

From-SVN: r117508
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20061005-1.c [new file with mode: 0644]