This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/60195] Strange warnings using atomic types


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60195

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Feb 19 06:29:49 2014
New Revision: 207873

URL: http://gcc.gnu.org/viewcvs?rev=207873&root=gcc&view=rev
Log:
    PR c/60195
c/
    * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
    Call mark_exp_read on exp.value.
    (build_atomic_assign): Set TREE_NO_WARNING on val and old.  Set
    TREE_ADDRESSABLE on old instead of val.
    (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
testsuite/
    * gcc.dg/pr60195.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/pr60195.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]