aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl-function.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/read-rtl-function.c')
-rw-r--r--gcc/read-rtl-function.c3
1 files changed, 3 insertions, 0 deletions
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 ();
}