* config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
(BAD2): Add.
-
+ (darwin_pragma_options): Use BAD instead.
+ (darwin_pragma_unused): Likewise.
+ (darwin_pragma_ms_struct): Likewise.
+
2006-05-21 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (floatsitf2): Remove constraints.
BAD ("malformed '#pragma options', ignoring");
if (pragma_lex (&x) != CPP_EOF)
- warning (0, "junk at end of '#pragma options'");
+ BAD ("junk at end of '#pragma options'");
arg = IDENTIFIER_POINTER (t);
if (!strcmp (arg, "mac68k"))
else if (!strcmp (arg, "reset"))
pop_field_alignment ();
else
- warning (0, "malformed '#pragma options align={mac68k|power|reset}', ignoring");
+ BAD ("malformed '#pragma options align={mac68k|power|reset}', ignoring");
}
/* #pragma unused ([var {, var}*]) */
BAD ("missing ')' after '#pragma unused', ignoring");
if (pragma_lex (&x) != CPP_EOF)
- warning (0, "junk at end of '#pragma unused'");
+ BAD ("junk at end of '#pragma unused'");
}
/* Parse the ms_struct pragma. */
else if (!strcmp (arg, "off") || !strcmp (arg, "reset"))
darwin_ms_struct = false;
else
- warning (OPT_Wpragmas, "malformed '#pragma ms_struct {on|off|reset}', ignoring");
+ BAD ("malformed '#pragma ms_struct {on|off|reset}', ignoring");
if (pragma_lex (&t) != CPP_EOF)
- warning (OPT_Wpragmas, "junk at end of '#pragma ms_struct'");
+ BAD ("junk at end of '#pragma ms_struct'");
}
static struct {