summaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2007-04-21 05:15:41 +0000
committerAlan Modra <amodra@bigpond.net.au>2007-04-21 05:15:41 +0000
commit6f9facd68a754543a6856f6a92c83df1344dd89a (patch)
treea6b05d40ae9e396d102f9f42d9abe17e7cd70758 /gas/as.h
parent906d202b2fb5f7ddcf689f172ffb1f53127191aa (diff)
downloadbinutils-redhat-6f9facd68a754543a6856f6a92c83df1344dd89a.tar.gz
* as.h (ENABLE_CHECKING): Default define to 0.
(know): Assert if ENABLE_CHECKING. (struct relax_type): Remove superfluous declaration. * configure.in (--enable-checking): New. * configure: Regenerate. * config.in: Regenerate. * config/tc-ppc.c (ppc_setup_opcodes): Do checks when ENABLE_CHECKING. Check for duplicate powerpc_operands entries.
Diffstat (limited to 'gas/as.h')
-rw-r--r--gas/as.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/as.h b/gas/as.h
index e73180b190..4ea63abeea 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -258,7 +258,11 @@ typedef addressT valueT;
#endif
/* COMMON now defined */
-#ifdef DEBUG
+#ifndef ENABLE_CHECKING
+#define ENABLE_CHECKING 0
+#endif
+
+#if ENABLE_CHECKING || defined (DEBUG)
#ifndef know
#define know(p) assert(p) /* Verify our assumptions! */
#endif /* not yet defined */
@@ -566,7 +570,6 @@ segT subseg_get (const char *, int);
struct expressionS;
struct fix;
typedef struct symbol symbolS;
-struct relax_type;
typedef struct frag fragS;
/* literal.c */