https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65602
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #1 from Ilya Enkovich <ienkovich at gcc dot gnu.org> --- > (In reply to Rainer Orth from comment #0) >> All link tests will fail on all non-Linux targets since only those provide >> the >> MPX runtime libraries. The check_effective_target_mpx test in >> gcc.target/i386/mpx/mpx.exp is incomplete, it seems. IMO the test should be >> fixed, rather >> than hardcoding Linux/x86 here, which will start to become wrong once >> non-Linux >> targets start to support MPX. >> >> Rainer > > check_effective_target_mpx defined in lib/mpx-dg.exp is a link test. How comes > it may pass with no libraries available? I suppose because it only links with -lmpx on Linux/x86: this only happens in gcc/config/i386/linux-common.h, but not for other x86 targets. Rainer