re PR c/65345 (ICE with _Generic selection on _Atomic int)
authorMarek Polacek <polacek@redhat.com>
Thu, 23 Apr 2015 14:35:12 +0000 (14:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 23 Apr 2015 14:35:12 +0000 (14:35 +0000)
commit5c4abbb8e80153999b0298e4b2fe81d512f133c8
tree9a2630664eeeea06af689180602bbd9e970c8fd2
parent0f9b95dfc735af9e5f63bf0acdd6d6fa7fecefb6
re PR c/65345 (ICE with _Generic selection on _Atomic int)

PR c/65345
* c-decl.c (set_labels_context_r): New function.
(store_parm_decls): Call it via walk_tree_without_duplicates.
* c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
instead of create_tmp_var.  Build TARGET_EXPR instead of
COMPOUND_EXPR.
(build_atomic_assign): Use create_tmp_var_raw instead of
create_tmp_var.  Build TARGET_EXPRs instead of MODIFY_EXPR.

* gcc.dg/pr65345-1.c: New test.
* gcc.dg/pr65345-2.c: New test.

From-SVN: r222370
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr65345-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr65345-2.c [new file with mode: 0644]