From 93c98498fe4d0d35243ff554a4276181e9068156 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 13 Mar 2003 03:12:36 +0000 Subject: [PATCH] cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING. 2003-03-12 Benjamin Kosnik * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING. From-SVN: r64293 --- gcc/ChangeLog | 4 ++++ gcc/cpppch.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0d43bccda30..0d51d352e24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-03-12 Benjamin Kosnik + + * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING. + 2003-03-12 Nathanael Nerode * fixinc/fixinc.interix: Remove dead code (most of it). diff --git a/gcc/cpppch.c b/gcc/cpppch.c index e7f0c91adfd..05ec2e36d7c 100644 --- a/gcc/cpppch.c +++ b/gcc/cpppch.c @@ -417,7 +417,7 @@ cpp_valid_state (r, name, fd) || h->flags & NODE_POISONED) { 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", name, m.name_length, namebuf); goto fail; @@ -429,7 +429,7 @@ cpp_valid_state (r, name, fd) || memcmp (namebuf, newdefn, m.definition_length) != 0) { 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'", name, m.name_length, namebuf, newdefn + m.name_length, m.definition_length - m.name_length, @@ -454,7 +454,8 @@ cpp_valid_state (r, name, fd) || h->flags & NODE_POISONED) { 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); goto fail; } -- 2.30.2