[Bug c++/56302] [4.8 Regression] sys/sdt.h asms stopped working at -O0

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 13 16:10:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56302

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-13 16:09:35 UTC ---
Author: jakub
Date: Wed Feb 13 16:09:27 2013
New Revision: 196018

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196018
Log:
    PR c++/56302
    * semantics.c (finish_asm_stmt): If input constraints allow
    neither register nor memory, try maybe_constant_value to get
    a constant if possible.

    * g++.dg/torture/pr56302.C: New test.
    * g++.dg/cpp0x/constexpr-56302.C: New test.
    * c-c++-common/pr56302.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/pr56302.c
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-56302.C
    trunk/gcc/testsuite/g++.dg/torture/pr56302.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list