[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 --- Comment #6 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:70099a6acf5169eca55ef74549fb64de14e668f0 commit r11-7242-g70099a6acf5169eca55ef74549fb64de14e668f0 Author: Jakub Jelinek Date:

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 Jakub Jelinek changed: What|Removed |Added Attachment #50176|0 |1 is obsolete|

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 --- Comment #4 from Jakub Jelinek --- Ah, except we introduce UB into the program because (1 << var) - 1 when var is 31 will be INT_MIN - 1. I think we should do the subtraction of 1 in utype then.

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 Jakub Jelinek changed: What|Removed |Added Attachment #50175|0 |1 is obsolete|

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 --- Comment #2 from Jakub Jelinek --- Created attachment 50175 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50175=edit gcc11-pr99079.patch Untested fix. The problem is that the tree_nop_conversion_p (type, TREE_TYPE (@3)) test actually

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug tree-optimization/99079] Maybe a wrong code since r6-1462-g4ab1e111ef0669bb

2021-02-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99079 --- Comment #1 from Martin Liška --- I forgot to mention: $ g++ x.cpp -O && ./a.out arr: 602669924 Aborted (core dumped)