aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-04-09 21:35:50 +0100
committerMaciej W. Rozycki <macro@imgtec.com>2016-04-09 21:35:50 +0100
commit41a1578ed17cdd7c01c38389ac7c714c4f15cbf8 (patch)
tree945bc1648562062c921979ec450d66d7247eb957 /gas/config
parent668c5ebc0937ab5288d831d65de3057e56e2763f (diff)
downloadgdb-41a1578ed17cdd7c01c38389ac7c714c4f15cbf8.zip
gdb-41a1578ed17cdd7c01c38389ac7c714c4f15cbf8.tar.gz
gdb-41a1578ed17cdd7c01c38389ac7c714c4f15cbf8.tar.bz2
MIPS/GAS: Sanitize `.option picX' pseudo-op
gas/ * config/tc-mips.c (s_option): Sanitize `.option picX' pseudo-op. * testsuite/gas/mips/option-pic-1.d: New test. * testsuite/gas/mips/option-pic-2.l: New list test. * testsuite/gas/mips/option-pic-1.s: New test source. * testsuite/gas/mips/option-pic-2.s: New test source. * testsuite/gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 7017444..db3ec67 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -15472,7 +15472,7 @@ s_option (int x ATTRIBUTE_UNUSED)
{
/* FIXME: What does this mean? */
}
- else if (strncmp (opt, "pic", 3) == 0)
+ else if (strncmp (opt, "pic", 3) == 0 && ISDIGIT (opt[3]) && opt[4] == '\0')
{
int i;