http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57736
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-06-27 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 30397 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30397&action=edit gcc49-pr57736.patch Untested fix. If target == NULL and mode == VOIDmode, then this is a return value ignored call. Some of the calls like __builtin_nanq etc. are const and thus will be optimized away even at -O0 when lhs is missing, but as rdtsc{,p} and rdpmc aren't const/pure, they are kept.