With CHERI there now more options than ILP32 and LP64 so lack of
one does not imply the other. Encourage the use of SIZEOF_* macro
tests in their place.
Sponsored by: Innovate UK
Differential D52820
arch.7: deprecate __ILP32__ and __LP64__ macros brooks on Wed, Oct 1, 9:39 AM. Authored by Tags None Referenced Files
Details
With CHERI there now more options than ILP32 and LP64 so lack of Sponsored by: Innovate UK
Diff Detail
Event TimelineComment Actions Are ILP32/LP64 undefined for cheri? If yes, I think that this should be explicitly mentioned, and in fact these macros are still useful, to exclude the outliers from regular arches. Comment Actions Be explicit that the compiler does not define LP64 on CHERI Comment Actions FWIW, we do currently add __LP64__ to CFLAGS in bsd.cpu.mk has a hack because there's a lot of code of the form: #ifdef __LP64__ // 64-bit stuff #else // 32-bit stuff #endif and we haven't cleaned it all up yet. The goal here is to get people stop adding more. It is usually less wrong to write: #ifdef __ILP32__ // 32-bit stuff #else // 64-bit stuff #endif since much of the time a the 64-bit stuff isn't about pointer size.
|