llvm-6502/lib/Transforms/IPO
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
..
ArgumentPromotion.cpp Preserve calling conventions when doing IPO 2005-05-09 01:05:50 +00:00
ConstantMerge.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
DeadArgumentElimination.cpp add a debug type 2005-06-24 16:00:46 +00:00
DeadTypeElimination.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
ExtractFunction.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
FunctionResolution.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalDCE.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalOpt.cpp Fix a regression in my previous patch, fixing GlobalOpt/2005-09-27-Crash.ll 2005-09-27 22:28:11 +00:00
Inliner.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Inliner.h Remove trailing whitespace 2005-04-21 23:48:37 +00:00
InlineSimple.cpp teach the inliner about coldcc and noreturn functions 2005-05-18 04:30:33 +00:00
Internalize.cpp Add an option to this pass. If it is set, we are allowed to internalize 2005-10-18 06:29:22 +00:00
IPConstantPropagation.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LoopExtractor.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LowerSetJmp.cpp When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
PruneEH.cpp Eliminate all remaining tabs and trailing spaces. 2005-07-27 06:12:32 +00:00
RaiseAllocations.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
SimplifyLibCalls.cpp When a function takes a variable number of pointer arguments, with a zero 2005-10-23 04:37:20 +00:00
StripSymbols.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00