[Bug c++/64755] Error in optimization with std::array

2015-01-25 Thread mednafen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64755 mednafen at gmail dot com changed: What|Removed |Added CC||mednafen at gmail dot com

[Bug c++/64755] Error in optimization with std::array

2015-01-25 Thread mednafen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64755 --- Comment #3 from mednafen at gmail dot com --- It looks like your code violates strict aliasing rules. Does the code in question work as you intend it to if you compile with -fno-strict-aliasing ?

[Bug c/63843] New: wrong code generation at -O1 and higher

2014-11-12 Thread mednafen at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: mednafen at gmail dot com Created attachment 33955 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33955action=edit Testcase, good output is 8181. trunk revision 217451 gcc (GCC) 5.0.0 20141112 (experimental) Linux x86_64

[Bug c/63729] New: Type-punning through a union fails to circumvent strict aliasing under certain conditions.

2014-11-03 Thread mednafen at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mednafen at gmail dot com Linux x86_64, gcc 4.9.2 Bad: $ gcc -Wall -O2 -o pun pun.c $ ./pun 0x0005 Good: $ gcc -Wall -fno-strict-aliasing -O2 -o pun pun.c

[Bug c/63729] Type-punning through a union fails to circumvent strict aliasing under certain conditions.

2014-11-03 Thread mednafen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63729 --- Comment #2 from mednafen at gmail dot com --- If this construct is invalid as you say it is, then how exactly is one supposed to access data of arbitrary types at arbitrary byte offsets in a contiguous chunk of memory?

[Bug c/63729] Type-punning through a union fails to circumvent strict aliasing under certain conditions.

2014-11-03 Thread mednafen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63729 mednafen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug target/63661] [4.9/5 Regression] -O2 miscompiles on OSX 10.10 Yosemite

2014-11-02 Thread mednafen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63661 mednafen at gmail dot com changed: What|Removed |Added CC||mednafen at gmail dot com

[Bug c/58454] New: Potentially wrong(or at least weird/inconsistent) code generation with -O2 -fno-strict-overflow

2013-09-17 Thread mednafen at gmail dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mednafen at gmail dot com Created attachment 30844 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30844action=edit Testcase program. Working: XXX@willow

[Bug c/58454] Potentially wrong(or at least weird/inconsistent) code generation with -O2 -fno-strict-overflow

2013-09-17 Thread mednafen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58454 --- Comment #2 from mednafen at gmail dot com --- Your assertion conflicts with the gcc 4.2 release change-list at http://gcc.gnu.org/gcc-4.2/changes.html when the strict-overflow options were added. Additionally, -fwrapv produces unnecessarily

[Bug c/56125] New: -O2 -ffast-math generates bad code when dividing a double by the square of another double.

2013-01-27 Thread mednafen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56125 Bug #: 56125 Summary: -O2 -ffast-math generates bad code when dividing a double by the square of another double. Classification: Unclassified Product: gcc Version: