From: Martin Liska Date: Tue, 28 Feb 2017 22:04:32 +0000 (+0100) Subject: Do not allow to run GIMPLE or RTL test-cases w/ LTO (PR lto/79625). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbf6ad9d6119db62e907a7e4a345b3a44137d036;p=gcc.git Do not allow to run GIMPLE or RTL test-cases w/ LTO (PR lto/79625). 2017-02-28 Martin Liska PR lto/79625 * read-rtl-function.c (function_reader::handle_unknown_directive): Bail out when one uses -flto. From-SVN: r245790 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7890a729f70..54021fb77f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-02-28 Martin Liska + + PR lto/79625 + * read-rtl-function.c (function_reader::handle_unknown_directive): + Bail out when one uses -flto. + 2017-02-28 Martin Liska * common.opt: Replace space with tabular for options of diff --git a/gcc/read-rtl-function.c b/gcc/read-rtl-function.c index bead85811e6..8552cd2ae8c 100644 --- a/gcc/read-rtl-function.c +++ b/gcc/read-rtl-function.c @@ -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 (); }