aboutsummaryrefslogtreecommitdiff
path: root/gold/tilegx.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-05 15:40:11 +1030
committerAlan Modra <amodra@gmail.com>2016-10-06 09:36:33 +1030
commitd8e9025191bc7b8ac1ffe28612a9015cd238f5b2 (patch)
tree0ac93fa28b46671bd9b5e960477820b5b01bafa6 /gold/tilegx.cc
parent95e61695c199a07c832153cea25ae9c331d16a3c (diff)
downloadgdb-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/tilegx.cc')
-rw-r--r--gold/tilegx.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/tilegx.cc b/gold/tilegx.cc
index bb17330..ee262d1 100644
--- a/gold/tilegx.cc
+++ b/gold/tilegx.cc
@@ -4428,6 +4428,7 @@ Target_tilegx<size, big_endian>::Relocate::relocate(
psymval = &symval;
always_apply_relocation = true;
addend = 0;
+ // Fall through.
// when under PIC mode, these relocations are deferred to rtld
case elfcpp::R_TILEGX_IMM16_X0_HW0:
@@ -4618,6 +4619,7 @@ Target_tilegx<size, big_endian>::Relocate::relocate(
got_type = GOT_TYPE_TLS_OFFSET;
have_got_offset = true;
}
+ // Fall through.
do_update_value:
if (have_got_offset) {
if (gsym != NULL) {