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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |marxin at gcc dot gnu.org
            Summary|stringop-overflow           |[12/13 Regression]
                   |misbehaviour on atomic      |stringop-overflow
                   |                            |misbehaviour on atomic
                   |                            |since
                   |                            |r12-4725-g88b504b7a8c5affb

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-4725-g88b504b7a8c5affb.

$ gcc haproxy.i -c -Wno-address-of-packed-member -O2 -Werror
haproxy.i: In function ‘run_poll_loop’:
haproxy.i:32760:11: error: ‘__atomic_load_8’ writing 8 bytes into a region of
size 0 overflows the destination [-Werror=stringop-overflow=]
32760 |      if ((__atomic_load_n(&ha_tgroup_ctx[i].stopping_threads, 0) &
ha_tgroup_info[i].threads_enabled) !=
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
haproxy.i:11985:26: note: at offset 80 into destination object ‘ha_tgroup_ctx’
of size 64
11985 | extern struct tgroup_ctx ha_tgroup_ctx[1];
      |                          ^~~~~~~~~~~~~
cc1: all warnings being treated as errors

Reply via email to