failed();
}
+ /* cope with -MD, -MM, -MMD before the code below chucks them */
+ if (strcmp(argv[i], "-MD") == 0 ||
+ strcmp(argv[i], "-MM") == 0 ||
+ strcmp(argv[i], "-MMD") == 0) {
+ args_add(stripped_args, argv[i]);
+ continue;
+ }
+
+ /* check for bad options */
+ if (strncmp(argv[i], "-M", 2) == 0) {
+ cc_log("argument %s is unsupported\n", argv[i]);
+ stats_update(STATS_UNSUPPORTED);
+ failed();
+ continue;
+ }
+
/* we must have -c */
if (strcmp(argv[i], "-c") == 0) {
args_add(stripped_args, argv[i]);
{ STATS_ARGS, "bad compiler arguments ", NULL, 0 },
{ STATS_NOTC, "not a C/C++ file ", NULL, 0 },
{ STATS_CONFTEST, "autoconf compile/link ", NULL, 0 },
+ { STATS_UNSUPPORTED, "unsupported compiler option ", NULL, 0 },
{ STATS_DEVICE, "output to a non-regular file ", NULL, 0 },
{ STATS_NOINPUT, "no input file ", NULL, 0 },
{ STATS_NUMFILES, "files in cache ", NULL, FLAG_NOZERO|FLAG_ALWAYS },