--- Gnu-Mach/linux/src/include/asm-i386/segment.h 2020/09/02 04:46:04 1.1.1.2 +++ Gnu-Mach/linux/src/include/asm-i386/segment.h 2020/09/02 04:50:48 1.1.1.3 @@ -60,7 +60,11 @@ static inline void __attribute__((always :"ir" (x), "m" (*__sd(y))); break; default: +#ifdef __OPTIMIZE__ bad_user_access_length(); +#else + asm volatile("ud2"); +#endif } } @@ -85,7 +89,11 @@ static inline unsigned long __attribute_ :"m" (*__const_sd(y))); return result; default: +#ifdef __OPTIMIZE__ return bad_user_access_length(); +#else + asm volatile("ud2"); +#endif } }