llvm-6502/include/llvm/Support
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
..
.cvsignore Ignore generated files 2004-11-21 00:00:04 +00:00
AIXDataTypesFix.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
Annotation.h Eliminate tabs and trailing spaces. 2005-07-27 05:53:44 +00:00
CallSite.h Some cleanups for compilation with GCC 4.0.0 to remove warnings: 2005-05-15 16:13:11 +00:00
Casting.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
CFG.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
CommandLine.h When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
Compressor.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
ConstantRange.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
DataTypes.h.in When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
Debug.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
DOTGraphTraits.h add a method 2005-10-01 00:17:07 +00:00
DynamicLinker.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
ELF.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
FileUtilities.h Final Changes For PR495: 2005-07-08 03:08:58 +00:00
GetElementPtrTypeIterator.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
GraphWriter.h Annotate nodes with their addresses if a graph requests it. 2005-10-01 00:19:21 +00:00
InstIterator.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
InstVisitor.h header file changes for varargs 2005-06-18 18:31:30 +00:00
LeakDetector.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
Mangler.h change proto slightly 2005-09-24 08:23:53 +00:00
MathExtras.h Remove prolific source of VC++ truncation warnings. 2005-10-07 05:29:25 +00:00
MutexGuard.h Eliminate tabs and trailing spaces. 2005-07-27 05:53:44 +00:00
PassNameParser.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
PatternMatch.h Make this slightly more efficient by pushing actual type information down 2005-09-27 06:38:05 +00:00
PluginLoader.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
SlowOperationInformer.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
StableBasicBlockNumbering.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
SystemUtils.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
Timer.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
ToolRunner.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
type_traits.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00
TypeInfo.h Remove trailing whitespace 2005-04-21 20:48:15 +00:00