diff options
author | Andi Kleen <ak@linux.intel.com> | 2010-10-03 15:56:06 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2010-10-03 15:56:06 +0000 |
commit | f1e92a43e9aec2f052cfc5c20b2e793f97fc18da (patch) | |
tree | 2f77cbde52e5c00f2f5f388bfdf925fbad4acbeb /gcc/lto | |
parent | 5ed69344502acbe8e141a5b480bd31296f9ba5cd (diff) | |
download | gcc-f1e92a43e9aec2f052cfc5c20b2e793f97fc18da.zip gcc-f1e92a43e9aec2f052cfc5c20b2e793f97fc18da.tar.gz gcc-f1e92a43e9aec2f052cfc5c20b2e793f97fc18da.tar.bz2 |
lto-cgraph.c (input_cgraph): Check for missing sections.
gcc/
2010-10-03 Andi Kleen <ak@linux.intel.com>
* lto-cgraph.c (input_cgraph): Check for missing sections.
gcc/lto/
2010-10-03 Andi Kleen <ak@linux.intel.com>
* lto.c (lto_file_finalize): Replace gcc_assert for missing section
with fatal_error.
From-SVN: r164916
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto/lto.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 5d7de8d..5c8ac55 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2010-10-03 Andi Kleen <ak@linux.intel.com> + + * lto.c (lto_file_finalize): Replace gcc_assert for missing section + with fatal_error. + 2010-09-28 Jan Hubicka <jh@suse.cz> * lto-lang.c (handle_leaf_attribute): New function. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index e2fa975..2fbea73 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -493,7 +493,11 @@ lto_file_finalize (struct lto_file_decl_data *file_data, lto_file *file) file_data->renaming_hash_table = lto_create_renaming_table (); file_data->file_name = file->filename; data = lto_get_section_data (file_data, LTO_section_decls, NULL, &len); - gcc_assert (data != NULL); + if (data == NULL) + { + internal_error ("Cannot read LTO decls from %s", file_data->file_name); + return; + } lto_read_decls (file_data, data, file_data->resolutions); lto_free_section_data (file_data, LTO_section_decls, NULL, data, len); } |