This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove magic constant from gas/tc-hppa.c

I was reading through the gas hppa bits trying to find something for the
hppa64 port and wanted to clean this up.  If these types of patches are
acceptable, I'll probably feed a steady stream of them in.

2006-10-21  Jeff Bailey  <>

        * config/tc-hppa.c: Use defines from bfd.h instead of magic constants.

Jeff Bailey -
Index: tc-hppa.c
RCS file: /cvs/src/src/gas/config/tc-hppa.c,v
retrieving revision 1.132
diff -u -p -r1.132 tc-hppa.c
--- tc-hppa.c	7 Jun 2006 11:27:57 -0000	1.132
+++ tc-hppa.c	21 Oct 2006 17:48:59 -0000
@@ -105,12 +105,6 @@ typedef som_symbol_type obj_symbol_type;
 #endif /* OBJ_SOM */
-#define DEFAULT_LEVEL 25
-#define DEFAULT_LEVEL 10
 /* Various structures and types used internally in tc-hppa.c.  */
 /* Unwind table and descriptor.  FIXME: Sync this with GDB version.  */
@@ -8259,7 +8253,11 @@ md_begin (void)
   call_info_root = NULL;
   /* Set the default machine type.  */
-  if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, DEFAULT_LEVEL))
+  if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, bfd_mach_hppa10))
+  if (!bfd_set_arch_mach (stdoutput, bfd_arch_hppa, bfd_mach_hppa20w))
     as_warn (_("could not set architecture and machine"));
   /* Folding of text and data segments fails miserably on the PA.

Attachment: signature.asc
Description: Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]