From 50e8458f68f42c3f46ef5ea265a1162ab9fb7648 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 9 Jan 2008 01:24:07 +0000 Subject: [PATCH] 2008-01-08 H.J. Lu * i386-gen.c (set_bitfield): Use fail () on error. --- opcodes/ChangeLog | 4 ++++ opcodes/i386-gen.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 8db2966c0f8..5afdccfb91a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2008-01-08 H.J. Lu + + * i386-gen.c (set_bitfield): Use fail () on error. + 2008-01-08 H.J. Lu * i386-gen.c (lineno): New. diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 1db96603563..d7e3d16f69b 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -451,9 +451,7 @@ set_bitfield (const char *f, bitfield *array, unsigned int size) return; } - printf ("%s: %d: Unknown bitfield: %s\n", - filename, lineno, f); - abort (); + fail (_("%s: %d: Unknown bitfield: %s\n"), filename, lineno, f); } static void -- 2.30.2