Commit 1d536046 by Kai Tietz Committed by Kai Tietz

lto.c (lto_resolution_read): Pre-initialize local variable r.

2010-06-09  Kai Tietz  <kai.tietz@onevision.com>

        * lto.c (lto_resolution_read):  Pre-initialize local variable r.
        * lto-coff.c (coff_write_object_file): Add braces to if.

From-SVN: r160475
parent 2bc0a660
2010-06-09 Kai Tietz <kai.tietz@onevision.com>
* lto.c (lto_resolution_read): Pre-initialize local variable r.
* lto-coff.c (coff_write_object_file): Add braces to if.
2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* lto.c (lto_read_in_decl_state): Use typed GC allocation. * lto.c (lto_read_in_decl_state): Use typed GC allocation.
......
...@@ -770,12 +770,14 @@ coff_write_object_file (lto_coff_file *coff_file) ...@@ -770,12 +770,14 @@ coff_write_object_file (lto_coff_file *coff_file)
if (!write_err) if (!write_err)
write_err = (write (coff_file->fd, outlen, 4) != 4); write_err = (write (coff_file->fd, outlen, 4) != 4);
if (stringsec) if (stringsec)
COFF_FOR_ALL_DATA(stringsec, data) {
if (!write_err) COFF_FOR_ALL_DATA(stringsec, data)
write_err = (write (coff_file->fd, data->d_buf, data->d_size) if (!write_err)
!= data->d_size); write_err = (write (coff_file->fd, data->d_buf, data->d_size)
else != data->d_size);
break; else
break;
}
} }
return write_err; return write_err;
......
...@@ -317,7 +317,7 @@ lto_resolution_read (FILE *resolution, lto_file *file) ...@@ -317,7 +317,7 @@ lto_resolution_read (FILE *resolution, lto_file *file)
int t; int t;
unsigned index; unsigned index;
char r_str[27]; char r_str[27];
enum ld_plugin_symbol_resolution r; enum ld_plugin_symbol_resolution r = (enum ld_plugin_symbol_resolution) 0;
unsigned int j; unsigned int j;
unsigned int lto_resolution_str_len = unsigned int lto_resolution_str_len =
sizeof (lto_resolution_str) / sizeof (char *); sizeof (lto_resolution_str) / sizeof (char *);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment