llvm/lib
Jeff Cohen 66c5fd6c53 When a function takes a variable number of pointer arguments, with a zero
pointer marking the end of the list, the zero *must* be cast to the pointer
type.  An un-cast zero is a 32-bit int, and at least on x86_64, gcc will
not extend the zero to 64 bits, thus allowing the upper 32 bits to be
random junk.

The new END_WITH_NULL macro may be used to annotate a such a function
so that GCC (version 4 or newer) will detect the use of un-casted zero
at compile time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23888 91177308-0d34-0410-b5e6-96231b3b80d8
2005-10-23 04:37:20 +00:00
..
Analysis wrap a long line 2005-09-28 22:30:58 +00:00
Archive speed up Archive::isBytecodeArchive in the case when the archive doesn't have 2005-09-23 06:22:58 +00:00
AsmParser When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
Bytecode When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
CodeGen When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
Debugger When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
ExecutionEngine Add help support for -mcpu and -mattr. 2005-09-02 19:27:43 +00:00
Linker
Support Allow bugpoint+PPC codegen to use fsqrt 2005-08-29 13:14:24 +00:00
System
Target Add several things. 2005-10-23 03:43:48 +00:00
Transforms When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
VMCore Allow $ 2005-10-14 01:28:34 +00:00
Makefile