https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67958
--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> --- On Darwin, PIE implies PIC (all executables that can be PIE are 'dynamic') - (the case of mdynamic-no-pic is not combinable with pie). so, on Darwin, the output of -1 should be the same as -2; (likewise -3 & -4; -5 & -6; -7 & -8). So, for 1,3,5,7 the current tests could be conditionalised on ! *-*-darwin* and the checks from 2,4,6,8 copied in and made conditional on *-*-darwin*.