Default hppa64 to ".level 2.0w"
authorAlan Modra <amodra@gmail.com>
Wed, 28 Mar 2001 14:13:46 +0000 (14:13 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Mar 2001 14:13:46 +0000 (14:13 +0000)
gas/ChangeLog
gas/config/tc-hppa.c

index 5cf81750c2ee433c1c5f3c3c740cc17eb6c7d1c3..6ae757f023f0796a92cc184cf2b17cb9ca20c049 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  Nick Papadonis  <nick@coelacanth.com>
 
        * read.c (equals): (for COFF) default symbols to being local.
@@ -83,7 +88,7 @@
        (TC_RELOC_RTSYM_LOC_FIXUP): Define.
        (tc_fix_adjustable): Don't adjust a globally visible symbol when
        generating ELF.
-       (tc_frob_symbol): Avoid emitting undefined symbols. 
+       (tc_frob_symbol): Avoid emitting undefined symbols.
 
 2001-03-20  Alan Modra  <alan@linuxcare.com.au>
 
index a293b9e75b4114375135c1273268fa355a3f70ec..fe877cbd6505313aabb61354a311086c68ae0b52 100644 (file)
@@ -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.
This page took 0.031629 seconds and 4 git commands to generate.