2020-10-14 11:15:31 +00:00
|
|
|
Index: chromium-86.0.4240.75/base/location.h
|
2020-06-23 15:08:32 +00:00
|
|
|
===================================================================
|
2020-10-14 11:15:31 +00:00
|
|
|
--- chromium-86.0.4240.75.orig/base/location.h
|
|
|
|
|
+++ chromium-86.0.4240.75/base/location.h
|
|
|
|
|
@@ -23,7 +23,7 @@ namespace base {
|
|
|
|
|
#define SUPPORTS_LOCATION_BUILTINS \
|
|
|
|
|
(__has_builtin(__builtin_FUNCTION) && __has_builtin(__builtin_FILE) && \
|
|
|
|
|
__has_builtin(__builtin_LINE))
|
2020-06-23 15:08:32 +00:00
|
|
|
-#elif defined(COMPILER_GCC) && __GNUC__ >= 7
|
2020-10-14 11:15:31 +00:00
|
|
|
+#elif defined(COMPILER_GCC) && __GNUC__ >= 10
|
2020-06-23 15:08:32 +00:00
|
|
|
// GCC has supported these for a long time, but they point at the function
|
|
|
|
|
// declaration in the case of default arguments, rather than at the call site.
|
|
|
|
|
#define SUPPORTS_LOCATION_BUILTINS 1
|
2020-10-14 11:15:31 +00:00
|
|
|
Index: chromium-86.0.4240.75/base/location.cc
|
2020-07-16 11:42:49 +00:00
|
|
|
===================================================================
|
2020-10-14 11:15:31 +00:00
|
|
|
--- chromium-86.0.4240.75.orig/base/location.cc
|
|
|
|
|
+++ chromium-86.0.4240.75/base/location.cc
|
2020-07-16 11:42:49 +00:00
|
|
|
@@ -92,7 +92,7 @@ NOINLINE Location Location::Current(cons
|
|
|
|
|
#else
|
|
|
|
|
// static
|
|
|
|
|
NOINLINE Location Location::Current() {
|
|
|
|
|
- return Location(nullptr, RETURN_ADDRESS());
|
|
|
|
|
+ return Location("[unknown file]", RETURN_ADDRESS());
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|