[Bug target/68785] [6 Regression] valgrind reports issues with folding on x86_64

2015-12-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68785 --- Comment #2 from Richard Biener --- I believe this can happen when native_encode_expr encodes less than the requested number of bytes (thus the program invokes undefined behavior). In this case we read 4 bytes from "" (an empty string). I'm

[Bug target/68785] [6 Regression] valgrind reports issues with folding on x86_64

2015-12-08 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68785 --- Comment #1 from Markus Trippelsdorf --- Created attachment 36952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36952=edit unreduced testcase Here's a reproducer: trippels@CFARM-IUT-TLSE3 linux % valgrind --track-origins=yes