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>
* lto.c (lto_read_in_decl_state): Use typed GC allocation.
......
......@@ -770,6 +770,7 @@ coff_write_object_file (lto_coff_file *coff_file)
if (!write_err)
write_err = (write (coff_file->fd, outlen, 4) != 4);
if (stringsec)
{
COFF_FOR_ALL_DATA(stringsec, data)
if (!write_err)
write_err = (write (coff_file->fd, data->d_buf, data->d_size)
......@@ -777,6 +778,7 @@ coff_write_object_file (lto_coff_file *coff_file)
else
break;
}
}
return write_err;
}
......
......@@ -317,7 +317,7 @@ lto_resolution_read (FILE *resolution, lto_file *file)
int t;
unsigned index;
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 lto_resolution_str_len =
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