aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-12-03 15:07:17 +0000
committerNick Clifton <nickc@redhat.com>2003-12-03 15:07:17 +0000
commitf8fc3443814cb6f315680a7fb34ff4effc86442e (patch)
tree135f9d61931a73f10996ca0efded95554e4f48be /gas
parenta46a5b58510c6f92d2296867dfe6fd68871b17b3 (diff)
downloadgdb-f8fc3443814cb6f315680a7fb34ff4effc86442e.zip
gdb-f8fc3443814cb6f315680a7fb34ff4effc86442e.tar.gz
gdb-f8fc3443814cb6f315680a7fb34ff4effc86442e.tar.bz2
Add vax-linux-gnu target
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-vax.c9
-rwxr-xr-xgas/configure10
-rw-r--r--gas/configure.in9
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/vax/vax.exp2
6 files changed, 37 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 502f1bd..634166f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-03 Dave Airlie <airlied@linux.ie>
+
+ * configure.in: Likewise.
+ * configure: Regenerate.
+ * config/tc-vax.c (md_shortopts): Add 'Q'.
+ (md_parse_option): Ignore 'Q' for now.
+
2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
* messages.c: Convert to ISO-C.
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index 4d44302..1e1c128 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -1,5 +1,5 @@
/* tc-vax.c - vax-specific -
- Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, 2002
+ Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -3257,7 +3257,7 @@ md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
#ifdef OBJ_VMS
const char *md_shortopts = "d:STt:V+1h:Hv::";
#elif defined(OBJ_ELF)
-const char *md_shortopts = "d:STt:VkK";
+const char *md_shortopts = "d:STt:VkKQ:";
#else
const char *md_shortopts = "d:STt:V";
#endif
@@ -3333,6 +3333,11 @@ md_parse_option (c, arg)
case 'k':
flag_want_pic = 1;
break; /* -pic, Position Independent Code */
+
+ /* -Qy, -Qn: SVR4 arguments controlling whether a .comment
+ section should be emitted or not. FIXME: Not implemented. */
+ case 'Q':
+ break;
#endif
default:
diff --git a/gas/configure b/gas/configure
index b29a15a..5c08fc6 100755
--- a/gas/configure
+++ b/gas/configure
@@ -4249,7 +4249,14 @@ echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
ppc-*-winnt*) fmt=coff em=pe ;;
- ppc-*-aix5*) fmt=coff em=aix5 ;;
+ ppc-*-aix5.[01]) fmt=coff em=aix5 ;;
+ ppc-*-aix5.*) fmt=coff em=aix5
+
+cat >>confdefs.h <<\_ACEOF
+#define AIX_WEAK_SUPPORT 1
+_ACEOF
+
+ ;;
ppc-*-aix*) fmt=coff ;;
ppc-*-beos*) fmt=coff ;;
ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
@@ -4343,6 +4350,7 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;}
vax-*-netbsdelf*) fmt=elf em=nbsd ;;
vax-*-netbsd*) fmt=aout em=nbsd ;;
vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
+ vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
vax-*-vms) fmt=vms ;;
w65-*-*) fmt=coff ;;
diff --git a/gas/configure.in b/gas/configure.in
index fbf253e..6c266bb 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -404,7 +404,13 @@ changequote([,])dnl
ppc-*-pe | ppc-*-cygwin*) fmt=coff em=pe ;;
ppc-*-winnt*) fmt=coff em=pe ;;
- ppc-*-aix5*) fmt=coff em=aix5 ;;
+changequote(,)dnl
+ ppc-*-aix5.[01]) fmt=coff em=aix5 ;;
+changequote([,])dnl
+ ppc-*-aix5.*) fmt=coff em=aix5
+ AC_DEFINE(AIX_WEAK_SUPPORT, 1,
+ [Define if using AIX 5.2 value for C_WEAKEXT.])
+ ;;
ppc-*-aix*) fmt=coff ;;
ppc-*-beos*) fmt=coff ;;
ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
@@ -491,6 +497,7 @@ changequote([,])dnl
vax-*-netbsdelf*) fmt=elf em=nbsd ;;
vax-*-netbsd*) fmt=aout em=nbsd ;;
vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
+ vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
vax-*-vms) fmt=vms ;;
w65-*-*) fmt=coff ;;
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1f86d49..d3de7c4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-03 Nick Clifton <nickc@redhat.com>
+
+ * gas/vax/vax.exp (do_quad): Treat a vax-*-linux-gnu target as an
+ ELF target.
+
2003-12-01 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* gas/sh/basic.exp: Define ASFLAGS appropriately and don't do
diff --git a/gas/testsuite/gas/vax/vax.exp b/gas/testsuite/gas/vax/vax.exp
index 061036c..f61906c 100644
--- a/gas/testsuite/gas/vax/vax.exp
+++ b/gas/testsuite/gas/vax/vax.exp
@@ -8,7 +8,7 @@ proc do_quad {} {
set x2 0
set x3 0
set file "quad.s"
- if [istarget vax-*-*elf*] {
+ if { [istarget vax-*-*elf*] || [istarget vax-*-linux-gnu*] } then {
set file "quad_elf.s"
}
gas_start $file "-al"