Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: tests/toolchain/nacl.scons

Issue 12843006: Use llvm-opt's LTO pass list instead of generic O2/O3 pass list for LTO (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pnacl/driver/pnacl-ld.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 Import('env') 6 Import('env')
7 7
8 # force inclusion of entire library, so that we can validate it 8 # force inclusion of entire library, so that we can validate it
9 # NOTE: This approach does not work for -lc because of tons of 9 # NOTE: This approach does not work for -lc because of tons of
10 # undefined symbols which would have to be stubbed out 10 # undefined symbols which would have to be stubbed out
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 282
283 # Test that local variable dwarf info is preserved with linking and LTO. 283 # Test that local variable dwarf info is preserved with linking and LTO.
284 # Force '-g' on in case it was not turned on for some reason, and lower 284 # Force '-g' on in case it was not turned on for some reason, and lower
285 # optimization settings to prevent some optimizations that would convert 285 # optimization settings to prevent some optimizations that would convert
286 # locals from llvm allocas to registers. 286 # locals from llvm allocas to registers.
287 # We may be able to remove this test once LLVM has an upstream regression test. 287 # We may be able to remove this test once LLVM has an upstream regression test.
288 debug_env = env.Clone() 288 debug_env = env.Clone()
289 debug_env.Append(CFLAGS=['-g', '-O0']) 289 debug_env.Append(CFLAGS=['-g', '-O0'])
290 debug_env.Append(CCFLAGS=['-g', '-O0']) 290 debug_env.Append(CCFLAGS=['-g', '-O0'])
291 debug_env.Append(LINKFLAGS=['-O0'])
291 dwarf_local_var_nexe = debug_env.ComponentProgram('dwarf_local_var', 292 dwarf_local_var_nexe = debug_env.ComponentProgram('dwarf_local_var',
292 ['dwarf_local_var.c', 293 ['dwarf_local_var.c',
293 'dwarf_local_var_dummy.c'], 294 'dwarf_local_var_dummy.c'],
294 EXTRA_LIBS=['${NONIRT_LIBS}']) 295 EXTRA_LIBS=['${NONIRT_LIBS}'])
295 # Sanity-check -- make sure it runs. 296 # Sanity-check -- make sure it runs.
296 node = debug_env.CommandSelLdrTestNacl('dwarf_local_var_run.out', 297 node = debug_env.CommandSelLdrTestNacl('dwarf_local_var_run.out',
297 dwarf_local_var_nexe, 298 dwarf_local_var_nexe,
298 exit_status=55) 299 exit_status=55)
299 debug_env.AddNodeToTestSuite(node, 300 debug_env.AddNodeToTestSuite(node,
300 ['toolchain_tests', 'small_tests'], 301 ['toolchain_tests', 'small_tests'],
(...skipping 25 matching lines...) Expand all
326 opt_env.Append(CCFLAGS=['-O3']) 327 opt_env.Append(CCFLAGS=['-O3'])
327 opt_env.Append(LINKFLAGS=['-O3']) 328 opt_env.Append(LINKFLAGS=['-O3'])
328 obj = unopt_env.ComponentObject('printf_to_puts.c') 329 obj = unopt_env.ComponentObject('printf_to_puts.c')
329 nexe = opt_env.ComponentProgram('printf_to_puts', 330 nexe = opt_env.ComponentProgram('printf_to_puts',
330 obj, 331 obj,
331 EXTRA_LIBS=['${NONIRT_LIBS}']) 332 EXTRA_LIBS=['${NONIRT_LIBS}'])
332 node = env.CommandSelLdrTestNacl('printf_to_puts.out', nexe) 333 node = env.CommandSelLdrTestNacl('printf_to_puts.out', nexe)
333 env.AddNodeToTestSuite(node, 334 env.AddNodeToTestSuite(node,
334 ['toolchain_tests', 'small_tests'], 335 ['toolchain_tests', 'small_tests'],
335 'run_printf_to_puts_test') 336 'run_printf_to_puts_test')
OLDNEW
« no previous file with comments | « pnacl/driver/pnacl-ld.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698