[m-rev.] for review: implicit option for target x86-64
Fransiska Nathania HANDOKO
fhandoko at students.csse.unimelb.edu.au
Tue Jan 9 18:16:05 AEDT 2007
Estimated hours taken: 1
This change adds few lines of codes to handle options when compiling
to x86_64 assembler.
compiler/handle_options.m:
Add codes to set an implicit option when compiling to x86_64
assembler. The option is 'use_local_vars'. The default for
this is 'no'.
Index: compiler/handle_options.m
===================================================================
RCS file:
/home/mercury/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.291
diff -u -r1.291 handle_options.m
--- compiler/handle_options.m 8 Jan 2007 03:03:09 -0000 1.291
+++ compiler/handle_options.m 9 Jan 2007 04:05:56 -0000
@@ -654,6 +654,19 @@
true
),
+ % Generating x86_64 assembler implies '--no-use-local-vars'
+ (
+ Target = target_x86_64,
+ globals.set_option(use_local_vars, bool(no), !Globals)
+
+ ;
+ ( Target = target_asm
+ ; Target = target_c
+ ; Target = target_il
+ ; Target = target_java
+ )
+ ),
+
%
% Set up options for position independent code.
%
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list