GCC used to use a magic builtin in pre C++11 to implement NULL, but IIRC they removed it as non-conforming.