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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xry111 at gcc dot gnu.org

--- Comment #2 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
With GCC 12 the expression is "optimized" early (already in original tree)
into:

g_A[0] = g_A[0] + (unsigned char) ((signed char) ((unsigned char) g_A[1] *
(unsigned char) g_B) & (signed char) (g_A[1] & g_A[0]) | (signed char) g_A[0])

and the optimization is arguably wrong (or at lease undesired) with sanitizer.

Reply via email to