[m-dev.] for review: GCC back-end interface

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jan 10 22:09:27 AEDT 2001


Here's one more change that I forgot to include in my original diff:

mercury/compiler/ml_switch_gen.m:
	Handle the new `asm' compilation target.

Index: ml_switch_gen.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/ml_switch_gen.m,v
retrieving revision 1.6
diff -u -d -u -r1.6 ml_switch_gen.m
--- ml_switch_gen.m	2000/11/23 04:32:44	1.6
+++ ml_switch_gen.m	2000/12/31 14:46:51
@@ -261,21 +261,27 @@
 :- func target_supports_computed_goto_2(compilation_target) = bool.
 
 target_supports_int_switch_2(c) = yes.
+target_supports_int_switch_2(asm) = yes.	% asm means via gnu back-end
 target_supports_int_switch_2(il) = no.
 target_supports_int_switch_2(java) = yes.
 % target_supports_int_switch_2(c_sharp) = yes.
 
 target_supports_string_switch_2(c) = no.
+target_supports_string_switch_2(asm) = no.	% asm means via gnu back-end
 target_supports_string_switch_2(il) = no.
 target_supports_string_switch_2(java) = no.
 % target_supports_string_switch_2(c_sharp) = yes.
 
 target_supports_computed_goto_2(c) = yes.
+target_supports_computed_goto_2(asm) = no.	% asm means via gnu back-end
+	% XXX for asm, it should be `yes', but currently
+	% computed gotos are not yet implemented in gcc.m.
 target_supports_computed_goto_2(il) = yes.
 target_supports_computed_goto_2(java) = no.
-% target_supports_computed_goto_2(c_sharp) = yes.
+% target_supports_computed_goto_2(c_sharp) = no.
 
 target_supports_goto_2(c) = yes.
+target_supports_goto_2(asm) = yes.		% asm means via gnu back-end
 target_supports_goto_2(il) = yes.
 target_supports_goto_2(java) = no.
 % target_supports_goto_2(c_sharp) = yes.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list