aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-kvx.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-kvx.c')
-rw-r--r--gas/config/tc-kvx.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/gas/config/tc-kvx.c b/gas/config/tc-kvx.c
index b864b95..e0860c0 100644
--- a/gas/config/tc-kvx.c
+++ b/gas/config/tc-kvx.c
@@ -2107,21 +2107,13 @@ kvx_check_label (symbolS *sym)
void
kvx_emit_single_noop (void)
{
- char *nop;
- char *end_of_bundle;
-
- if (asprintf (&nop, "nop") < 0)
- as_fatal ("%s", xstrerror (errno));
-
- if (asprintf (&end_of_bundle, "be") < 0)
- as_fatal ("%s", xstrerror (errno));
+ char nop[] = "nop";
+ char end_of_bundle[] = "be";
char *saved_ilp = input_line_pointer;
md_assemble (nop);
md_assemble (end_of_bundle);
input_line_pointer = saved_ilp;
- free (nop);
- free (end_of_bundle);
}
/* edit out some syntactic sugar that confuses GAS */