[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [address@hidden: src/gas/testsuite ChangeLog gas/i386/divide.d ...]
From: |
Alan Modra |
Subject: |
Re: [address@hidden: src/gas/testsuite ChangeLog gas/i386/divide.d ...] |
Date: |
Wed, 16 Nov 2005 14:14:20 +1030 |
User-agent: |
Mutt/1.4i |
On Tue, Nov 08, 2005 at 11:40:29PM +0100, Alfred M. Szmidt wrote:
> > > On i586-pc-gnu, '/' anywhere on the line starts a comment.
> > > This is because the original x86 sysv assembler used '/' to
> > > start comments. In mid 1998, I changed this for the linux
> > > version of x86 gas, so that '/' could be used in expressions as
> > > a divide operator. Other flavours of x86 gas have followed
> > > suit since then.
> >
> > Could you please bring that in sync for us as well?
>
> I can if you are sure you want it. It will of course break any
> assembly source you have that happens to use / to start comments
> anywhere except the first column.
>
> Please make the change. There is no really good reason why we should
> differ from GNU/Linux in this regard. And if anything breaks, it will
> be fixed.
Applied.
* configure.tgt (i386-*-gnu*): Set em=gnu.
* config/te-gnu.h: New file.
* config/tc-i386.c: Don't use '/' as comment char for TE_GNU.
Index: gas/configure.tgt
===================================================================
RCS file: /cvs/src/src/gas/configure.tgt,v
retrieving revision 1.20
diff -u -p -r1.20 configure.tgt
--- gas/configure.tgt 25 Oct 2005 17:40:17 -0000 1.20
+++ gas/configure.tgt 16 Nov 2005 01:50:31 -0000
@@ -202,7 +202,7 @@ case ${generic_target} in
i386-*-msdosdjgpp* \
| i386-*-go32*) fmt=coff em=go32 ;;
i386-*-rtems*) fmt=elf ;;
- i386-*-gnu*) fmt=elf ;;
+ i386-*-gnu*) fmt=elf em=gnu ;;
i386-*-mach*) fmt=aout em=mach ;;
i386-*-msdos*) fmt=aout ;;
i386-*-moss*) fmt=elf ;;
Index: gas/config/tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.202
diff -u -p -r1.202 tc-i386.c
--- gas/config/tc-i386.c 10 Nov 2005 16:06:27 -0000 1.202
+++ gas/config/tc-i386.c 16 Nov 2005 01:50:35 -0000
@@ -198,6 +198,7 @@ const char extra_symbol_chars[] = "*%-([
#if (defined (TE_I386AIX) \
|| ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
+ && !defined (TE_GNU) \
&& !defined (TE_LINUX) \
&& !defined (TE_NETWARE) \
&& !defined (TE_FreeBSD) \
Index: gas/config/te-gnu.h
===================================================================
RCS file: gas/config/te-gnu.h
diff -N gas/config/te-gnu.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gas/config/te-gnu.h 16 Nov 2005 01:50:35 -0000
@@ -0,0 +1,4 @@
+#define TE_GNU
+#define LOCAL_LABELS_FB 1
+
+#include "obj-format.h"
--
Alan Modra
IBM OzLabs - Linux Technology Centre