[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 Markus Trippelsdorf changed: What|Removed |Added Attachment #32305|0 |1 is obsolete|

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread trippels at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 Markus Trippelsdorf changed: What|Removed |Added CC||trippels at gcc dot gnu.org --- Com

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #13 from Allan Jensen --- (In reply to Andrew Pinski from comment #12) > tmpPtBlock->pts = reinterpret_cast *>(tmpPtBlock->data); > > Does this not violate C/C++ aliasing rules later on? > > I think data should be cha

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #12 from Andrew Pinski --- tmpPtBlock->pts = reinterpret_cast(tmpPtBlock->data); Does this not violate C/C++ aliasing rules later on? I think data should be char array with the alignment of QPoint instead of an int ar

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #11 from Allan Jensen --- Note that to run it, it links against Qt5Core.

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #10 from Allan Jensen --- I have uploaded a reduced test. Compiled with -O0 or -O1 it outputs 180, compiled with -O2 or higher it outputs 179.

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #9 from Allan Jensen --- Created attachment 32304 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32304&action=edit Reduced test assembler

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #8 from Allan Jensen --- Created attachment 32303 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32303&action=edit Reduced test

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-07 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #7 from Richard Biener --- (In reply to Allan Jensen from comment #6) > I posted like this in case the description would be enough to make someone > know where to look. If you need to debug it and dig into it, I will try to > make a pr

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-06 Thread linux at carewolf dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 --- Comment #6 from Allan Jensen --- (In reply to Richard Biener from comment #5) > Can you identify the inlined call? Is it > > if (pSLL && y == pSLL->scanline) { > loadAET(&AET, pSLL->edgelist); >

[Bug middle-end/60429] Miscompilation (aliasing) with -finline-functions

2014-03-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60429 Richard Biener changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIRME