File gcc60-fixes.diff of Package chromium-ffmpeg-extra (Revision 93de8f5e85618d0f70a23b7fb2c40df0)

Currently displaying revision 93de8f5e85618d0f70a23b7fb2c40df0 , Show latest

26
 
1
--- a/build/config/compiler/BUILD.gn    2016-08-14 09:59:05.527738286 +0200
2
+++ b/build/config/compiler/BUILD.gn    2016-08-14 09:59:56.340463935 +0200
3
@@ -389,6 +389,7 @@
4
     # TODO(thakis): Eventually switch this to c++11 instead,
5
     # http://crbug.com/427584
6
     cflags_cc += [ "-std=gnu++11" ]
7
+    cflags_cc += [ "-fno-delete-null-pointer-checks" ]
8
   } else if (!is_win && !is_nacl) {
9
     # TODO(mcgrathr) - the NaCl GCC toolchain doesn't support either gnu++11
10
     # or c++11; we technically don't need this toolchain any more, but there
11
12
diff --git a/base/numerics/safe_math_shared_impl.h b/base/numerics/safe_math_shared_impl.h
13
index 99f230ce7e9a..de2415d402f5 100644
14
--- a/base/numerics/safe_math_shared_impl.h
15
+++ b/base/numerics/safe_math_shared_impl.h
16
@@ -21,8 +21,7 @@
17
 #if !defined(__native_client__) &&                         \
18
     ((defined(__clang__) &&                                \
19
       ((__clang_major__ > 3) ||                            \
20
-       (__clang_major__ == 3 && __clang_minor__ >= 4))) || \
21
-     (defined(__GNUC__) && __GNUC__ >= 5))
22
+       (__clang_major__ == 3 && __clang_minor__ >= 4))))
23
 #include "base/numerics/safe_math_clang_gcc_impl.h"
24
 #define BASE_HAS_OPTIMIZED_SAFE_MATH (1)
25
 #else
26