aboutsummaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1991-11-26 02:15:13 +0000
committerSteve Chamberlain <sac@cygnus>1991-11-26 02:15:13 +0000
commitace68c4ed92c1d7820a3bda5d78f56a5a34932c2 (patch)
tree222f709334f5834961c01a2f754ea3c1ecc496b1 /gas/as.h
parent605fe2b1b0f21095057f3869e632424ba92b4c84 (diff)
downloadgdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.zip
gdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.tar.gz
gdb-ace68c4ed92c1d7820a3bda5d78f56a5a34932c2.tar.bz2
Mon Nov 25 17:26:22 1991 Steve Chamberlain (sac at cygnus.com)
* as.c: (perform_an_assembly_pass): moved declaration of i to avoid a syntax error. Now always create the three default sections when in MANY_SEGMENTS mode. * as.h: New improved way of specifying MANY_SEGMENTS * configure.in: hds object format is now coff-bfd * subsegs.h: add line numbers and section stuff to the segment_info structure. (But go back later and fix.. this is COFF specific)
Diffstat (limited to 'gas/as.h')
-rw-r--r--gas/as.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gas/as.h b/gas/as.h
index 84c963a..fd1946f 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -93,7 +93,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef DEBUG
#undef NDEBUG
+#ifndef know
#define know(p) assert(p) /* Verify our assumptions! */
+#endif /* not yet defined */
#else
#define know(p) /* know() checks are no-op.ed */
#endif
@@ -140,22 +142,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
* X_add_symbol != X_sub_symbol (then we just cancel them, => SEG_ABSOLUTE).
*/
+
#ifdef MANY_SEGMENTS
+#define N_SEGMENTS 10
#define SEG_NORMAL(x) ((x) >= SEG_E0 && (x) <= SEG_E9)
+#define SEG_LIST SEG_E0,SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9
#else
+#define N_SEGMENTS 3
#define SEG_NORMAL(x) ((x) == SEG_TEXT || (x) == SEG_DATA || (x) == SEG_BSS)
+#define SEG_LIST SEG_TEXT,SEG_DATA,SEG_BSS
#endif
typedef enum _segT {
SEG_ABSOLUTE = 0,
-#ifdef MANY_SEGMENTS
- /* For the moment, we allow only 10 extra segments to be specified by the user */
- SEG_E0, SEG_E1,SEG_E2,SEG_E3,SEG_E4,SEG_E5,SEG_E6,SEG_E7,SEG_E8,SEG_E9,
-#else
- SEG_TEXT,
- SEG_DATA,
- SEG_BSS,
-#endif
+ SEG_LIST,
SEG_UNKNOWN,
SEG_ABSENT, /* Mythical Segment (absent): NO expression seen. */
SEG_PASS1, /* Mythical Segment: Need another pass. */