https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92395
Eero Tamminen <eerott at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eerott at gmail dot com --- Comment #10 from Eero Tamminen <eerott at gmail dot com> --- > I think the option should just be removed at this point. "-mshort" is still used with m68k gcc toolchain(s) that don't break it. Not to build Linux binaries, but to cross-compile things where size matters. It would be nice to be able to use (pre-built Debian) Linux m68k gcc to do such cross-compilation. Looking at https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=gcc/config/m68k;hb=HEAD "linux.h" and "netbsd-elf.h" headers use int & unsigned int for PTRDIFF & SIZE_T, which produces broken code with -mshort, whereas "openbsd.h" and "m68kemb.h" use "long int" & "long unsigned int" which work fine with and without -mshort. (I'm not sure whether I should be surprised that netbsd and openbsd work differently. :-))