[Bug c/101176] valgrind error for c-c++-common/builtin-has-attribute.c

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 10 08:19:21 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101176

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:930520db8e2d01fd8cf064c0ae2f61b683248762

commit r10-10627-g930520db8e2d01fd8cf064c0ae2f61b683248762
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Jun 24 15:58:02 2021 +0200

    c: Fix up c_parser_has_attribute_expression [PR101176]

    This function keeps src_range member of the result uninitialized, which at
    least under valgrind can show up later when those uninitialized
location_t's
    can make it into the IL or location_t hash tables.

    2021-06-24  Jakub Jelinek  <jakub@redhat.com>

            PR c/101176
            * c-parser.c (c_parser_has_attribute_expression): Set source range
for
            the result.

    (cherry picked from commit 178fb8df9315f2f8f45b7fe5faf11a9c2912cc28)


More information about the Gcc-bugs mailing list