aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.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/config/tc-hppa.c
parent0aa529cb6b6141b8c231c99b2692d1bdc628a775 (diff)
downloadgdb-4c400d5ea7c935bd544aa6998c3faa896b2d1cef.zip
gdb-4c400d5ea7c935bd544aa6998c3faa896b2d1cef.tar.gz
gdb-4c400d5ea7c935bd544aa6998c3faa896b2d1cef.tar.bz2
comment-finding hack for hppa-linux.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index ab227ea..7e59b42 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -4345,12 +4345,23 @@ md_estimate_size_before_relax (fragP, segment)
}
#ifdef OBJ_ELF
+# ifdef WARN_COMMENTS
+const char *md_shortopts = "Vc";
+# else
const char *md_shortopts = "V";
+# endif
#else
+# ifdef WARN_COMMENTS
+const char *md_shortopts = "c";
+# else
const char *md_shortopts = "";
+# endif
#endif
struct option md_longopts[] = {
+#ifdef WARN_COMMENTS
+ {"warn-comment", no_argument, NULL, 'c'},
+#endif
{NULL, no_argument, NULL, 0}
};
size_t md_longopts_size = sizeof(md_longopts);
@@ -4370,6 +4381,11 @@ md_parse_option (c, arg)
print_version_id ();
break;
#endif
+#ifdef WARN_COMMENTS
+ case 'c':
+ warn_comment = 1;
+ break;
+#endif
}
return 1;
@@ -4379,6 +4395,14 @@ void
md_show_usage (stream)
FILE *stream ATTRIBUTE_UNUSED;
{
+#ifdef OBJ_ELF
+ fprintf (stream, _("\
+ -Q ignored\n"));
+#endif
+#ifdef WARN_COMMENTS
+ fprintf (stream, _("\
+ -c print a warning if a comment is found\n"));
+#endif
}
/* We have no need to default values of symbols. */