diff options
author | Alan Modra <amodra@gmail.com> | 2016-10-05 18:17:02 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-10-06 10:13:15 +1030 |
commit | 1a0670f37442b7ae904932b347353046126b990c (patch) | |
tree | 0dbc69b209e149bff9e8ec0a44eefb866369a750 /bfd/elf32-ppc.c | |
parent | 1e0f0b4d0191263e35d81a3670d56bf639be274a (diff) | |
download | gdb-1a0670f37442b7ae904932b347353046126b990c.zip gdb-1a0670f37442b7ae904932b347353046126b990c.tar.gz gdb-1a0670f37442b7ae904932b347353046126b990c.tar.bz2 |
-Wimplicit-fallthrough warning fixes
Comment changes.
bfd/
* coff-h8300.c: Spell fall through comments consistently.
* coffgen.c: Likewise.
* elf32-hppa.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-score.c: Likewise.
* elf32-score7.c: Likewise.
* elf64-ppc.c: Likewise.
* elfxx-aarch64.c: Likewise.
* elfxx-mips.c: Likewise.
* cpu-ns32k.c: Add missing fall through comments.
* elf-m10300.c: Likewise.
* elf32-arm.c: Likewise.
* elf32-avr.c: Likewise.
* elf32-bfin.c: Likewise.
* elf32-frv.c: Likewise.
* elf32-i386.c: Likewise.
* elf32-microblaze.c: Likewise.
* elf32-nds32.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-rl78.c: Likewise.
* elf32-rx.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-tic6x.c: Likewise.
* elf64-ia64-vms.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
* elf64-x86-64.c: Likewise.
* elflink.c: Likewise.
* elfnn-aarch64.c: Likewise.
* elfnn-ia64.c: Likewise.
* ieee.c: Likewise.
* oasys.c: Likewise.
* pdp11.c: Likewise.
* srec.c: Likewise.
* versados.c: Likewise.
opcodes/
* aarch64-opc.c: Spell fall through comments consistently.
* i386-dis.c: Likewise.
* aarch64-dis.c: Add missing fall through comments.
* aarch64-opc.c: Likewise.
* arc-dis.c: Likewise.
* arm-dis.c: Likewise.
* i386-dis.c: Likewise.
* m68k-dis.c: Likewise.
* mep-asm.c: Likewise.
* ns32k-dis.c: Likewise.
* sh-dis.c: Likewise.
* tic4x-dis.c: Likewise.
* tic6x-dis.c: Likewise.
* vax-dis.c: Likewise.
binutils/
* dlltool.c: Spell fall through comments consistently.
* objcopy.c: Likewise.
* readelf.c: Likewise.
* dwarf.c: Add missing fall through comments.
* elfcomm.c: Likewise.
* sysinfo.y: Likewise.
* readelf.c: Likewise. Also remove extraneous comments.
gas/
* app.c: Add missing fall through comments.
* dw2gencfi.c: Likewise.
* expr.c: Likewise.
* config/tc-alpha.c: Likewise.
* config/tc-arc.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-cr16.c: Likewise.
* config/tc-crx.c: Likewise.
* config/tc-dlx.c: Likewise.
* config/tc-h8300.c: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i370.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-mep.c: Likewise.
* config/tc-metag.c: Likewise.
* config/tc-microblaze.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-rx.c: Likewise.
* config/tc-score.c: Likewise.
* config/tc-score7.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-xstormy16.c: Likewise.
* config/tc-z80.c: Likewise.
* config/tc-z8k.c: Likewise.
* config/obj-elf.c: Likewise.
* config/tc-i386.c: Likewise.
* depend.c: Spell fall through comments consistently.
* config/tc-arm.c: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mep.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-visium.c: Likewise.
* config/tc-xstormy16.c: Likewise.
* config/tc-z8k.c: Likewise.
gprof/
* gprof.c: Add missing fall through comments.
ld/
* lexsup.c: Spell fall through comments consistently and add
missing fall through comments.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index f631b27..627bff5 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4160,7 +4160,7 @@ ppc_elf_check_relocs (bfd *abfd, tls_type = TLS_TLS | TLS_DTPREL; dogottls: sec->has_tls_reloc = 1; - /* Fall thru */ + /* Fall through. */ /* GOT16 relocations */ case R_PPC_GOT16: @@ -4232,7 +4232,7 @@ ppc_elf_check_relocs (bfd *abfd, case R_PPC_SDAREL16: htab->sdata[0].sym->ref_regular = 1; - /* Fall thru */ + /* Fall through. */ case R_PPC_VLE_SDAREL_LO16A: case R_PPC_VLE_SDAREL_LO16D: @@ -5167,7 +5167,7 @@ ppc_elf_gc_sweep_hook (bfd *abfd, case R_PPC_REL32: if (h == NULL || h == htab->elf.hgot) break; - /* Fall thru */ + /* Fall through. */ case R_PPC_ADDR32: case R_PPC_ADDR24: @@ -5182,6 +5182,7 @@ ppc_elf_gc_sweep_hook (bfd *abfd, case R_PPC_UADDR16: if (bfd_link_pic (info)) break; + /* Fall through. */ case R_PPC_PLT32: case R_PPC_PLTREL24: @@ -5409,7 +5410,7 @@ ppc_elf_tls_optimize (bfd *obfd ATTRIBUTE_UNUSED, case R_PPC_GOT_TLSLD16: case R_PPC_GOT_TLSLD16_LO: expecting_tls_get_addr = 1; - /* Fall thru */ + /* Fall through. */ case R_PPC_GOT_TLSLD16_HI: case R_PPC_GOT_TLSLD16_HA: @@ -5427,7 +5428,7 @@ ppc_elf_tls_optimize (bfd *obfd ATTRIBUTE_UNUSED, case R_PPC_GOT_TLSGD16: case R_PPC_GOT_TLSGD16_LO: expecting_tls_get_addr = 1; - /* Fall thru */ + /* Fall through. */ case R_PPC_GOT_TLSGD16_HI: case R_PPC_GOT_TLSGD16_HA: @@ -8154,7 +8155,7 @@ ppc_elf_relocate_section (bfd *output_bfd, case R_PPC_ADDR14_BRTAKEN: case R_PPC_REL14_BRTAKEN: branch_bit = BRANCH_PREDICT_BIT; - /* Fall thru */ + /* Fall through. */ /* Branch not taken prediction relocations. */ case R_PPC_ADDR14_BRNTAKEN: @@ -8978,7 +8979,7 @@ ppc_elf_relocate_section (bfd *output_bfd, + htab->plt->output_offset + ent->plt.offset); } - /* Fall thru */ + /* Fall through. */ case R_PPC_RELAX: { @@ -9480,7 +9481,7 @@ ppc_elf_relocate_section (bfd *output_bfd, alone (it will be set to zero elsewhere in the link). */ if (sec == NULL) break; - /* Fall thru */ + /* Fall through. */ case R_PPC_PLT16_HA: case R_PPC_GOT16_HA: |