aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-05-13 12:49:55 +0000
committerAlan Modra <amodra@gmail.com>2000-05-13 12:49:55 +0000
commita38cf1db3a1c32ca85b78a1c50001af4714c1066 (patch)
tree8489966cbd1b04086af56d76308088426cbf33e1 /gas/as.c
parente413e4e996da4184654875d597a59e23451e1972 (diff)
downloadgdb-a38cf1db3a1c32ca85b78a1c50001af4714c1066.zip
gdb-a38cf1db3a1c32ca85b78a1c50001af4714c1066.tar.gz
gdb-a38cf1db3a1c32ca85b78a1c50001af4714c1066.tar.bz2
Add x86 gas -q option to quiet some x86 gas warnings.
Remove useless -m flag_do_long_jump from x86 gas. If BFD_ASSEMBLER, store --defsym value in a bfd_vma, and use scan_bfd_vma.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index 53a48c0..f221207 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -546,7 +546,7 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
case OPTION_DEFSYM:
{
char *s;
- long i;
+ valueT i;
struct defsym_list *n;
for (s = optarg; *s != '\0' && *s != '='; s++)
@@ -554,7 +554,11 @@ the GNU General Public License. This program has absolutely no warranty.\n"));
if (*s == '\0')
as_fatal (_("bad defsym; format is --defsym name=value"));
*s++ = '\0';
+#ifdef BFD_ASSEMBLER
+ i = bfd_scan_vma (s, (const char **) NULL, 0);
+#else
i = strtol (s, (char **) NULL, 0);
+#endif
n = (struct defsym_list *) xmalloc (sizeof *n);
n->next = defsyms;
n->name = optarg;