From: kdienes Date: Fri, 15 Nov 2002 08:38:38 +0000 (+0000) Subject: 2002-11-15 Klee Dienes X-Git-Tag: cr-0x99~5055 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=da257d7bdc35afa666e4ec50b642c11a9a0fca03;p=pf3gnuchains%2Fpf3gnuchains4x.git 2002-11-15 Klee Dienes * pef.c (bfd_pef_convert_architecture): Move declaration ARCH_POWERPC and ARCH_M68K to the start of the function. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c0889d6881..8b096bc294 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-11-15 Klee Dienes + + * 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 * coff-tic4x.c (tic4x_howto_table): Formatting fixup diff --git a/bfd/pef.c b/bfd/pef.c index 8273045ae6..2f120285ac 100644 --- 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)