From d8e9025191bc7b8ac1ffe28612a9015cd238f5b2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 5 Oct 2016 15:40:11 +1030 Subject: [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. --- gold/sparc.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gold/sparc.cc') 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::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::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::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::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::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; -- cgit v1.1