https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102296
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- Please Cc me on Solaris bugs from the beginning, otherwise I'm almost guaranteed to miss them. That said, where do you see this? (The PR refers to GCC 12.0). As far as I could find, back to (at least) GCC 3.4.6 the code uses DECL_SIZE, just like elfos.h. Besides, compiling your testcase with gcc-14 -m32 gives the same code on both Solaris/x86 and Linux/x86_64.