[Bug c++/60747] the tree-vrp compilation flag produce wrong assembly

2014-04-03 Thread techsgin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60747 tech changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #6 from tech --- We have alread

[Bug c++/60747] the tree-vrp compilation flag produce wrong assembly

2014-04-03 Thread techsgin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60747 --- Comment #3 from tech --- Created attachment 32534 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32534&action=edit Assembly of O2 WITH tree-vrp Assembly of O2 WITH tree-vrp .file"main.cpp" .text .p2align 4,,15 .globl _Z7

[Bug c++/60747] the tree-vrp compilation flag produce wrong assembly

2014-04-03 Thread techsgin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60747 --- Comment #2 from tech --- Created attachment 32533 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32533&action=edit Assembly of O2 no tree-vrp Assembly of O2 no tree-vrp .file"main.cpp" .text .p2align 4,,15 .globl _Z7hash

[Bug c++/60747] New: the tree-vrp compilation flag produce wrong assembly

2014-04-03 Thread techsgin at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: techsgin at gmail dot com Hi At optimization level O2 the results of return value of short if are miss calculated i.e wrong results. see example Solution: Don't use the tree-vrp compilation flag i.e add -fno-tre