From bc200ad4894b8b621cffc91aed93725e2fb136ac Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Sun, 8 Oct 2017 20:55:04 +0200 Subject: [PATCH] For *-apple-macos-gcc, -Wno-trigraphs is now the default. ('????' is a common four character code on Classic MacOS, we don't want warnings) --- gcc/gcc/config/m68k/m68k-macos.h | 3 +++ gcc/gcc/config/rs6000/macos.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/gcc/config/m68k/m68k-macos.h b/gcc/gcc/config/m68k/m68k-macos.h index 14220a2321..5a84ffce49 100644 --- a/gcc/gcc/config/m68k/m68k-macos.h +++ b/gcc/gcc/config/m68k/m68k-macos.h @@ -13,3 +13,6 @@ #undef ENDFILE_SPEC #define ENDFILE_SPEC "" +#undef CPP_SPEC +#define CPP_SPEC "-Wno-trigraphs" + diff --git a/gcc/gcc/config/rs6000/macos.h b/gcc/gcc/config/rs6000/macos.h index c5dc931f88..b3dcf09f44 100644 --- a/gcc/gcc/config/rs6000/macos.h +++ b/gcc/gcc/config/rs6000/macos.h @@ -175,6 +175,9 @@ #undef STARTFILE_SPEC #define STARTFILE_SPEC "" +#undef CPP_SPEC +#define CPP_SPEC "-Wno-trigraphs" + #undef TARGET_DEFAULT #define TARGET_DEFAULT 0 // (MASK_POWERPC | MASK_MULTIPLE | MASK_NEW_MNEMONICS)