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

Side by Side Diff: SConstruct

Issue 3117007: Allow compiling with strict aliasing enabled on GCC 4.4. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2010 the V8 project authors. All rights reserved. 1 # Copyright 2010 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 ARM_TARGET_LIB + '/usr/lib', 51 ARM_TARGET_LIB + '/usr/lib',
52 '-Wl,--dynamic-linker=' + ARM_TARGET_LIB + 52 '-Wl,--dynamic-linker=' + ARM_TARGET_LIB +
53 '/lib/ld-linux.so.3'] 53 '/lib/ld-linux.so.3']
54 else: 54 else:
55 ARM_LINK_FLAGS = [] 55 ARM_LINK_FLAGS = []
56 56
57 # TODO: Sort these issues out properly but as a temporary solution for gcc 4.4 57 # TODO: Sort these issues out properly but as a temporary solution for gcc 4.4
58 # on linux we need these compiler flags to avoid crashes in the v8 test suite 58 # on linux we need these compiler flags to avoid crashes in the v8 test suite
59 # and avoid dtoa.c strict aliasing issues 59 # and avoid dtoa.c strict aliasing issues
60 if os.environ.get('GCC_VERSION') == '44': 60 if os.environ.get('GCC_VERSION') == '44':
61 GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing'] 61 GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp']
62 GCC_DTOA_EXTRA_CCFLAGS = [] 62 GCC_DTOA_EXTRA_CCFLAGS = []
63 else: 63 else:
64 GCC_EXTRA_CCFLAGS = [] 64 GCC_EXTRA_CCFLAGS = []
65 GCC_DTOA_EXTRA_CCFLAGS = [] 65 GCC_DTOA_EXTRA_CCFLAGS = []
66 66
67 ANDROID_FLAGS = ['-march=armv7-a', 67 ANDROID_FLAGS = ['-march=armv7-a',
68 '-mtune=cortex-a8', 68 '-mtune=cortex-a8',
69 '-mfloat-abi=softfp', 69 '-mfloat-abi=softfp',
70 '-mfpu=vfp', 70 '-mfpu=vfp',
71 '-fpic', 71 '-fpic',
72 '-mthumb-interwork', 72 '-mthumb-interwork',
73 '-funwind-tables', 73 '-funwind-tables',
74 '-fstack-protector', 74 '-fstack-protector',
75 '-fno-short-enums', 75 '-fno-short-enums',
76 '-fmessage-length=0', 76 '-fmessage-length=0',
77 '-finline-functions', 77 '-finline-functions',
78 '-fno-inline-functions-called-once', 78 '-fno-inline-functions-called-once',
79 '-fgcse-after-reload', 79 '-fgcse-after-reload',
80 '-frerun-cse-after-loop', 80 '-frerun-cse-after-loop',
81 '-frename-registers', 81 '-frename-registers',
82 '-fomit-frame-pointer', 82 '-fomit-frame-pointer',
83 '-fno-strict-aliasing',
84 '-finline-limit=64', 83 '-finline-limit=64',
85 '-DCAN_USE_VFP_INSTRUCTIONS=1', 84 '-DCAN_USE_VFP_INSTRUCTIONS=1',
86 '-DCAN_USE_ARMV7_INSTRUCTIONS=1', 85 '-DCAN_USE_ARMV7_INSTRUCTIONS=1',
87 '-DCAN_USE_UNALIGNED_ACCESSES=1', 86 '-DCAN_USE_UNALIGNED_ACCESSES=1',
88 '-MD'] 87 '-MD']
89 88
90 ANDROID_INCLUDES = [ANDROID_TOP + '/bionic/libc/arch-arm/include', 89 ANDROID_INCLUDES = [ANDROID_TOP + '/bionic/libc/arch-arm/include',
91 ANDROID_TOP + '/bionic/libc/include', 90 ANDROID_TOP + '/bionic/libc/include',
92 ANDROID_TOP + '/bionic/libstdc++/include', 91 ANDROID_TOP + '/bionic/libstdc++/include',
93 ANDROID_TOP + '/bionic/libc/kernel/common', 92 ANDROID_TOP + '/bionic/libc/kernel/common',
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 # version of scons. Also, there's a bug in some revisions that 1144 # version of scons. Also, there's a bug in some revisions that
1146 # doesn't allow this flag to be set, so we swallow any exceptions. 1145 # doesn't allow this flag to be set, so we swallow any exceptions.
1147 # Lovely. 1146 # Lovely.
1148 try: 1147 try:
1149 SetOption('warn', 'no-deprecated') 1148 SetOption('warn', 'no-deprecated')
1150 except: 1149 except:
1151 pass 1150 pass
1152 1151
1153 1152
1154 Build() 1153 Build()
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698