]> git.ipfire.org Git - thirdparty/gcc.git/commit
gimplify.c (gimplify_modify_expr): When assigning to volatiles, copy the src value...
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 20 Aug 2010 12:22:11 +0000 (12:22 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 20 Aug 2010 12:22:11 +0000 (12:22 +0000)
commit8f0fe813790d58066714c8f38f4916925c83517d
tree8203f44d134cc7bbd49bc190100542d7b66cfda0
parentf8fe0a4a8e1df13c21dd0f394740582a4d264f03
gimplify.c (gimplify_modify_expr): When assigning to volatiles, copy the src value and return a copy.

gcc/
* gimplify.c (gimplify_modify_expr): When assigning to volatiles,
copy the src value and return a copy.
* doc/extend.texi (Volatiles): Move from C++ to C and expand.
(C++ Volatiles): Adjust to describe C++ semantics only.

gcc/testsuite/
* gcc.target/i386/volatile-2.c: New.

From-SVN: r163400
gcc/doc/extend.texi
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/volatile-2.c [new file with mode: 0644]