]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Default hppa64 to ".level 2.0w"
authorAlan Modra <amodra@gmail.com>
Wed, 28 Mar 2001 14:18:02 +0000 (14:18 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Mar 2001 14:18:02 +0000 (14:18 +0000)
gas/ChangeLog
gas/config/tc-hppa.c

index 8f3af66c1ce20265402bbdbe1217a1ca26a764ba..555748a2cbd4bebe310092507e44b6d5ab6b8f8c 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-28  Alan Modra  <alan@linuxcare.com.au>
+
+       * config/tc-hppa.c (DEFAULT_LEVEL): Define.
+       (md_begin): Use it when setting default architecture.
+
 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
 
        * configure.in (cris-*-*): Change default emulation to criself.
index e2905ecce470f7cf0cd34b70ea9f7ad6e192f6a6..fe877cbd6505313aabb61354a311086c68ae0b52 100644 (file)
@@ -1,5 +1,5 @@
 /* tc-hppa.c -- Assemble for the PA
-   Copyright 1989, 93, 94, 95, 96, 97, 98, 99, 2000, 2001
+   Copyright 1989, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -105,6 +105,12 @@ typedef som_symbol_type obj_symbol_type;
 #endif
 #endif /* OBJ_SOM */
 
+#if TARGET_ARCH_SIZE == 64
+#define DEFAULT_LEVEL 25
+#else
+#define DEFAULT_LEVEL 10
+#endif
+
 /* Various structures and types used internally in tc-hppa.c.  */
 
 /* Unwind table and descriptor.  FIXME: Sync this with GDB version.  */
@@ -1393,7 +1399,7 @@ md_begin ()
   call_info_root = NULL;
 
   /* Set the default machine type.  */
-  if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, 10))
+  if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, DEFAULT_LEVEL))
     as_warn (_("could not set architecture and machine"));
 
   /* Folding of text and data segments fails miserably on the PA.