Silence a build-time warning about constant comparisons when building with clang,

* emultempl/avrelf.em (_before_allocation): Silence build warning
 using clang.
This commit is contained in:
Nick Clifton 2019-09-25 14:34:23 +01:00
parent 33637ecac8
commit 6ba2ed48c8
2 changed files with 9 additions and 4 deletions

View 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

View 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 ();