2002-11-15 Klee Dienes <kdienes@apple.com>
authorKlee Dienes <kdienes@apple.com>
Fri, 15 Nov 2002 08:38:38 +0000 (08:38 +0000)
committerKlee Dienes <kdienes@apple.com>
Fri, 15 Nov 2002 08:38:38 +0000 (08:38 +0000)
        * pef.c (bfd_pef_convert_architecture): Move declaration
        ARCH_POWERPC and ARCH_M68K to the start of the function.

bfd/ChangeLog
bfd/pef.c

index c0889d6881de21209ab4c12f52cd3eb9dcc15366..8b096bc294754796c0418c057338d36f5d4ede9f 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-15  Klee Dienes  <kdienes@apple.com>
+
+       * pef.c (bfd_pef_convert_architecture): Move declaration of
+       ARCH_POWERPC and ARCH_M68K to the start of the function.
+
 2002-11-14  Svein E. Seldal  <Svein.Seldal@solidas.com>
 
        * coff-tic4x.c (tic4x_howto_table): Formatting fixup
index 8273045ae6f041b13067cd8519300bacaec2865f..2f120285ace8b10f70e1cee41ee8ac45f8c20c50 100644 (file)
--- a/bfd/pef.c
+++ b/bfd/pef.c
@@ -142,12 +142,12 @@ bfd_pef_convert_architecture (architecture, type, subtype)
      enum bfd_architecture *type;
      unsigned long *subtype;
 {
-  *subtype = bfd_arch_unknown;
-  *type = bfd_arch_unknown;
-
   const unsigned long ARCH_POWERPC = 0x70777063; /* 'pwpc' */
   const unsigned long ARCH_M68K = 0x6d36386b; /* 'm68k' */
 
+  *subtype = bfd_arch_unknown;
+  *type = bfd_arch_unknown;
+
   if (architecture == ARCH_POWERPC)
     *type = bfd_arch_powerpc;
   else if (architecture == ARCH_M68K)