Commit 090fc3f4 by Andi Kleen Committed by Andi Kleen

lto-opts.c (lto_read_file_options): Check for missing section.

2010-07-10   Andi Kleen <ak@linux.intel.com>

        * lto-opts.c (lto_read_file_options): Check for missing section.

From-SVN: r162439
parent 9d3493e6
2010-07-10 Andi Kleen <ak@linux.intel.com>
* lto-opts.c (lto_read_file_options): Check for missing section.
2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
* ira.c (check_allocation): Correctly handle the case where an allocno
......
......@@ -356,6 +356,8 @@ lto_read_file_options (struct lto_file_decl_data *file_data)
struct lto_input_block ib;
data = lto_get_section_data (file_data, LTO_section_opts, NULL, &len);
if (!data)
return;
header = (const struct lto_simple_header *) data;
opts_offset = sizeof (*header);
......
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