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/69407] -Wunused-value on __atomic_fetch_OP and __atomic_OP_fetch


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69407

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar 17 18:43:08 2016
New Revision: 234304

URL: https://gcc.gnu.org/viewcvs?rev=234304&root=gcc&view=rev
Log:
        PR c/69407
        * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
        operations.

        * gcc.dg/atomic-op-6.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/atomic-op-6.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.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]