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

Side by Side Diff: tools/gyp/v8.gyp

Issue 174154: Enable -fstrict-aliasing in the GYP build of V8 for the Mac in Release mode (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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 | « no previous file | 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 # Copyright 2009 the V8 project authors. All rights reserved. 1 # Copyright 2009 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'conditions': [ 90 'conditions': [
91 [ 'gcc_version=="44"', { 91 [ 'gcc_version=="44"', {
92 'cflags': [ 92 'cflags': [
93 # Avoid gcc 4.4 strict aliasing issues in dtoa.c 93 # Avoid gcc 4.4 strict aliasing issues in dtoa.c
94 '-fno-strict-aliasing', 94 '-fno-strict-aliasing',
95 # Avoid crashes with gcc 4.4 in the v8 test suite. 95 # Avoid crashes with gcc 4.4 in the v8 test suite.
96 '-fno-tree-vrp', 96 '-fno-tree-vrp',
97 ], 97 ],
98 }], 98 }],
99 ], 99 ],
100 'cflags_cc': [
101 '-fno-rtti',
102 ],
103 }], 100 }],
104 » ['OS=="mac"', { 101 ['OS=="mac"', {
105 » 'xcode_settings': { 102 'xcode_settings': {
106 » 'GCC_OPTIMIZATION_LEVEL': '3', 103 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
107 » }, 104 'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc
108 » }], 105 # enables this at -O2 and above,
106 # but Apple gcc does not unless it
107 # is specified explicitly.
108 },
109 }],
109 ['OS=="win"', { 110 ['OS=="win"', {
110 'msvs_configuration_attributes': { 111 'msvs_configuration_attributes': {
111 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', 112 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
112 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 113 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
113 'CharacterSet': '1', 114 'CharacterSet': '1',
114 }, 115 },
115 'msvs_settings': { 116 'msvs_settings': {
116 'VCCLCompilerTool': { 117 'VCCLCompilerTool': {
117 'RuntimeLibrary': '0', 118 'RuntimeLibrary': '0',
118 'Optimizations': '2', 119 'Optimizations': '2',
119 'InlineFunctionExpansion': '2', 120 'InlineFunctionExpansion': '2',
120 'EnableIntrinsicFunctions': 'true', 121 'EnableIntrinsicFunctions': 'true',
121 'FavorSizeOrSpeed': '0', 122 'FavorSizeOrSpeed': '0',
122 'OmitFramePointers': 'true', 123 'OmitFramePointers': 'true',
123 'StringPooling': 'true', 124 'StringPooling': 'true',
124 }, 125 },
125 'VCLinkerTool': { 126 'VCLinkerTool': {
126 'LinkIncremental': '1', 127 'LinkIncremental': '1',
127 'OptimizeReferences': '2', 128 'OptimizeReferences': '2',
128 'OptimizeForWindows98': '1', 129 'OptimizeForWindows98': '1',
129 'EnableCOMDATFolding': '2', 130 'EnableCOMDATFolding': '2',
130 }, 131 },
131 }, 132 },
132 }], 133 }],
133 ], 134 ],
134 }, 135 },
135 }, 136 },
136 'xcode_settings': {
137 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
138 'GCC_ENABLE_CPP_RTTI': 'NO',
139 },
140 }, 137 },
141 'targets': [ 138 'targets': [
142 { 139 {
143 'target_name': 'v8', 140 'target_name': 'v8',
144 'type': 'none', 141 'type': 'none',
145 'conditions': [ 142 'conditions': [
146 ['v8_use_snapshot=="true"', { 143 ['v8_use_snapshot=="true"', {
147 'dependencies': ['v8_snapshot'], 144 'dependencies': ['v8_snapshot'],
148 }, 145 },
149 { 146 {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 'conditions': [ 382 'conditions': [
386 ['target_arch=="arm"', { 383 ['target_arch=="arm"', {
387 'include_dirs+': [ 384 'include_dirs+': [
388 '../../src/arm', 385 '../../src/arm',
389 ], 386 ],
390 'sources': [ 387 'sources': [
391 '../../src/arm/assembler-arm-inl.h', 388 '../../src/arm/assembler-arm-inl.h',
392 '../../src/arm/assembler-arm.cc', 389 '../../src/arm/assembler-arm.cc',
393 '../../src/arm/assembler-arm.h', 390 '../../src/arm/assembler-arm.h',
394 '../../src/arm/builtins-arm.cc', 391 '../../src/arm/builtins-arm.cc',
395 » '../../src/arm/cfg-arm.cc', 392 '../../src/arm/cfg-arm.cc',
396 '../../src/arm/codegen-arm.cc', 393 '../../src/arm/codegen-arm.cc',
397 '../../src/arm/codegen-arm.h', 394 '../../src/arm/codegen-arm.h',
398 '../../src/arm/constants-arm.h', 395 '../../src/arm/constants-arm.h',
399 '../../src/arm/cpu-arm.cc', 396 '../../src/arm/cpu-arm.cc',
400 '../../src/arm/debug-arm.cc', 397 '../../src/arm/debug-arm.cc',
401 '../../src/arm/disasm-arm.cc', 398 '../../src/arm/disasm-arm.cc',
402 '../../src/arm/frames-arm.cc', 399 '../../src/arm/frames-arm.cc',
403 '../../src/arm/frames-arm.h', 400 '../../src/arm/frames-arm.h',
404 '../../src/arm/ic-arm.cc', 401 '../../src/arm/ic-arm.cc',
405 '../../src/arm/jump-target-arm.cc', 402 '../../src/arm/jump-target-arm.cc',
(...skipping 10 matching lines...) Expand all
416 }], 413 }],
417 ['target_arch=="ia32"', { 414 ['target_arch=="ia32"', {
418 'include_dirs+': [ 415 'include_dirs+': [
419 '../../src/ia32', 416 '../../src/ia32',
420 ], 417 ],
421 'sources': [ 418 'sources': [
422 '../../src/ia32/assembler-ia32-inl.h', 419 '../../src/ia32/assembler-ia32-inl.h',
423 '../../src/ia32/assembler-ia32.cc', 420 '../../src/ia32/assembler-ia32.cc',
424 '../../src/ia32/assembler-ia32.h', 421 '../../src/ia32/assembler-ia32.h',
425 '../../src/ia32/builtins-ia32.cc', 422 '../../src/ia32/builtins-ia32.cc',
426 » '../../src/ia32/cfg-ia32.cc', 423 '../../src/ia32/cfg-ia32.cc',
427 '../../src/ia32/codegen-ia32.cc', 424 '../../src/ia32/codegen-ia32.cc',
428 '../../src/ia32/codegen-ia32.h', 425 '../../src/ia32/codegen-ia32.h',
429 '../../src/ia32/cpu-ia32.cc', 426 '../../src/ia32/cpu-ia32.cc',
430 '../../src/ia32/debug-ia32.cc', 427 '../../src/ia32/debug-ia32.cc',
431 '../../src/ia32/disasm-ia32.cc', 428 '../../src/ia32/disasm-ia32.cc',
432 '../../src/ia32/frames-ia32.cc', 429 '../../src/ia32/frames-ia32.cc',
433 '../../src/ia32/frames-ia32.h', 430 '../../src/ia32/frames-ia32.h',
434 '../../src/ia32/ic-ia32.cc', 431 '../../src/ia32/ic-ia32.cc',
435 '../../src/ia32/jump-target-ia32.cc', 432 '../../src/ia32/jump-target-ia32.cc',
436 '../../src/ia32/macro-assembler-ia32.cc', 433 '../../src/ia32/macro-assembler-ia32.cc',
(...skipping 12 matching lines...) Expand all
449 }], 446 }],
450 ['target_arch=="x64"', { 447 ['target_arch=="x64"', {
451 'include_dirs+': [ 448 'include_dirs+': [
452 '../../src/x64', 449 '../../src/x64',
453 ], 450 ],
454 'sources': [ 451 'sources': [
455 '../../src/x64/assembler-x64-inl.h', 452 '../../src/x64/assembler-x64-inl.h',
456 '../../src/x64/assembler-x64.cc', 453 '../../src/x64/assembler-x64.cc',
457 '../../src/x64/assembler-x64.h', 454 '../../src/x64/assembler-x64.h',
458 '../../src/x64/builtins-x64.cc', 455 '../../src/x64/builtins-x64.cc',
459 » '../../src/x64/cfg-x64.cc', 456 '../../src/x64/cfg-x64.cc',
460 '../../src/x64/codegen-x64.cc', 457 '../../src/x64/codegen-x64.cc',
461 '../../src/x64/codegen-x64.h', 458 '../../src/x64/codegen-x64.h',
462 '../../src/x64/cpu-x64.cc', 459 '../../src/x64/cpu-x64.cc',
463 '../../src/x64/debug-x64.cc', 460 '../../src/x64/debug-x64.cc',
464 '../../src/x64/disasm-x64.cc', 461 '../../src/x64/disasm-x64.cc',
465 '../../src/x64/frames-x64.cc', 462 '../../src/x64/frames-x64.cc',
466 '../../src/x64/frames-x64.h', 463 '../../src/x64/frames-x64.h',
467 '../../src/x64/ic-x64.cc', 464 '../../src/x64/ic-x64.cc',
468 '../../src/x64/jump-target-x64.cc', 465 '../../src/x64/jump-target-x64.cc',
469 '../../src/x64/macro-assembler-x64.cc', 466 '../../src/x64/macro-assembler-x64.cc',
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 ], 577 ],
581 'conditions': [ 578 'conditions': [
582 [ 'OS=="win"', { 579 [ 'OS=="win"', {
583 # This could be gotten by not setting chromium_code, if that's OK. 580 # This could be gotten by not setting chromium_code, if that's OK.
584 'defines': ['_CRT_SECURE_NO_WARNINGS'], 581 'defines': ['_CRT_SECURE_NO_WARNINGS'],
585 }], 582 }],
586 ], 583 ],
587 }, 584 },
588 ], 585 ],
589 } 586 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698