summaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-07-28 05:05:20 +0000
committerAlan Modra <amodra@gmail.com>2000-07-28 05:05:20 +0000
commit4c400d5ea7c935bd544aa6998c3faa896b2d1cef (patch)
treed358c0d2129f8be865d4eefdc58fb5807fb16556 /gas/read.c
parent0aa529cb6b6141b8c231c99b2692d1bdc628a775 (diff)
downloadbinutils-gdb-4c400d5ea7c935bd544aa6998c3faa896b2d1cef.tar.gz
comment-finding hack for hppa-linux.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 30ad92c4ec1..b2eb2fd03f5 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -521,6 +521,10 @@ read_a_source_file (name)
register int temp;
pseudo_typeS *pop;
+#ifdef WARN_COMMENTS
+ found_comment = 0;
+#endif
+
buffer = input_scrub_new_file (name);
listing_file (name);
@@ -1082,6 +1086,13 @@ read_a_source_file (name)
#endif
/* Close the input file. */
input_scrub_close ();
+#ifdef WARN_COMMENTS
+ {
+ if (warn_comment && found_comment)
+ as_warn_where (found_comment_file, found_comment,
+ "first comment found here");
+ }
+#endif
}
/* For most MRI pseudo-ops, the line actually ends at the first