| Index: gcc/config/i386/nacl.h
|
| diff --git a/gcc/config/i386/nacl.h b/gcc/config/i386/nacl.h
|
| index f11da3f940a3fb7b9f34c677cc907436daf77ebc..e903e029865e098946269d95aac8de6d69c88224 100644
|
| --- a/gcc/config/i386/nacl.h
|
| +++ b/gcc/config/i386/nacl.h
|
| @@ -268,3 +268,12 @@ Boston, MA 02111-1307, USA. */
|
| #define DWARF2_ADDR_SIZE \
|
| (TARGET_NACL ? (TARGET_64BIT ? 8 : 4) : \
|
| (POINTER_SIZE / BITS_PER_UNIT))
|
| +
|
| +/* -Os is broken and we aren't putting the work into fixing it.
|
| + See http://code.google.com/p/nativeclient/issues/detail?id=2284 */
|
| +#undef SUBTARGET_OVERRIDE_OPTIONS
|
| +#define SUBTARGET_OVERRIDE_OPTIONS \
|
| + do { \
|
| + if (TARGET_NACL && optimize_size) \
|
| + error ("-Os is not supported by the Native Client compiler"); \
|
| + } while (0)
|
|
|