[Bug c/97789] New: valgrind error with ./gcc.dg/c11-atomic-2.c

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 10 21:03:25 GMT 2020


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

            Bug ID: 97789
           Summary: valgrind error with ./gcc.dg/c11-atomic-2.c
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For the C testsuite file ./gcc.dg/c11-atomic-2.c and recent
gcc trunk compiled with valgrind and
with compiler flag -O2, I get this:

$ /home/dcb/gcc/results.20201107.valgrind/bin/gcc -c -w -O2
./gcc.dg/c11-atomic-2.c
==640132== Invalid write of size 4
==640132==    at 0xD63AE7: mark_deleted (tree-ssa-pre.c:594)
==640132==    by 0xD63AE7: mark_deleted (hash-table.h:546)
==640132==    by 0xD63AE7: clear_slot (hash-table.h:895)
==640132==    by 0xD63AE7: phi_translate(bitmap_set*, pre_expr_d*, bitmap_set*,
bitmap_set*, edge_def*) (tree-ssa-pre.c:1745)


More information about the Gcc-bugs mailing list