Do not allow to run GIMPLE or RTL test-cases w/ LTO (PR lto/79625).
2017-02-28 Martin Liska <mliska@suse.cz> PR lto/79625 * read-rtl-function.c (function_reader::handle_unknown_directive): Bail out when one uses -flto. From-SVN: r245790
This commit is contained in:
parent
9453ba0a0e
commit
cbf6ad9d61
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-02-28 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR lto/79625
|
||||
* read-rtl-function.c (function_reader::handle_unknown_directive):
|
||||
Bail out when one uses -flto.
|
||||
|
||||
2017-02-28 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* common.opt: Replace space with tabular for options of <number>
|
||||
|
|
|
@ -405,6 +405,9 @@ function_reader::handle_unknown_directive (file_location start_loc,
|
|||
if (strcmp (name, "function"))
|
||||
fatal_at (start_loc, "expected 'function'");
|
||||
|
||||
if (flag_lto)
|
||||
error ("%<__RTL%> function cannot be compiled with %<-flto%>");
|
||||
|
||||
parse_function ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue