This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Target word and hword sizes
- To: binutils at sources dot redhat dot com
- Subject: Target word and hword sizes
- From: Harshad R Joglekar <harshad dot joglekar at wipro dot com>
- Date: Mon, 06 Aug 2001 12:45:52 +0530
- CC: harshad dot joglekar at wipro dot com
- Organization: Wipro
Hi,
This patch will allow configuration of a target's word sizes. One can
define TC_WORD_SIZE, and TC_HWORD_SIZE to the required values.
If the patch is ok, can someone please apply it.
regards,
Harshad
2001-08-06 Harshad RJ <harshad.joglekar@wipro.com>
* gas/read.c: Allow configuration of target word and hword
sizes.
Index: read.c
===================================================================
RCS file: /src/binutils/gas/read.c,v
retrieving revision 1.1.1.1
diff -u -B -r1.1.1.1 read.c
--- read.c 24 Jul 2001 15:59:46 -0000 1.1.1.1
+++ read.c 6 Aug 2001 12:30:52 -0000
@@ -334,7 +334,11 @@
{"func", s_func, 0},
{"global", s_globl, 0},
{"globl", s_globl, 0},
+#ifdef TC_HWORD_SIZE
+ {"hword", cons, TC_HWORD_SIZE},
+#else
{"hword", cons, 2},
+#endif /* TC_HWORD_SIZE */
{"if", s_if, (int) O_ne},
{"ifc", s_ifc, 0},
{"ifdef", s_ifdef, 0},
@@ -424,7 +428,11 @@
{"xdef", s_globl, 0},
{"xref", s_ignore, 0},
{"xstabs", s_xstab, 's'},
+#ifdef TC_WORD_SIZE
+ {"word", cons, TC_WORD_SIZE},
+#else
{"word", cons, 2},
+#endif /* TC_WORD_SIZE */
{"zero", s_space, 0},
{NULL, NULL, 0} /* End sentinel. */
};
The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for use only by the individual or entity to which
it is addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If this is a forwarded message,
the content of this E-MAIL may not have been sent with the authority of the
Company. If you are not the intended recipient, an agent of the intended
recipient or a person responsible for delivering the information to the named
recipient, you are notified that any use, distribution, transmission, printing,
copying or dissemination of this information in any way or in any manner is
strictly prohibited. If you have received this communication in error, please
delete this mail & notify us immediately at mailadmin@wipro.com