]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
No-op control flow fiddle silences gcc-4.4 -O3 warning.
authorRoland McGrath <roland@redhat.com>
Sat, 20 Jun 2009 00:51:22 +0000 (17:51 -0700)
committerRoland McGrath <roland@redhat.com>
Sat, 20 Jun 2009 00:51:22 +0000 (17:51 -0700)
src/ChangeLog
src/dwarflint.c

index f22db3d66f5de7296cbaeb2511e42176fb644883..8de130313eeb0db26434461f6686a05f1954dc47 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-19  Roland McGrath  <roland@redhat.com>
+
+       * dwarflint.c (abbrev_table_load): No-op control flow fiddle
+       silences gcc-4.4 -O3 warning.
+
 2009-04-02  Roland McGrath  <roland@redhat.com>
 
        * Makefile.am (noinst_HEADERS): Add dwarfstrings.h here.
index b0b8ca7a0b7b9c5e959ed0b01afb65a2440ea67f..b1a1f782268ed4818b2dded897f1926b3f27d96d 100644 (file)
@@ -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);