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:
parent
33637ecac8
commit
6ba2ed48c8
|
@ -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
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue