From: Roland McGrath Date: Sat, 20 Jun 2009 00:51:22 +0000 (-0700) Subject: No-op control flow fiddle silences gcc-4.4 -O3 warning. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73d82563966334c1991d65536902fe92d1296559;p=thirdparty%2Felfutils.git No-op control flow fiddle silences gcc-4.4 -O3 warning. --- diff --git a/src/ChangeLog b/src/ChangeLog index f22db3d66..8de130313 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-06-19 Roland McGrath + + * dwarflint.c (abbrev_table_load): No-op control flow fiddle + silences gcc-4.4 -O3 warning. + 2009-04-02 Roland McGrath * Makefile.am (noinst_HEADERS): Add dwarfstrings.h here. diff --git a/src/dwarflint.c b/src/dwarflint.c index b0b8ca7a0..b1a1f7822 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -1735,7 +1735,7 @@ abbrev_table_load (struct read_ctx *ctx) uint64_t prev_abbr_code = (uint64_t)-1; uint64_t zero_seq_off = (uint64_t)-1; - while (!read_ctx_eof (ctx)) + do { abbr_off = read_ctx_get_offset (ctx); where_reset_2 (&where, abbr_off); @@ -1756,11 +1756,11 @@ abbrev_table_load (struct read_ctx *ctx) prev_abbr_code = abbr_code; prev_abbr_off = abbr_off; } + while (!read_ctx_eof (ctx)); if (zero_seq_off != (uint64_t)-1) { - /* Don't report abbrev address, this is section-wide - padding. */ + /* Don't report abbrev address, this is section-wide padding. */ struct where wh = WHERE (where.section, NULL); wr_message_padding_0 (mc_abbrevs | mc_header, &wh, zero_seq_off, abbr_off - 1);