https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71097
--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to r...@cebitec.uni-bielefeld.de from comment #2) > > --- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> --- > > Many of these are testsuite issues, -mcmodel=medium is incompatible with > > -mx32. > > This doesn't apply to the cases I listed: this was a regular > > -m64 -mcmodel=medium > > testsuite run. Let's see one example, e.g. pr66470.c: /* PR target/66470 */ /* { dg-do compile { target { ! ia32 } } } */ /* { dg-options "-O2 -mx32 -maddress-mode=long" } */ /* { dg-require-effective-target tls } */ Your testsuite run will pass -O2 -mx32 -maddress-mode=long -mcmodel=medium, so: ~/gcc-build/gcc/cc1 -O2 -mx32 -maddress-mode=long -mcmodel=medium pr66470.c pr66470.c:1:0: error: code model ‘medium’ not supported in x32 mode /* PR target/66470 */