[m-rev.] [PATCH] Make module_qualify_items_loop tail recursive again with LCMC.

Peter Wang novalazy at gmail.com
Wed Mar 2 16:35:16 AEDT 2016


The predicate module_qualify_items_loop was moved into a new module in
commit df794c259a6a93eaaedff765e54b339f33d11631 but the option required
for it to be tail recursive was not transferred to the new module.

compiler/Mercury.options:
	Transfer --optimize-constructor-last-call to the new module
	containing module_qualify_items_loop.
---
 compiler/Mercury.options | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/Mercury.options b/compiler/Mercury.options
index 28fa755..1cdb5b9 100644
--- a/compiler/Mercury.options
+++ b/compiler/Mercury.options
@@ -25,7 +25,7 @@ MCFLAGS-check_hlds.typecheck = --unneeded-code --optimize-constructor-last-call
 MCFLAGS-check_hlds.purity = --optimize-constructor-last-call
 
 # module_qualify_items_loop should be tail recursive.
-MCFLAGS-parse_tree.module_qual = --optimize-constructor-last-call
+MCFLAGS-parse_tree.module_qual.qualify_items = --optimize-constructor-last-call
 
 # In these files, some imports are needed only in some grades.
 # Until unused_imports.m can avoid generating messages about these,
-- 
2.6.4




More information about the reviews mailing list