aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMichael Tiemann <tiemann@cygnus>1994-11-25 02:14:11 +0000
committerMichael Tiemann <tiemann@cygnus>1994-11-25 02:14:11 +0000
commitca43dedd356c5463a80ea9f2924ff59015ff8a30 (patch)
tree4c787f5b2cc07cd1969bfe8cffd3105c624adbd0 /gas
parentff030c982785b7ceeaa02c544c92227b09f8be68 (diff)
downloadgdb-ca43dedd356c5463a80ea9f2924ff59015ff8a30.zip
gdb-ca43dedd356c5463a80ea9f2924ff59015ff8a30.tar.gz
gdb-ca43dedd356c5463a80ea9f2924ff59015ff8a30.tar.bz2
Clean up bitrot (such as interfaces that have changed since these
patches were last used).
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-rce.c41
1 files changed, 34 insertions, 7 deletions
diff --git a/gas/config/tc-rce.c b/gas/config/tc-rce.c
index 62698aa..20f9488 100644
--- a/gas/config/tc-rce.c
+++ b/gas/config/tc-rce.c
@@ -563,22 +563,49 @@ md_atof (type, litP, sizeP)
}
return 0;
}
+
+CONST char *md_shortopts = "";
+struct option md_longopts[] = {
-int
-md_parse_option (argP, cntP, vecP)
- char **argP;
- int *cntP;
- char ***vecP;
+#define OPTION_RELAX (OPTION_MD_BASE)
+#define OPTION_LITTLE (OPTION_MD_BASE+1)
+
+ {"relax", no_argument, NULL, OPTION_RELAX},
+ {"little", no_argument, NULL, OPTION_LITTLE},
+ {NULL, no_argument, NULL, 0}
+};
+size_t md_longopts_size = sizeof(md_longopts);
+int
+md_parse_option (c, arg)
+ int c;
+ char *arg;
{
- if (!strcmp (*argP, "relax"))
+ switch (c)
{
+ case OPTION_RELAX:
relax = 1;
- **argP = 0;
+ break;
+ case OPTION_LITTLE:
+ abort ();
+ break;
+
+ default:
+ return 0;
}
+
return 1;
}
+void
+md_show_usage (stream)
+ FILE *stream;
+{
+ fprintf(stream, "\
+RCE options:\n\
+-relax alter jump instructions for long displacements\n");
+}
+
int md_short_jump_size;
void