Commit 93c98498 by Benjamin Kosnik Committed by Benjamin Kosnik

cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.


2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>

	* cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.

From-SVN: r64293
parent 706ae11c
2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
* cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org> 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
* fixinc/fixinc.interix: Remove dead code (most of it). * fixinc/fixinc.interix: Remove dead code (most of it).
......
...@@ -417,7 +417,7 @@ cpp_valid_state (r, name, fd) ...@@ -417,7 +417,7 @@ cpp_valid_state (r, name, fd)
|| h->flags & NODE_POISONED) || h->flags & NODE_POISONED)
{ {
if (CPP_OPTION (r, warn_invalid_pch)) if (CPP_OPTION (r, warn_invalid_pch))
cpp_error (r, DL_WARNING, cpp_error (r, DL_WARNING_SYSHDR,
"%s: not used because `%.*s' not defined", "%s: not used because `%.*s' not defined",
name, m.name_length, namebuf); name, m.name_length, namebuf);
goto fail; goto fail;
...@@ -429,7 +429,7 @@ cpp_valid_state (r, name, fd) ...@@ -429,7 +429,7 @@ cpp_valid_state (r, name, fd)
|| memcmp (namebuf, newdefn, m.definition_length) != 0) || memcmp (namebuf, newdefn, m.definition_length) != 0)
{ {
if (CPP_OPTION (r, warn_invalid_pch)) if (CPP_OPTION (r, warn_invalid_pch))
cpp_error (r, DL_WARNING, cpp_error (r, DL_WARNING_SYSHDR,
"%s: not used because `%.*s' defined as `%s' not `%.*s'", "%s: not used because `%.*s' defined as `%s' not `%.*s'",
name, m.name_length, namebuf, newdefn + m.name_length, name, m.name_length, namebuf, newdefn + m.name_length,
m.definition_length - m.name_length, m.definition_length - m.name_length,
...@@ -454,7 +454,8 @@ cpp_valid_state (r, name, fd) ...@@ -454,7 +454,8 @@ cpp_valid_state (r, name, fd)
|| h->flags & NODE_POISONED) || h->flags & NODE_POISONED)
{ {
if (CPP_OPTION (r, warn_invalid_pch)) if (CPP_OPTION (r, warn_invalid_pch))
cpp_error (r, DL_WARNING, "%s: not used because `%s' is defined", cpp_error (r, DL_WARNING_SYSHDR,
"%s: not used because `%s' is defined",
name, undeftab + i); name, undeftab + i);
goto fail; goto fail;
} }
......
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