This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] alias.c: Replace "return NULL_RTX" with "return 0".


 > > I won't argue readability (though I disagree) but NULL is *NOT* more
 > > reliable in the presence of varargs; there is no guarantee that NULL
 > > doesn't expand to "0".  In the presence of varargs one has no choice
 > > but to write an explicit cast.
 > 
 > A system that defines NULL to 0 where that is a different size from
 > (void*)0 is broken.  Does such brokenness actually exist?
 > Jason

I doubt it.  FWIW we've been using plain NULL as a terminator for the
variadic `concat' function for years and I'm unaware of any
complaints.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]