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

Unified Diff: build/common.gypi

Issue 12091004: POSIX: re-enable strict aliasing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/breakpad_linux.cc » ('j') | chrome/browser/crash_handler_host_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index e95efab42161e09983192743e7a563b6ec727cbf..4baa88707c9b7dec68fe591af7ed9fb6a7d67104 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2330,6 +2330,10 @@
'-Wno-deprecated',
],
'cflags': [
+ # Do not assume the code is strict-aliasing-safe. This can induce
+ # strange crashes, and we ignore warnings in third-party code.
+ # The reference bug for this is http://crbug.com/32204 .
+ '-fno-strict-aliasing',
# Don't warn about printf format problems.
# This is off by default in gcc but on in Ubuntu's gcc(!).
'-Wno-format',
@@ -2753,7 +2757,6 @@
'<(werror)', # See note above about the werror variable.
'-pthread',
'-fno-exceptions',
- '-fno-strict-aliasing', # See http://crbug.com/32204
'-Wall',
# TODO(evan): turn this back on once all the builds work.
# '-Wextra',
« no previous file with comments | « no previous file | chrome/app/breakpad_linux.cc » ('j') | chrome/browser/crash_handler_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698