]> granicus.if.org Git - clang/commit
reimplement __sync_* builtins to be variadic and to follow the same
authorChris Lattner <sabre@nondot.org>
Fri, 8 May 2009 06:58:22 +0000 (06:58 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 May 2009 06:58:22 +0000 (06:58 +0000)
commit5caa370ea6f70bd3e7e4a9cc3b69ac1a849c8534
tree325c140baaa5ecb1abc5f7d3a8353040d468253e
parentfb1e3310da7e3886c8057a5f009d2cdf30d8804f
reimplement __sync_* builtins to be variadic and to follow the same
semantic rules that gcc and icc use.  This implements the variadic
and concrete versions as builtins and has sema do the
disambiguation.  There are probably a bunch of details to finish up
but this seems like a large monotonic step forward :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71212 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CGBuiltin.cpp
lib/Sema/Sema.h
lib/Sema/SemaChecking.cpp
test/CodeGen/atomic.c
test/Sema/builtins.c