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/sparc.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/sparc.cc')
-rw-r--r-- | gold/sparc.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gold/sparc.cc b/gold/sparc.cc index 8e66b77..eb8b40c 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -2305,7 +2305,7 @@ Target_sparc<size, big_endian>::Scan::local( reloc.get_r_addend(), is_ifunc); break; } - /* Fall through. */ + // Fall through. case elfcpp::R_SPARC_HIX22: case elfcpp::R_SPARC_LOX10: @@ -2815,6 +2815,7 @@ Target_sparc<size, big_endian>::Scan::global( // and code transform the GOT load into an addition. break; } + // Fall through. case elfcpp::R_SPARC_GOT10: case elfcpp::R_SPARC_GOT13: case elfcpp::R_SPARC_GOT22: @@ -3354,6 +3355,7 @@ Target_sparc<size, big_endian>::Relocate::relocate( gdop_valid = true; break; } + // Fall through. case elfcpp::R_SPARC_GOT10: case elfcpp::R_SPARC_GOT13: case elfcpp::R_SPARC_GOT22: @@ -3475,7 +3477,7 @@ Target_sparc<size, big_endian>::Relocate::relocate( Reloc::gdop_lox10(view, got_offset); break; } - /* Fall through. */ + // Fall through. case elfcpp::R_SPARC_GOT10: Reloc::lo10(view, got_offset, addend); break; @@ -3504,7 +3506,7 @@ Target_sparc<size, big_endian>::Relocate::relocate( Reloc::gdop_hix22(view, got_offset); break; } - /* Fall through. */ + // Fall through. case elfcpp::R_SPARC_GOT22: Reloc::hi22(view, got_offset, addend); break; |