[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-14 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #7 from Andreas Schwab --- It broke the ASHIFT case. -return mask >> INTVAL (XEXP (x, 1)); +return (HOST_WIDE_INT)mask >> INTVAL (XEXP (x, 1));

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-14 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #6 from Andreas Schwab --- Probably that broke the sign extensions in carry_backpropagate.

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-14 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #5 from Andreas Schwab --- Note that the return type of carry_backpropagate should be unsigned as well, but that does not fix the crash.

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-14 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #4 from Andreas Schwab --- This breaks build for m68k: libtool: compile: /daten/aranym/gcc/test/Build/./gcc/xgcc -shared-libgcc -B/daten/aranym/gcc/test/Build/./gcc -nostdinc++ -L/daten/aranym/gcc/test/Build/m68k-linux/libstdc++-v3

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-12 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #3 from David Binderman --- I find doing a bootstrap build with -O3 -march=native, with asan & ubsan, is a useful weekly sanity check. I only have access to arm & x86_64, so the option exists to extend this testing to other machine

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 --- Comment #2 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:a6f551d079de1d151b272bcdd3d42316857c9d4e commit r15-2011-ga6f551d079de1d151b272bcdd3d42316857c9d4e Author: Jeff Law Date: Fri Jul 12

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-11 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 Sam James changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug rtl-optimization/115876] ext-dce.cc has ubsan issues; shifting negative values

2024-07-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115876 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0