[Bug c++/32697] O2 optimizes away assignment

2007-07-09 Thread sorenj at us dot ibm dot com
--- Comment #2 from sorenj at us dot ibm dot com 2007-07-09 13:55 --- Please refer to https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1560993&group_id=1645 Long story short - as it stands today: C++ standards team won't change the spec to allow type punnin

[Bug c/28073] Type-punned pointer passed as function parameter generates bad assembly sequence

2006-06-19 Thread sorenj at us dot ibm dot com
--- Comment #2 from sorenj at us dot ibm dot com 2006-06-19 16:44 --- Changing just one line of the test program to the (AFAIK) legal C code. By casting through void *, we are addressing Andrew's concerns about violating the C rules. Foo *pFoo = *(Foo **) ((void *)&am

[Bug c/28073] New: Type-punned pointer passed as function parameter generates bad assembly sequence

2006-06-17 Thread sorenj at us dot ibm dot com
gnu dot org ReportedBy: sorenj at us dot ibm dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28073