aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1994-12-13 23:40:41 +0000
committerDoug Evans <dje@gnu.org>1994-12-13 23:40:41 +0000
commitf280b11440eaf4a76e9b7ae79cdfa7e236156bd0 (patch)
treec4c7eae5e2517372b591bd65e663ec9e078048d8
parentb43fc29608e855ec00c38aea8d29857172f03961 (diff)
downloadgcc-f280b11440eaf4a76e9b7ae79cdfa7e236156bd0.zip
gcc-f280b11440eaf4a76e9b7ae79cdfa7e236156bd0.tar.gz
gcc-f280b11440eaf4a76e9b7ae79cdfa7e236156bd0.tar.bz2
(handle_pragma): Only print warning once.
From-SVN: r8652
-rw-r--r--gcc/config/h8300/h8300.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 8208b2a..6627b10 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;