summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c')
-rw-r--r--gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c b/gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c
index 10a1411b526..98381de3e31 100644
--- a/gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c
+++ b/gnu/usr.bin/binutils-2.17/gas/config/tc-sparc.c
@@ -306,7 +306,7 @@ sparc_target_format ()
init_default_arch ();
#ifdef OBJ_AOUT
-#ifdef TE_NetBSD
+#if defined(TE_NetBSD) || defined(TE_OpenBSD)
return "a.out-sparc-netbsd";
#else
#ifdef TE_SPARCAOUT
@@ -2197,12 +2197,14 @@ sparc_ip (str, pinsn)
{
if (SPARC_OPCODE_ARCH_V9_P (max_architecture))
{
+#if !defined(TE_OpenBSD)
if (*args == 'e' || *args == 'f' || *args == 'g')
{
error_message
= _(": There are only 32 single precision f registers; [0-31]");
goto error;
}
+#endif
v9_arg_p = 1;
mask -= 31; /* wrap high bit */
}