Commit 213af8c8 by Mike Stump Committed by Mike Stump

darwin-c.c (darwin_pragma_options): Use BAD instead.

	* config/darwin-c.c (darwin_pragma_options): Use BAD instead.
	(darwin_pragma_unused): Likewise.
	(darwin_pragma_ms_struct): Likewise.

From-SVN: r113962
parent 76ad5c10
......@@ -2,6 +2,9 @@
* 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>
......
......@@ -114,7 +114,7 @@ darwin_pragma_options (cpp_reader *pfile ATTRIBUTE_UNUSED)
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"))
......@@ -124,7 +124,7 @@ darwin_pragma_options (cpp_reader *pfile ATTRIBUTE_UNUSED)
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}*]) */
......@@ -157,7 +157,7 @@ darwin_pragma_unused (cpp_reader *pfile ATTRIBUTE_UNUSED)
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. */
......@@ -176,10 +176,10 @@ darwin_pragma_ms_struct (cpp_reader *pfile ATTRIBUTE_UNUSED)
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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment