https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101210
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[7/8/9/10/11/12 regression] |[9/10/11/12 regression]
|spurious "reference binding |spurious "reference binding
|to misaligned address" |to misaligned address"
|ubsan error for integer |ubsan error for integer
|comparison |comparison
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |9.5
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think this is caused by the PR70920 fix
r7-2226-g8f63caf6826e918678482413161e34b037a13fa7
We have (long) y == 1 where y has REFERENCE_TYPE and that match.pd
rule transforms it into y == 1 where 1 has also that REFERENCE_TYPE.
As ubsan instrumentation happens on partially GENERIC folded trees, doing that
in GENERIC for REFERENCE_TYPE is wrong, we should defer it to GIMPLE.