comparison dmd/mars.c @ 546:406aee3416bb

Removed D_InlineAsm and D_InlineAsm_X86 versions. Made use of 'naked' in inline asm an error.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 25 Aug 2008 19:36:27 +0200
parents 1e9ca2889b07
children b0005772a88e
comparison
equal deleted inserted replaced
545:a42610460308 546:406aee3416bb
66 #error "fix this" 66 #error "fix this"
67 #endif 67 #endif
68 68
69 copyright = "Copyright (c) 1999-2008 by Digital Mars and Tomas Lindquist Olsen"; 69 copyright = "Copyright (c) 1999-2008 by Digital Mars and Tomas Lindquist Olsen";
70 written = "written by Walter Bright and Tomas Lindquist Olsen"; 70 written = "written by Walter Bright and Tomas Lindquist Olsen";
71 version = "v1.033"; 71 version = "v1.034";
72 llvmdc_version = "0.1"; 72 llvmdc_version = "0.1";
73 global.structalign = 8; 73 global.structalign = 8;
74 74
75 memset(&params, 0, sizeof(Param)); 75 memset(&params, 0, sizeof(Param));
76 } 76 }
154 extern void backend_init(); 154 extern void backend_init();
155 extern void backend_term(); 155 extern void backend_term();
156 156
157 void usage() 157 void usage()
158 { 158 {
159 printf("LLVM D Compiler %s (based on DMD %s and LLVM 2.3)\n%s\n%s\n", 159 printf("LLVM D Compiler %s (based on DMD %s and LLVM 2.4svn)\n%s\n%s\n",
160 global.llvmdc_version, global.version, global.copyright, global.written); 160 global.llvmdc_version, global.version, global.copyright, global.written);
161 printf("\ 161 printf("\
162 D Language Documentation: http://www.digitalmars.com/d/1.0/index.html\n\ 162 D Language Documentation: http://www.digitalmars.com/d/1.0/index.html\n\
163 LLVMDC Homepage: http://www.dsource.org/projects/llvmdc\n\ 163 LLVMDC Homepage: http://www.dsource.org/projects/llvmdc\n\
164 Usage:\n\ 164 Usage:\n\
691 global.params.is64bit = false; 691 global.params.is64bit = false;
692 global.params.cpu = ARCHx86; 692 global.params.cpu = ARCHx86;
693 global.params.tt_arch = "i686"; 693 global.params.tt_arch = "i686";
694 global.params.data_layout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-f80:32:32-v64:64:64-v128:128:128-a0:0:64"; 694 global.params.data_layout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-f80:32:32-v64:64:64-v128:128:128-a0:0:64";
695 if (global.params.useInlineAsm) { 695 if (global.params.useInlineAsm) {
696 VersionCondition::addPredefinedGlobalIdent("D_InlineAsm"); 696 VersionCondition::addPredefinedGlobalIdent("LLVM_InlineAsm_X86");
697 VersionCondition::addPredefinedGlobalIdent("D_InlineAsm_X86");
698 } 697 }
699 } 698 }
700 else if (strcmp(global.params.llvmArch,"x86-64")==0) { 699 else if (strcmp(global.params.llvmArch,"x86-64")==0) {
701 VersionCondition::addPredefinedGlobalIdent("X86_64"); 700 VersionCondition::addPredefinedGlobalIdent("X86_64");
702 global.params.isLE = true; 701 global.params.isLE = true;