Mercurial > hg > CbC > CbC_gcc
diff gcc/tsan.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/tsan.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/tsan.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ /* GCC instrumentation plugin for ThreadSanitizer. - Copyright (C) 2011-2017 Free Software Foundation, Inc. + Copyright (C) 2011-2018 Free Software Foundation, Inc. Contributed by Dmitry Vyukov <dvyukov@google.com> This file is part of GCC. @@ -110,12 +110,12 @@ if (size <= 0) return false; - HOST_WIDE_INT bitsize, bitpos; + poly_int64 unused_bitsize, unused_bitpos; tree offset; machine_mode mode; int unsignedp, reversep, volatilep = 0; - base = get_inner_reference (expr, &bitsize, &bitpos, &offset, &mode, - &unsignedp, &reversep, &volatilep); + base = get_inner_reference (expr, &unused_bitsize, &unused_bitpos, &offset, + &mode, &unsignedp, &reversep, &volatilep); /* No need to instrument accesses to decls that don't escape, they can't escape to other threads then. */ @@ -142,6 +142,7 @@ && DECL_BIT_FIELD_TYPE (TREE_OPERAND (expr, 1))) || TREE_CODE (expr) == BIT_FIELD_REF) { + HOST_WIDE_INT bitpos, bitsize; base = TREE_OPERAND (expr, 0); if (TREE_CODE (expr) == COMPONENT_REF) {