summaryrefslogtreecommitdiff
path: root/gcc/lto-opts.c
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 05:23:50 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 05:23:50 +0000
commit0f80d8790868e762d901ddd11ef14872e88a5bdf (patch)
tree56ae3ac2179b21a6deef76ee4052fc36c257201f /gcc/lto-opts.c
parentfc15094cdaa8f5cb025a0aa002344dcc78361975 (diff)
downloadgcc-0f80d8790868e762d901ddd11ef14872e88a5bdf.tar.gz
2010-07-10 Andi Kleen <ak@linux.intel.com>
* lto-opts.c (lto_read_file_options): Check for missing section. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162439 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-opts.c')
-rw-r--r--gcc/lto-opts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-opts.c b/gcc/lto-opts.c
index 840571431f1..21a5a20a0a6 100644
--- a/gcc/lto-opts.c
+++ b/gcc/lto-opts.c
@@ -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);