This is the mail archive of the gcc@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] |
Are there really any targets where passing an unadorned zero doesn't work?
Yes; any target where ints are 32 bit, and pointers are 64 bit (i.e., most 64-bit targets).
Well, usually the ABIs specify zero padding to 64 bits on such platforms, which would make this work. At least Alpha does, and I thought it was similar on other platforms...
That "works" on most such platforms, I guess (I verified it does for the 64-bit PowerPC ABI); but it doesn't "work" in the sense that it is not standard-compliant. If GCC is to give a warning at all, it should warn for every non-standard use, not just if it might fail for the current target.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |