https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79051
Rainer Orth <ro at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org --- Comment #9 from Rainer Orth <ro at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #7) Unfortunately, that change is still wrong and causes failures on e.g. i386-pc-solaris2.12 and i686-pc-linux-gnu: Excess errors: /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/attr-alloc_size-4.c:142:3: warning: argument 1 range [1236, 2147483647] exceeds maximum object size 1234 [-Walloc-size-larger-than=] If you match __i386__ in the #if, you need to do the same in the target selector, as in the attached patch. Tested with the appropriate runtest invocation on i386-pc-solaris2.12 and amd64-pc-solaris2.12. Rainer