re PR c++/56302 (sys/sdt.h asms stopped working at -O0)
authorJakub Jelinek <jakub@redhat.com>
Wed, 13 Feb 2013 16:09:27 +0000 (17:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 13 Feb 2013 16:09:27 +0000 (17:09 +0100)
commit6760071f307c18d0aef50f9c848d15cb7c1a687d
treec87a849d123fb35e51e20d6ce9d167ff6c8400ee
parent6422242b91c9568e93010d3d323ceb57a15aa751
re PR c++/56302 (sys/sdt.h asms stopped working at -O0)

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.

From-SVN: r196018
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr56302.c [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-56302.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr56302.C [new file with mode: 0644]