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/51256] ICE with invalid parameter for __atomic builtin


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

--- Comment #1 from Andrew Macleod <amacleod at redhat dot com> 2011-11-25 03:00:44 UTC ---
Author: amacleod
Date: Fri Nov 25 03:00:38 2011
New Revision: 181709

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181709
Log:

2011-11-24  Andrew MacLeod  <amacleod@redhat.com>

    PR c/51256
    * c-common.c (get_atomic_generic_size): Check for various error 
    conditions
    (resolve_overloaded_atomic_exchange, 
    resolve_overloaded_atomic_compare_exchange, 
    resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
    error_mark_node for error conditions.
    * gcc.dg/atomic-pr51256.c: New.  Test error conditions.


Added:
    trunk/gcc/testsuite/gcc.dg/atomic-pr51256.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]