aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl/avrelf.em
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-09-25 14:34:23 +0100
committerNick Clifton <nickc@redhat.com>2019-09-25 14:34:23 +0100
commit6ba2ed48c8cb591c1ccac172be7f895f59080cfa (patch)
treeeeef9c66d4672f7c938f3bb57ca4cd4204b3f6ad /ld/emultempl/avrelf.em
parent33637ecac80f24cd2ad59d1e71714d8b5b685898 (diff)
downloadgdb-6ba2ed48c8cb591c1ccac172be7f895f59080cfa.zip
gdb-6ba2ed48c8cb591c1ccac172be7f895f59080cfa.tar.gz
gdb-6ba2ed48c8cb591c1ccac172be7f895f59080cfa.tar.bz2
Silence a build-time warning about constant comparisons when building with clang,
* emultempl/avrelf.em (_before_allocation): Silence build warning using clang.
Diffstat (limited to 'ld/emultempl/avrelf.em')
-rw-r--r--ld/emultempl/avrelf.em8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/emultempl/avrelf.em b/ld/emultempl/avrelf.em
index f3d1082..48675ef 100644
--- a/ld/emultempl/avrelf.em
+++ b/ld/emultempl/avrelf.em
@@ -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 ();