aboutsummaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-04-21 05:15:41 +0000
committerAlan Modra <amodra@gmail.com>2007-04-21 05:15:41 +0000
commitc43a438d5eb0a2e19397a4c0fb51ce3a68ed1503 (patch)
tree3dd24ccc5105a905d362369120b9c118e42752a0 /gas/as.h
parent717bbdf18106a202656b1f34c03b02f52b84a849 (diff)
downloadgdb-c43a438d5eb0a2e19397a4c0fb51ce3a68ed1503.zip
gdb-c43a438d5eb0a2e19397a4c0fb51ce3a68ed1503.tar.gz
gdb-c43a438d5eb0a2e19397a4c0fb51ce3a68ed1503.tar.bz2
* 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 e73180b..4ea63ab 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 */