diff options
author | sebmarchand@chromium.org <sebmarchand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 01:46:26 +0000 |
---|---|---|
committer | sebmarchand@chromium.org <sebmarchand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 01:46:26 +0000 |
commit | 8960f40c5568df1263fdb9b05a53f3650238d422 (patch) | |
tree | eb102e4c6dd6fd00fa92043bc28210dc0913f498 /third_party/mesa | |
parent | 8b76a0a2ca2de03cc6d0f493b58d841c38a4ed9f (diff) | |
download | chromium_src-8960f40c5568df1263fdb9b05a53f3650238d422.zip chromium_src-8960f40c5568df1263fdb9b05a53f3650238d422.tar.gz chromium_src-8960f40c5568df1263fdb9b05a53f3650238d422.tar.bz2 |
Allows the ADDRESS_SANITIZER define to be used on Windows.
Asan is coming on Windows soon with SyzyAsan. We should be able to use the ADDRESS_SANITIZER define. The __attribute__ flag is compiler specific.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11549005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/mesa')
-rw-r--r-- | third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp | 4 | ||||
-rw-r--r-- | third_party/mesa/MesaLib/src/mesa/program/prog_parameter.c | 8 | ||||
-rw-r--r-- | third_party/mesa/README.chromium | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp b/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp index 2f8adcff..6884b5c 100644 --- a/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp +++ b/third_party/mesa/MesaLib/src/mesa/program/ir_to_mesa.cpp @@ -56,7 +56,7 @@ extern "C" { #include "program/prog_parameter.h" } -#if defined(ADDRESS_SANITIZER) +#if defined(__clang__ ) && defined(ADDRESS_SANITIZER) // Suppress AddressSanitizer reports about OOB reads in swizzle_for_size(). // See also http://crbug.com/139772. __attribute__((no_address_safety_analysis)) @@ -570,7 +570,7 @@ ir_to_mesa_visitor::get_temp(const glsl_type *type) variable_storage * ir_to_mesa_visitor::find_variable_storage(ir_variable *var) { - + variable_storage *entry; foreach_iter(exec_list_iterator, iter, this->variables) { diff --git a/third_party/mesa/MesaLib/src/mesa/program/prog_parameter.c b/third_party/mesa/MesaLib/src/mesa/program/prog_parameter.c index c563fd5..7eb8cc8 100644 --- a/third_party/mesa/MesaLib/src/mesa/program/prog_parameter.c +++ b/third_party/mesa/MesaLib/src/mesa/program/prog_parameter.c @@ -97,7 +97,7 @@ _mesa_free_parameter_list(struct gl_program_parameter_list *paramList) * store all the values (in blocks of 4). * * \param paramList the list to add the parameter to - * \param type type of parameter, such as + * \param type type of parameter, such as * \param name the parameter name, will be duplicated/copied! * \param size number of elements in 'values' vector (1..4, or more) * \param datatype GL_FLOAT, GL_FLOAT_VECx, GL_INT, GL_INT_VECx or GL_NONE. @@ -105,7 +105,7 @@ _mesa_free_parameter_list(struct gl_program_parameter_list *paramList) * \param state state indexes, or NULL * \return index of new parameter in the list, or -1 if error (out of mem) */ -#if defined(ADDRESS_SANITIZER) +#if defined(__clang__ ) && defined(ADDRESS_SANITIZER) // See http://crbug.com/142316. __attribute__((no_address_safety_analysis)) #endif @@ -192,7 +192,7 @@ _mesa_add_named_parameter(struct gl_program_parameter_list *paramList, { return _mesa_add_parameter(paramList, PROGRAM_NAMED_PARAM, name, 4, GL_NONE, values, NULL, 0x0); - + } @@ -587,7 +587,7 @@ _mesa_clone_parameter_list(const struct gl_program_parameter_list *list) else { clone->Parameters[j].Size = p->Size; } - + } clone->StateFlags = list->StateFlags; diff --git a/third_party/mesa/README.chromium b/third_party/mesa/README.chromium index 194b7ec..6a38b5c 100644 --- a/third_party/mesa/README.chromium +++ b/third_party/mesa/README.chromium @@ -78,7 +78,7 @@ Later modifications (see chromium.patch): - Guarded all usage of EGL_Y_INVERTED_NOK with EGL_NOK_texture_from_pixmap so that it can be compiled against standard EGL 1.4 headers. - + - Initialized uninitialized mask variable in eglconfig.c line 245. - Fixed compiler warning about cast to pointer from integer of different size @@ -107,10 +107,12 @@ Later modifications (see chromium.patch): ir_to_mesa.cpp https://code.google.com/p/chromium/issues/detail?id=139772 https://bugs.freedesktop.org/show_bug.cgi?id=52996 + https://codereview.chromium.org/11549005/ - Suppressed the OOB read reported by AddressSanitizer in _mesa_add_parameter from prog_parameter.c http://code.google.com/p/chromium/issues/detail?id=142316 + https://codereview.chromium.org/11549005/ - Fix the compile errors on Android |