Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 1 | //===- Base.td - LLVMC toolchain descriptions --------------*- tablegen -*-===// |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 10 | // This file contains compilation graph description used by llvmc. |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Mikhail Glushenkov | e4a5ea3 | 2008-10-02 21:15:05 +0000 | [diff] [blame] | 14 | include "llvm/CompilerDriver/Common.td" |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 15 | |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 16 | // Options |
| 17 | |
| 18 | def OptList : OptionList<[ |
| 19 | (switch_option "emit-llvm", |
| 20 | (help "Emit LLVM .ll files instead of native object files")), |
| 21 | (switch_option "E", |
| 22 | (help "Stop after the preprocessing stage, do not run the compiler")), |
| 23 | (switch_option "fsyntax-only", |
| 24 | (help "Stop after checking the input for syntax errors")), |
| 25 | (switch_option "opt", |
| 26 | (help "Enable opt")), |
Mikhail Glushenkov | 6b4967e | 2009-10-17 20:07:49 +0000 | [diff] [blame] | 27 | (switch_option "O0", |
| 28 | (help "Turn off optimization")), |
| 29 | (switch_option "O1", |
| 30 | (help "Optimization level 1")), |
| 31 | (switch_option "O2", |
| 32 | (help "Optimization level 2")), |
| 33 | (switch_option "O3", |
| 34 | (help "Optimization level 3")), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 35 | (switch_option "S", |
| 36 | (help "Stop after compilation, do not assemble")), |
| 37 | (switch_option "c", |
| 38 | (help "Compile and assemble, but do not link")), |
| 39 | (switch_option "pthread", |
| 40 | (help "Enable threads")), |
Mikhail Glushenkov | 55cd767 | 2009-12-01 09:47:11 +0000 | [diff] [blame] | 41 | (switch_option "fPIC", |
| 42 | (help "Relocation model: PIC"), (hidden)), |
| 43 | (switch_option "mdynamic-no-pic", |
| 44 | (help "Relocation model: dynamic-no-pic"), (hidden)), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 45 | (parameter_option "linker", |
| 46 | (help "Choose linker (possible values: gcc, g++)")), |
Mikhail Glushenkov | 3ab4883 | 2009-12-04 06:38:28 +0000 | [diff] [blame^] | 47 | (parameter_option "mtune", |
| 48 | (help "Target a specific CPU type"), (hidden)), |
| 49 | (parameter_option "march", |
| 50 | (help "A synonym for -mtune"), (hidden)), |
| 51 | (parameter_option "mcpu", |
| 52 | (help "A deprecated synonym for -mtune"), (hidden)), |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 53 | (parameter_option "MF", |
| 54 | (help "Specify a file to write dependencies to"), (hidden)), |
| 55 | (parameter_option "MT", |
| 56 | (help "Change the name of the rule emitted by dependency generation"), |
| 57 | (hidden)), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 58 | (parameter_list_option "include", |
| 59 | (help "Include the named file prior to preprocessing")), |
Mikhail Glushenkov | 1851860 | 2009-12-01 05:59:55 +0000 | [diff] [blame] | 60 | (parameter_list_option "framework", |
| 61 | (help "Specifies a framework to link against")), |
| 62 | (parameter_list_option "weak_framework", |
| 63 | (help "Specifies a framework to weakly link against"), (hidden)), |
| 64 | (prefix_list_option "F", |
| 65 | (help "Add a directory to framework search path")), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 66 | (prefix_list_option "I", |
| 67 | (help "Add a directory to include path")), |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 68 | (prefix_list_option "D", |
| 69 | (help "Define a macro")), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 70 | (prefix_list_option "Wa,", |
| 71 | (help "Pass options to assembler")), |
Mikhail Glushenkov | 4680102 | 2009-03-31 18:33:54 +0000 | [diff] [blame] | 72 | (prefix_list_option "Wllc,", |
| 73 | (help "Pass options to llc")), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 74 | (prefix_list_option "L", |
| 75 | (help "Add a directory to link path")), |
| 76 | (prefix_list_option "l", |
| 77 | (help "Search a library when linking")), |
| 78 | (prefix_list_option "Wl,", |
Mikhail Glushenkov | ba71d67 | 2008-12-11 22:19:14 +0000 | [diff] [blame] | 79 | (help "Pass options to linker")), |
| 80 | (prefix_list_option "Wo,", |
| 81 | (help "Pass options to opt")) |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 82 | ]>; |
| 83 | |
Mikhail Glushenkov | 0a22fb6 | 2009-10-17 20:09:29 +0000 | [diff] [blame] | 84 | // Option preprocessor. |
| 85 | |
| 86 | def Preprocess : OptionPreprocessor< |
| 87 | (case (and (switch_on "O3"), (any_switch_on ["O0", "O1", "O2"])), |
| 88 | (unset_option ["O0", "O1", "O2"]), |
| 89 | (and (switch_on "O2"), (any_switch_on ["O0", "O1"])), |
| 90 | (unset_option ["O0", "O1"]), |
| 91 | (and (switch_on "O1"), (switch_on "O0")), |
| 92 | (unset_option "O0")) |
| 93 | >; |
| 94 | |
| 95 | |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 96 | // Tools |
| 97 | |
| 98 | class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool< |
| 99 | [(in_language in_lang), |
| 100 | (out_language "llvm-bitcode"), |
| 101 | (output_suffix "bc"), |
| 102 | (cmd_line (case |
| 103 | (switch_on "E"), |
| 104 | (case (not_empty "o"), |
| 105 | !strconcat(cmd_prefix, " -E $INFILE -o $OUTFILE"), |
| 106 | (default), |
| 107 | !strconcat(cmd_prefix, " -E $INFILE")), |
| 108 | (switch_on "fsyntax-only"), |
| 109 | !strconcat(cmd_prefix, " -fsyntax-only $INFILE"), |
| 110 | (and (switch_on "S"), (switch_on "emit-llvm")), |
| 111 | !strconcat(cmd_prefix, " -S $INFILE -o $OUTFILE -emit-llvm"), |
| 112 | (default), |
| 113 | !strconcat(cmd_prefix, " -c $INFILE -o $OUTFILE -emit-llvm"))), |
| 114 | (actions |
| 115 | (case |
Mikhail Glushenkov | ad981bf | 2009-09-28 01:16:42 +0000 | [diff] [blame] | 116 | (and (multiple_input_files), (or (switch_on "S"), (switch_on "c"))), |
| 117 | (error "cannot specify -o with -c or -S with multiple files"), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 118 | (switch_on "E"), [(stop_compilation), (output_suffix E_ext)], |
| 119 | (and (switch_on "emit-llvm"), (switch_on "S")), |
| 120 | [(output_suffix "ll"), (stop_compilation)], |
| 121 | (and (switch_on "emit-llvm"), (switch_on "c")), (stop_compilation), |
| 122 | (switch_on "fsyntax-only"), (stop_compilation), |
| 123 | (not_empty "include"), (forward "include"), |
Mikhail Glushenkov | 9795500 | 2009-12-01 06:51:30 +0000 | [diff] [blame] | 124 | (not_empty "save-temps"), (append_cmd "-save-temps"), |
Mikhail Glushenkov | 976248d | 2009-10-08 06:03:38 +0000 | [diff] [blame] | 125 | (not_empty "I"), (forward "I"), |
Mikhail Glushenkov | 1851860 | 2009-12-01 05:59:55 +0000 | [diff] [blame] | 126 | (not_empty "F"), (forward "F"), |
Mikhail Glushenkov | 976248d | 2009-10-08 06:03:38 +0000 | [diff] [blame] | 127 | (not_empty "D"), (forward "D"), |
Mikhail Glushenkov | 3ab4883 | 2009-12-04 06:38:28 +0000 | [diff] [blame^] | 128 | (not_empty "march"), (forward "march"), |
| 129 | (not_empty "mtune"), (forward "mtune"), |
| 130 | (not_empty "mcpu"), (forward "mcpu"), |
Mikhail Glushenkov | 6b4967e | 2009-10-17 20:07:49 +0000 | [diff] [blame] | 131 | (switch_on "O1"), (forward "O1"), |
| 132 | (switch_on "O2"), (forward "O2"), |
| 133 | (switch_on "O3"), (forward "O3"), |
Mikhail Glushenkov | 55cd767 | 2009-12-01 09:47:11 +0000 | [diff] [blame] | 134 | (switch_on "fPIC"), (forward "fPIC"), |
| 135 | (switch_on "mdynamic-no-pic"), (forward "mdynamic-no-pic"), |
Mikhail Glushenkov | 976248d | 2009-10-08 06:03:38 +0000 | [diff] [blame] | 136 | (not_empty "MF"), (forward "MF"), |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 137 | (not_empty "MT"), (forward "MT"))), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 138 | (sink) |
| 139 | ]>; |
| 140 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 141 | def llvm_gcc_c : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x c", "c", "i">; |
| 142 | def llvm_gcc_cpp : llvm_gcc_based<"@LLVMGXXCOMMAND@ -x c++", "c++", "i">; |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 143 | def llvm_gcc_m : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x objective-c", |
| 144 | "objective-c", "mi">; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 145 | def llvm_gcc_mxx : llvm_gcc_based<"@LLVMGCCCOMMAND@ -x objective-c++", |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 146 | "objective-c++", "mi">; |
| 147 | |
| 148 | def opt : Tool< |
| 149 | [(in_language "llvm-bitcode"), |
| 150 | (out_language "llvm-bitcode"), |
| 151 | (output_suffix "bc"), |
Mikhail Glushenkov | 6b4967e | 2009-10-17 20:07:49 +0000 | [diff] [blame] | 152 | (actions (case (not_empty "Wo,"), (unpack_values "Wo,"), |
| 153 | (switch_on "O1"), (forward "O1"), |
| 154 | (switch_on "O2"), (forward "O2"), |
| 155 | (switch_on "O3"), (forward "O3"))), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 156 | (cmd_line "opt -f $INFILE -o $OUTFILE") |
| 157 | ]>; |
| 158 | |
| 159 | def llvm_as : Tool< |
| 160 | [(in_language "llvm-assembler"), |
| 161 | (out_language "llvm-bitcode"), |
| 162 | (output_suffix "bc"), |
Mikhail Glushenkov | 3ab6889 | 2009-10-09 05:45:01 +0000 | [diff] [blame] | 163 | (cmd_line "llvm-as $INFILE -o $OUTFILE"), |
| 164 | (actions (case (switch_on "emit-llvm"), (stop_compilation))) |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 165 | ]>; |
| 166 | |
| 167 | def llvm_gcc_assembler : Tool< |
| 168 | [(in_language "assembler"), |
| 169 | (out_language "object-code"), |
| 170 | (output_suffix "o"), |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 171 | (cmd_line "@LLVMGCCCOMMAND@ -c -x assembler $INFILE -o $OUTFILE"), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 172 | (actions (case |
| 173 | (switch_on "c"), (stop_compilation), |
| 174 | (not_empty "Wa,"), (unpack_values "Wa,"))) |
| 175 | ]>; |
| 176 | |
| 177 | def llc : Tool< |
Mikhail Glushenkov | 3ab6889 | 2009-10-09 05:45:01 +0000 | [diff] [blame] | 178 | [(in_language ["llvm-bitcode", "llvm-assembler"]), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 179 | (out_language "assembler"), |
| 180 | (output_suffix "s"), |
Mikhail Glushenkov | 4680102 | 2009-03-31 18:33:54 +0000 | [diff] [blame] | 181 | (cmd_line "llc -f $INFILE -o $OUTFILE"), |
| 182 | (actions (case |
| 183 | (switch_on "S"), (stop_compilation), |
Mikhail Glushenkov | 6b4967e | 2009-10-17 20:07:49 +0000 | [diff] [blame] | 184 | (switch_on "O0"), (forward "O0"), |
| 185 | (switch_on "O1"), (forward "O1"), |
| 186 | (switch_on "O2"), (forward "O2"), |
| 187 | (switch_on "O3"), (forward "O3"), |
Mikhail Glushenkov | 55cd767 | 2009-12-01 09:47:11 +0000 | [diff] [blame] | 188 | (switch_on "fPIC"), (append_cmd "-relocation-model=pic"), |
| 189 | (switch_on "mdynamic-no-pic"), |
| 190 | (append_cmd "-relocation-model=dynamic-no-pic"), |
Mikhail Glushenkov | 3ab4883 | 2009-12-04 06:38:28 +0000 | [diff] [blame^] | 191 | (not_empty "march"), (forward "mcpu"), |
| 192 | (not_empty "mtune"), (forward "mcpu"), |
| 193 | (not_empty "mcpu"), (forward "mcpu"), |
Mikhail Glushenkov | 4680102 | 2009-03-31 18:33:54 +0000 | [diff] [blame] | 194 | (not_empty "Wllc,"), (unpack_values "Wllc,"))) |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 195 | ]>; |
| 196 | |
| 197 | // Base class for linkers |
| 198 | class llvm_gcc_based_linker <string cmd_prefix> : Tool< |
| 199 | [(in_language "object-code"), |
| 200 | (out_language "executable"), |
| 201 | (output_suffix "out"), |
| 202 | (cmd_line !strconcat(cmd_prefix, " $INFILE -o $OUTFILE")), |
| 203 | (join), |
| 204 | (actions (case |
| 205 | (switch_on "pthread"), (append_cmd "-lpthread"), |
| 206 | (not_empty "L"), (forward "L"), |
Mikhail Glushenkov | 1851860 | 2009-12-01 05:59:55 +0000 | [diff] [blame] | 207 | (not_empty "F"), (forward "F"), |
| 208 | (not_empty "framework"), (forward "framework"), |
| 209 | (not_empty "weak_framework"), (forward "weak_framework"), |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 210 | (not_empty "l"), (forward "l"), |
Mikhail Glushenkov | 6d80d2b | 2009-10-08 04:40:28 +0000 | [diff] [blame] | 211 | (not_empty "Wl,"), (forward "Wl,"))) |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 212 | ]>; |
| 213 | |
| 214 | // Default linker |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 215 | def llvm_gcc_linker : llvm_gcc_based_linker<"@LLVMGCCCOMMAND@">; |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 216 | // Alternative linker for C++ |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 217 | def llvm_gcc_cpp_linker : llvm_gcc_based_linker<"@LLVMGXXCOMMAND@">; |
Mikhail Glushenkov | de1e521 | 2008-12-11 10:38:06 +0000 | [diff] [blame] | 218 | |
| 219 | // Language map |
| 220 | |
| 221 | def LanguageMap : LanguageMap< |
| 222 | [LangToSuffixes<"c++", ["cc", "cp", "cxx", "cpp", "CPP", "c++", "C"]>, |
| 223 | LangToSuffixes<"c", ["c"]>, |
| 224 | LangToSuffixes<"c-cpp-output", ["i"]>, |
| 225 | LangToSuffixes<"objective-c-cpp-output", ["mi"]>, |
| 226 | LangToSuffixes<"objective-c++", ["mm"]>, |
| 227 | LangToSuffixes<"objective-c", ["m"]>, |
| 228 | LangToSuffixes<"assembler", ["s"]>, |
| 229 | LangToSuffixes<"assembler-with-cpp", ["S"]>, |
| 230 | LangToSuffixes<"llvm-assembler", ["ll"]>, |
| 231 | LangToSuffixes<"llvm-bitcode", ["bc"]>, |
| 232 | LangToSuffixes<"object-code", ["o"]>, |
| 233 | LangToSuffixes<"executable", ["out"]> |
| 234 | ]>; |
| 235 | |
| 236 | // Compilation graph |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 237 | |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 238 | def CompilationGraph : CompilationGraph<[ |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 239 | Edge<"root", "llvm_gcc_c">, |
| 240 | Edge<"root", "llvm_gcc_assembler">, |
| 241 | Edge<"root", "llvm_gcc_cpp">, |
| 242 | Edge<"root", "llvm_gcc_m">, |
| 243 | Edge<"root", "llvm_gcc_mxx">, |
Mikhail Glushenkov | 57a7e94 | 2009-09-10 17:04:32 +0000 | [diff] [blame] | 244 | Edge<"root", "llc">, |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 245 | |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 246 | Edge<"llvm_gcc_c", "llc">, |
| 247 | Edge<"llvm_gcc_cpp", "llc">, |
| 248 | Edge<"llvm_gcc_m", "llc">, |
| 249 | Edge<"llvm_gcc_mxx", "llc">, |
| 250 | Edge<"llvm_as", "llc">, |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 251 | |
Mikhail Glushenkov | 3ab6889 | 2009-10-09 05:45:01 +0000 | [diff] [blame] | 252 | OptionalEdge<"root", "llvm_as", |
| 253 | (case (switch_on "emit-llvm"), (inc_weight))>, |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 254 | OptionalEdge<"llvm_gcc_c", "opt", (case (switch_on "opt"), (inc_weight))>, |
| 255 | OptionalEdge<"llvm_gcc_cpp", "opt", (case (switch_on "opt"), (inc_weight))>, |
| 256 | OptionalEdge<"llvm_gcc_m", "opt", (case (switch_on "opt"), (inc_weight))>, |
| 257 | OptionalEdge<"llvm_gcc_mxx", "opt", (case (switch_on "opt"), (inc_weight))>, |
| 258 | OptionalEdge<"llvm_as", "opt", (case (switch_on "opt"), (inc_weight))>, |
| 259 | Edge<"opt", "llc">, |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 260 | |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 261 | Edge<"llc", "llvm_gcc_assembler">, |
| 262 | Edge<"llvm_gcc_assembler", "llvm_gcc_linker">, |
| 263 | OptionalEdge<"llvm_gcc_assembler", "llvm_gcc_cpp_linker", |
Mikhail Glushenkov | e5557f4 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 264 | (case |
Daniel Dunbar | 77e0c85 | 2008-11-08 03:25:47 +0000 | [diff] [blame] | 265 | (or (input_languages_contain "c++"), |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 266 | (input_languages_contain "objective-c++")), |
Daniel Dunbar | 77e0c85 | 2008-11-08 03:25:47 +0000 | [diff] [blame] | 267 | (inc_weight), |
Mikhail Glushenkov | e5557f4 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 268 | (or (parameter_equals "linker", "g++"), |
| 269 | (parameter_equals "linker", "c++")), (inc_weight))>, |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame] | 270 | |
Mikhail Glushenkov | 978d498 | 2008-05-06 18:13:00 +0000 | [diff] [blame] | 271 | |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 272 | Edge<"root", "llvm_gcc_linker">, |
| 273 | OptionalEdge<"root", "llvm_gcc_cpp_linker", |
Mikhail Glushenkov | e5557f4 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 274 | (case |
Daniel Dunbar | 77e0c85 | 2008-11-08 03:25:47 +0000 | [diff] [blame] | 275 | (or (input_languages_contain "c++"), |
Mikhail Glushenkov | 0108877 | 2008-11-17 17:29:18 +0000 | [diff] [blame] | 276 | (input_languages_contain "objective-c++")), |
Daniel Dunbar | 77e0c85 | 2008-11-08 03:25:47 +0000 | [diff] [blame] | 277 | (inc_weight), |
Mikhail Glushenkov | e5557f4 | 2008-05-30 06:08:50 +0000 | [diff] [blame] | 278 | (or (parameter_equals "linker", "g++"), |
| 279 | (parameter_equals "linker", "c++")), (inc_weight))> |
Anton Korobeynikov | ac67b7e | 2008-03-23 08:57:20 +0000 | [diff] [blame] | 280 | ]>; |