From f280b11440eaf4a76e9b7ae79cdfa7e236156bd0 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 13 Dec 1994 23:40:41 +0000 Subject: [PATCH] (handle_pragma): Only print warning once. From-SVN: r8652 --- gcc/config/h8300/h8300.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 8208b2aad8f8..6627b10fabfc 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -579,7 +579,12 @@ handle_pragma (file) /* ??? This is deprecated. Delete for gcc 2.8. */ if (strcmp (pbuf, "section") == 0) { - warning ("#pragma section is deprecated, use section attributes"); + static int printed_p = 0; + if (!printed_p) + { + warning ("#pragma section is deprecated, use section attributes"); + printed_p = 1; + } while (c && !isalpha (c)) c = getc (file); psize = 0; -- 2.43.5