aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-10 13:58:05 +0000
committerAlan Modra <amodra@gmail.com>2004-10-10 13:58:05 +0000
commitf12123c0d5ef931a2617b4b3bdb877556133c206 (patch)
tree483f9e7ea7bae9cb116dc8214e156ba7a620b295 /bfd/libbfd-in.h
parent3472e2e9990e20e2ab0b3326ee7a4c87acd3d715 (diff)
downloadgdb-f12123c0d5ef931a2617b4b3bdb877556133c206.zip
gdb-f12123c0d5ef931a2617b4b3bdb877556133c206.tar.gz
gdb-f12123c0d5ef931a2617b4b3bdb877556133c206.tar.bz2
* libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
* libbfd.h: Regnerate. * elf32-cris.c: Add missing semicolon to BFD_ASSERTs. * elf32-frv.c: Likewise. * elf32-m32r.c: Likewise. * elf32-ppc.c: Likewise. * elf64-hppa.c: Likewise. * elfxx-ia64.c: Likewise. * opncls.c: Likewise.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 95399dc..86e6942 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -595,10 +595,10 @@ void bfd_assert
(const char*,int);
#define BFD_ASSERT(x) \
- { if (!(x)) bfd_assert(__FILE__,__LINE__); }
+ do { if (!(x)) bfd_assert(__FILE__,__LINE__); } while (0)
#define BFD_FAIL() \
- { bfd_assert(__FILE__,__LINE__); }
+ do { bfd_assert(__FILE__,__LINE__); } while (0)
extern void _bfd_abort
(const char *, int, const char *) ATTRIBUTE_NORETURN;