[Bug c++/38297] O2 causes invalid code

2008-11-28 Thread cdfrey at netdirect dot ca
--- Comment #12 from cdfrey at netdirect dot ca 2008-11-28 23:36 --- > The reason why the union case is considered > unspecified is because it depends on the under > laying bit representation of float. That makes sense. In this case, it's not really a type punning issue

[Bug c++/38297] O2 causes invalid code

2008-11-28 Thread cdfrey at netdirect dot ca
--- Comment #8 from cdfrey at netdirect dot ca 2008-11-28 19:24 --- Why is the union access not portable, and listed as a GCC extension? According to the quotation of the standard at: http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html (this link is found in the GCC docs on

[Bug c++/25235] byte swapping unreliable in optimized builds

2005-12-04 Thread cdfrey at netdirect dot ca
--- Comment #4 from cdfrey at netdirect dot ca 2005-12-05 04:00 --- Just adding a link to a comp.lang.c++.moderated discussion on this, for future reference, when other folks run into this again. Subject line: alias rules and optimization http://groups.google.ca/group/comp.lang.c

[Bug c++/25235] byte swapping unreliable in optimized builds

2005-12-02 Thread cdfrey at netdirect dot ca
--- Comment #2 from cdfrey at netdirect dot ca 2005-12-03 00:32 --- Thanks for the info! I can understand the examples in the article at http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html but with my example source code in this bug report, I can't seem to follo

[Bug c++/25235] New: byte swapping unreliable in optimized builds

2005-12-02 Thread cdfrey at netdirect dot ca
cc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cdfrey at netdirect dot ca http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235