OSDN Git Service

(handle_pragma): Only print warning once.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 1994 23:40:41 +0000 (23:40 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 1994 23:40:41 +0000 (23:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8652 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/h8300/h8300.c

index 8208b2a..6627b10 100644 (file)
@@ -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;