From: Hans-Peter Nilsson Date: Tue, 1 Feb 2005 03:27:59 +0000 (+0000) Subject: * cpu-cris.c (get_compatible): Rearrange disabled code and comment X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6de7f4242e824f6a71ffdc6429b2379813e6b67f;p=pf3gnuchains%2Fpf3gnuchains3x.git * cpu-cris.c (get_compatible): Rearrange disabled code and comment for clarity. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fd043090e0..e4ecd4ae28 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-02-01 Hans-Peter Nilsson + + * cpu-cris.c (get_compatible): Rearrange disabled code and comment + for clarity. + 2005-02-01 Alan Modra * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup.. diff --git a/bfd/cpu-cris.c b/bfd/cpu-cris.c index 67bc861202..884b2c947a 100644 --- a/bfd/cpu-cris.c +++ b/bfd/cpu-cris.c @@ -45,7 +45,9 @@ get_compatible (a,b) if (b->mach == bfd_mach_cris_v10_v32) return a; - /* See ldlang.c:lang_check. Quite illogically, incompatible arches +#if 0 + /* The code below is disabled but kept as a warning. + See ldlang.c:lang_check. Quite illogically, incompatible arches (as signalled by this function) are only *warned* about, while with this function signalling compatible ones, we can have the cris_elf_merge_private_bfd_data function return an error. This is @@ -56,12 +58,9 @@ get_compatible (a,b) pretending matching machs here. */ /* Except for the compatible mach, machs must match. */ - - /* - This code is disabled but kept as a warning: - if (a->mach != b->mach) - return NULL; - */ + if (a->mach != b->mach) + return NULL; +#endif return a; }