Add #+escape-analysis and #+no-escape-analysis file tags, and keep the syntactic check of unsafe returns where the escape analysis is disabled

This commit is contained in:
gingerBill committed 2026-10-07 21:06:56 +01:00
1 parent 6784db9f86
commit d728de8a20
7 files changed
+166 -7

No files matched your search

+2 -1
View File
@@ -3269,7 +3269,8 @@ gb_internal int print_show_help(String const arg0, String command, String option
if (check) {
if (print_flag("-no-escape-analysis")) {
print_usage_line(2, "Disables the escape analysis of stack memory, including the error for returning the address of a local.");
print_usage_line(2, "Disables the escape analysis of stack memory, except in files with '#+escape-analysis'.");
print_usage_line(2, "Where it is disabled, by this or by '#+no-escape-analysis', only returning the address of a local or similar is an error.");
print_usage_line(2, "Cannot be used with -vet-nil-deref or -vet-uninitialized.");
}
}