aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-06 15:54:38 +1030
committerAlan Modra <amodra@gmail.com>2016-10-06 22:48:14 +1030
commitc25aa1e114af2be29bb8b69641673ec2baa8c6bd (patch)
tree03cd209e1f1fcf49b934af58b51398e6c977b939
parent4a556533cf0256613c412b9627fa8b8edfa7674a (diff)
downloadgdb-c25aa1e114af2be29bb8b69641673ec2baa8c6bd.zip
gdb-c25aa1e114af2be29bb8b69641673ec2baa8c6bd.tar.gz
gdb-c25aa1e114af2be29bb8b69641673ec2baa8c6bd.tar.bz2
[GOLD] two more fall-through comments
* powerpc.cc (Target_powerpc::Relocate::relocate): Add fall through comment. * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
-rw-r--r--gold/ChangeLog6
-rw-r--r--gold/powerpc.cc1
-rw-r--r--gold/tilegx.cc6
3 files changed, 9 insertions, 4 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 8b917b5..ae86f66 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,11 @@
2016-10-06 Alan Modra <amodra@gmail.com>
+ * powerpc.cc (Target_powerpc::Relocate::relocate): Add fall
+ through comment.
+ * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
+
+2016-10-06 Alan Modra <amodra@gmail.com>
+
* aarch64.cc: Spell fall through comments as "// Fall through.".
* arm.cc: Likewise.
* mips.cc: Likewise.
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index d286f70..1e95d5b 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -8007,6 +8007,7 @@ Target_powerpc<size, big_endian>::Relocate::relocate(
maybe_dq_reloc = true;
break;
}
+ // Fall through.
case elfcpp::R_POWERPC_ADDR16:
case elfcpp::R_POWERPC_REL16:
case elfcpp::R_PPC64_TOC16:
diff --git a/gold/tilegx.cc b/gold/tilegx.cc
index ee262d1..03b1a50 100644
--- a/gold/tilegx.cc
+++ b/gold/tilegx.cc
@@ -4649,10 +4649,8 @@ Target_tilegx<size, big_endian>::Relocate::relocate(
} // else if (opt_t == tls::TLSOPT_TO_LE)
// both GD/IE are turned into LE, which
// is absolute relocation.
- //
- // | go through
- // |
- // V
+ // Fall through.
+
// LE
//
// tp