aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/read-rtl-function.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7890a72..54021fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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>
type.
* config/i386/i386.opt: Show <number> value for
diff --git a/gcc/read-rtl-function.c b/gcc/read-rtl-function.c
index bead858..8552cd2 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 ();
}