[Bug c++/54899] New: -fpredictive-commoning and -ftree-vectorize optimizations generate a nonsensical binary which segfaults

2012-10-11 Thread phiren at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54899 Bug #: 54899 Summary: -fpredictive-commoning and -ftree-vectorize optimizations generate a nonsensical binary which segfaults Classification: Unclassified Produ

[Bug middle-end/33989] Extra load/store for float with union

2010-11-11 Thread phiren at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33989 Scott Mansell changed: What|Removed |Added CC||phiren at gmail dot com --- Comment #12

[Bug middle-end/33989] Extra load/store for float with union

2010-11-11 Thread phiren at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33989 --- Comment #14 from Scott Mansell 2010-11-12 03:15:21 UTC --- I downloaded and compiled the 2010-11-6 snapshot of gcc 4.6. I'm still getting the extra load/store in ppc with -O3. .L.f: lfs 0,0(3) fadds 0,1,0 stfs 0,-16(1) lwz 0,

[Bug middle-end/33989] Extra load/store for float with union

2010-11-11 Thread phiren at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33989 --- Comment #15 from Scott Mansell 2010-11-12 04:04:25 UTC --- Weirdly, it works fine with doubles. Testcase: union a { long int i; double f; }; void d(double *a, long int *b, double e) { union a c; c.f = *a + e; *b = c.i; } Results