From: Doug Evans Date: Tue, 13 Dec 1994 23:40:41 +0000 (+0000) Subject: (handle_pragma): Only print warning once. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f280b11440eaf4a76e9b7ae79cdfa7e236156bd0;p=gcc.git (handle_pragma): Only print warning once. From-SVN: r8652 --- diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 8208b2aad8f..6627b10fabf 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;