re PR middle-end/36106 (#pragma omp atomic issues with floating point types)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 May 2008 07:28:14 +0000 (09:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 May 2008 07:28:14 +0000 (09:28 +0200)
commitc18c98c0ade56bc46ce65bbf5cdff26a2577c990
tree8a49369b064d64c16fa89af2d0a836f7966d2e98
parent537d4fa684f272ea72c1c8db58e4f1dcd3b7cda4
re PR middle-end/36106 (#pragma omp atomic issues with floating point types)

PR middle-end/36106
* omp-low.c (expand_omp_atomic_pipeline): Load value using the
integral type rather than floating point, then VIEW_CONVERT_EXPR
to the floating point type.

* testsuite/libgomp.c/atomic-5.c: New test.
* testsuite/libgomp.c/atomic-6.c: New test.
* testsuite/libgomp.c/autopar-1.c: New test.

From-SVN: r135027
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/atomic-5.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/atomic-6.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/autopar-1.c [new file with mode: 0644]