diff options
author | Alan Modra <amodra@gmail.com> | 2016-10-05 15:40:11 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-10-06 09:36:33 +1030 |
commit | d8e9025191bc7b8ac1ffe28612a9015cd238f5b2 (patch) | |
tree | 0ac93fa28b46671bd9b5e960477820b5b01bafa6 /gold/mips.cc | |
parent | 95e61695c199a07c832153cea25ae9c331d16a3c (diff) | |
download | gdb-d8e9025191bc7b8ac1ffe28612a9015cd238f5b2.zip gdb-d8e9025191bc7b8ac1ffe28612a9015cd238f5b2.tar.gz gdb-d8e9025191bc7b8ac1ffe28612a9015cd238f5b2.tar.bz2 |
[GOLD] -Wimplicit-fallthrough warning fixes
* aarch64.cc: Spell fall through comments as "// Fall through.".
* arm.cc: Likewise.
* mips.cc: Likewise.
* powerpc.cc: Likewise.
* s390.cc: Likewise.
* sparc.cc: Likewise.
* x86_64.cc: Likewise.
* powerpc.cc (Target_powerpc::Relocate::relocate): Add missing
fall through comments.
* sparc.cc: (Target_sparc::Scan::global): Likewise.
(Target_sparc::Relocate::relocate): Likewise.
* tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
* resolve.cc (symbol_to_bits): Add missing break.
Diffstat (limited to 'gold/mips.cc')
-rw-r--r-- | gold/mips.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gold/mips.cc b/gold/mips.cc index 8893e31..61b3513 100644 --- a/gold/mips.cc +++ b/gold/mips.cc @@ -10673,8 +10673,7 @@ Target_mips<size, big_endian>::Scan::local( // no symbol (e.g. part of a compound relocation). if (r_sym == 0) break; - - // FALLTHROUGH + // Fall through. case elfcpp::R_MIPS16_26: case elfcpp::R_MIPS_26: @@ -10903,7 +10902,6 @@ Target_mips<size, big_endian>::Scan::global( // Most static relocations require pointer equality, except // for branches. mips_sym->set_pointer_equality_needed(); - // Fall through. case elfcpp::R_MIPS_26: @@ -11183,8 +11181,7 @@ Target_mips<size, big_endian>::Scan::global( // and has a special meaning. if (!mips_obj->is_newabi() && strcmp(gsym->name(), "_gp_disp") == 0) break; - - // FALLTHROUGH + // Fall through. case elfcpp::R_MIPS16_26: case elfcpp::R_MIPS_26: |