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

            Bug ID: 127705
           Summary: valgrind error in function vect_schedule_scc, line
                    12809
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 65745
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65745&action=edit
C source code

For the attached C code, compiled by a recent gcc trunk with 
valgrind switched on, does this:

$ ../results.20260926.valgrind/bin/gcc -c -O2 -march=znver3 bug1243.c
==702129== Invalid read of size 8
==702129==    at 0x484F2E1: memmove (vg_replace_strmem.c:1429)
==702129==    by 0xEEEB60: vect_schedule_scc(vec_info*, _slp_tree*,
_slp_instance*, hash_map<_slp_tree*, slp_scc_info,
simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&,
vec<_slp_tree*, va_heap, vl_ptr>&, bool) (tree-vect-slp.cc:12809)
==702129==    by 0xEEF444: vect_schedule_scc(vec_info*, _slp_tree*,
_slp_instance*, hash_map<_slp_tree*, slp_scc_info,
simple_hashmap_traits<default_hash_traits<_slp_tree*>, slp_scc_info> >&, int&,
vec<_slp_tree*, va_heap, vl_ptr>&, bool) (tree-vect-slp.cc:12768)

$ ../results.20260926.valgrind/bin/gcc -v 2>&1 | grep exp
gcc version 17.0.0 20260925 (experimental) (36aa829e54652ed7) 
$

The problem seems to exist since sometime before g:c5c5fe47a628c8d2,
dated 20260901

Reply via email to