llvm-project/clang/test/Sema
Chris Lattner 5b9241b2a6 Fix the atomics sema code to convert operands to the argument types
of the underlying _N builtin, not the the type of the pointee of the
actual type.  This ensures that atomics involving pointers end up
using the correct integer type when they are resolved, avoiding
aborts in codegen.

llvm-svn: 71218
2009-05-08 15:36:58 +00:00
..
128bitint.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2727.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2728.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2919-builtin-types-compat-strips-crv.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2923.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
PR2963-enum-constant.c Make VerifyIntegerConstantExpr print extension warnings for non-ICEs. 2009-04-25 22:26:58 +00:00
address-constant.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
address_spaces.c fix rdar://6774906, a crash handling implicit conversions between pointers 2009-04-13 06:04:39 +00:00
align-x86.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
annotate.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
anonymous-struct-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
arg-duplicate.c When calling a function without a prototype for which we have a 2009-04-02 15:37:10 +00:00
arg-scope-c99.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
arg-scope.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
array-constraint.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
array-declared-as-incorrect-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
array-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
asm.c If we have mismatched integer tied operands, but the operand 2009-05-03 07:04:21 +00:00
assign-null.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
assign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
ast-print.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-aligned.c Properly compute the alignment of typedefs that make use of the 2009-04-30 17:32:17 +00:00
attr-cleanup.c Correct the order of the parameters to CheckAssignmentConstraints in 2009-04-26 01:30:08 +00:00
attr-deprecated.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-mode.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-nodebug.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-noinline.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-noreturn.c Implement sema checking for noreturn. 2009-04-29 00:43:21 +00:00
attr-regparm.c Finish off semantic analysis for regparm, and remove the warning. Also 2009-03-27 21:06:47 +00:00
attr-unused.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-used.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-warn_unused_result.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
attr-weak.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bitfield-layout.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
bitfield.c When determining whether an expression refers to a bit-field, look 2009-05-02 02:18:30 +00:00
block-args.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-as-object.m Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-byref-args.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-call.c Tighten up blocks type checking. This was discussed back in the 2009-04-21 22:51:42 +00:00
block-explicit-return-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-labels.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
block-literal.c change implicit int warnings to point to the identifier, not the 2009-04-22 05:27:59 +00:00
block-misc.c Allow qualifiers on blocks. Radar 6441502 2009-05-07 21:56:17 +00:00
block-return.c Fixup Sema and CodeGen for block literal attributes when the return 2009-04-29 21:40:37 +00:00
block-storageclass.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-object-size.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-prefetch.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtin-stackaddress.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
builtins.c Fix the atomics sema code to convert operands to the argument types 2009-05-08 15:36:58 +00:00
c89-2.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
c89.c Fix a minor edge case in C89 mode related to the definition of a 2009-04-28 17:59:09 +00:00
callingconv.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
carbon-pth.c Improve handling of (X86) target features. 2009-05-06 03:16:41 +00:00
carbon.c Improve handling of (X86) target features. 2009-05-06 03:16:41 +00:00
cast-to-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
cast.c PR4013 and PR4105: pointer-like types can only be cast to/from integers 2009-05-01 02:23:58 +00:00
check-increment.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
compare.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
complex-int.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
complex-promotion.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
compound-literal.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
conditional-expr.c Sema::CheckConditionalOperands(): Soften pointer/integer mismatch from error->warning. 2009-04-08 17:05:15 +00:00
conditional.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
const-eval.c PR4097: add logic to Evaluate to handle pointer equality comparisons. 2009-04-28 19:17:36 +00:00
const-ptr-int-ptr-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-builtins-2.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
constant-builtins.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
constructor-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
darwin-align-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
decl-invalid.c fix a valgrind problem I noticed while developing another patch, 2009-04-12 20:51:10 +00:00
decl-type-merging.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
declspec.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
default.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
default1.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
deref.c PR2524: downgrade taking address of expression of type 'void' to an 2009-05-03 22:36:05 +00:00
designated-initializers.c fix PR4073 by making designated initializer checking code use 2009-04-25 21:59:05 +00:00
dllimport-dllexport.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
enum.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
expr-address-of.c Some cleanup and bug-fixing for address-of checking. This causes a couple of 2009-04-20 08:23:18 +00:00
expr-comma-c89.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
expr-comma.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
exprs.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
ext_vector_components.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
flexible-array-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
floating-point-compare.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
for.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
format-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
format-strings.c implement -Wformat-security properly, which is enabled by default. 2009-04-29 04:59:47 +00:00
function-ptr.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
function-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
function.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
heinous-extensions-off.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
heinous-extensions-on.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
i-c-e.c Simplify the scheme used for keywords, and change the classification 2009-04-28 03:13:54 +00:00
if-empty-body.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
illegal-types.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-freestanding.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-builtin-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-decl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-def.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
implicit-int.c change implicit int warnings to point to the identifier, not the 2009-04-22 05:27:59 +00:00
incompatible-sign.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
incomplete-call.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
incomplete-decl.c Add warning when a tentative array definition is assumed to have one element. 2009-04-15 21:35:27 +00:00
indirect-goto.c Sanity-check argument to indirect goto. 2009-03-26 07:32:37 +00:00
init-struct-qualified.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
init.c Explictly track tentative definitions within Sema, then hand those 2009-04-21 17:11:58 +00:00
inline.c Diagnose uses of function specifiers on declarations which don't declare 2009-04-07 19:37:57 +00:00
int-arith-convert.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
invalid-decl.c This is a pretty big cleanup for how invalid decl/type are handle. 2009-04-25 08:06:05 +00:00
invalid-init-diag.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
invalid-struct-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
knr-def-call.c When calling a function without a prototype for which we have a 2009-04-02 15:37:10 +00:00
member-reference.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
merge-decls.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
ms-fuzzy-asm.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
nested-redef.c Change SemaType's "GetTypeForDeclarator" and "ConvertDeclSpecToType" to 2009-04-25 08:47:54 +00:00
nonnull.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
offsetof.c Fix for PR4079: make sure to construct the member expressions for 2009-04-26 20:50:44 +00:00
overloadable-complex.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
overloadable.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-addition.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pointer-subtract-compat.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-pack-2.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-pack.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
pragma-unused.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
predef.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
predefined-function.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
private-extern.c Fix <rdar://problem/6789707> "warning: 'extern' variable has an initializer" not correct for __private_extern__. 2009-04-15 15:20:03 +00:00
rdar6248119.m Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
rdr6094103-unordered-compare-promote.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
recover-goto.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
redefinition.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
return-silent.c Name the "return-type" DiagGroup and reference it in a few places. 2009-04-30 17:53:16 +00:00
return.c Name the "return-type" DiagGroup and reference it in a few places. 2009-04-30 17:53:16 +00:00
scope-check.c run the jump checker on blocks, even though they don't have gotos, 2009-04-19 05:28:12 +00:00
self-comparison.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
sentinel-attribute.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
shift.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
statements.c __builtin_prefetch should be declared as "void __builtin_prefetch(const void *)", 2009-04-18 06:51:21 +00:00
static-init.c PR4013 and PR4105: pointer-like types can only be cast to/from integers 2009-05-01 02:23:58 +00:00
stdcall-fastcall.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-cast.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-compat.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
struct-decl.c Fix PR4092 by improving error recovery in two ways: 2009-04-29 05:12:23 +00:00
struct-packed-align.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
surpress-deprecated.c Add -Wdeprecated-declarations to driver and add a test case. 2009-03-31 17:28:26 +00:00
switch.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
tentative-decls.c This is a pretty big cleanup for how invalid decl/type are handle. 2009-04-25 08:06:05 +00:00
text-diag.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
thread-specifier.c Print an error for uses of __thread on targets which don't support it. 2009-04-19 21:48:33 +00:00
transparent-union-pointer.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
transparent-union.c Implement semantic analysis for transparent unions. This is largely 2009-04-29 22:16:16 +00:00
type-spec-struct-union.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typecheck-binop.c Make sure to use RequireCompleteType rather than testing for 2009-03-24 19:52:54 +00:00
typedef-prototype.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typedef-redef.c tweak redefinition of a typedef a bit to fix a couple of problems: 2009-04-17 22:04:20 +00:00
typedef-retain.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
typedef-variable-type.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
types.c only support int128_t on 64-bit and larger targets. 32-bit targets don't 2009-04-30 06:18:40 +00:00
ucn-cstring.c Incorporate feedback from Eli. 2009-03-31 10:29:45 +00:00
unnamed-bitfield-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
unused-expr.c Driver: Manually translate a number of -f with no- variants options to 2009-04-07 21:16:11 +00:00
usual-float.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
va_arg_x86_64.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
var-redecl.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
varargs-x86-64.c Daniel convinced me that accepting "const va_list" arguments to va_arg is 2009-04-06 17:07:34 +00:00
varargs.c PR2524: downgrade taking address of expression of type 'void' to an 2009-05-03 22:36:05 +00:00
variadic-block.c Fix <rdar://problem/6786597> varargs not supported for Blocks under clang. 2009-04-15 19:33:47 +00:00
vector-assign.c adjust for the new -Wvector-conversions option 2009-04-17 18:39:25 +00:00
vector-cast.c adjust for the new -Wvector-conversions option 2009-04-17 18:39:25 +00:00
vector-init.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
vla.c Add a bit more handling for declarations like "int a[*]". 2009-04-26 21:57:51 +00:00
void_arg.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
warn-freestanding-complex.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00
warn-missing-prototypes.c add radar number 2009-04-11 17:26:58 +00:00
wchar.c Rename clang to clang-cc. 2009-03-24 02:24:46 +00:00