Silence a build-time warning about constant comparisons when building with clang,
authorNick Clifton <nickc@redhat.com>
Wed, 25 Sep 2019 13:34:23 +0000 (14:34 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 25 Sep 2019 13:34:23 +0000 (14:34 +0100)
 * emultempl/avrelf.em (_before_allocation): Silence build warning
 using clang.

ld/ChangeLog
ld/emultempl/avrelf.em

index 0e550d21c23c3567828325ac4e0ca87648226e2a..d38c8614c9b6a3a5b7bb0c889293da59441bbf6a 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-25  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/avrelf.em (_before_allocation): Silence build warning
+       using clang.
+
 2019-09-23  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
index f3d1082287d16cbf1d0c00b8809f1e26a9d01ecd..48675efc2271998a14283fb20283e3941398a1b6 100644 (file)
@@ -77,10 +77,10 @@ avr_elf_${EMULATION_NAME}_before_allocation (void)
       return;
     }
 
-  /* We only need stubs for avr6, avrxmega6, and avrxmega7. */
-  if (strcmp ("${EMULATION_NAME}","avr6")
-      && strcmp ("${EMULATION_NAME}","avrxmega6")
-      && strcmp ("${EMULATION_NAME}","avrxmega7") )
+  /* We only need stubs for avr6, avrxmega6, and avrxmega7.  */
+  if (strcmp ("${EMULATION_NAME}", "avr6") != 0
+      && strcmp ("${EMULATION_NAME}", "avrxmega6") != 0
+      && strcmp ("${EMULATION_NAME}", "avrxmega7") != 0)
     avr_no_stubs = TRUE;
 
   avr_elf_set_global_bfd_parameters ();