diff options
author | Marek Polacek <polacek@redhat.com> | 2019-08-07 14:20:40 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-08-07 14:20:40 +0000 |
commit | 529bc4103b78fa16cbd93d7947724472a4ffb31e (patch) | |
tree | d4855ef69ac242d4c4342067cb9a3958413af358 /gcc/lto-wrapper.c | |
parent | 699ce759c278cd4f8ccc4dc53f185f6d3142d990 (diff) | |
download | gcc-529bc4103b78fa16cbd93d7947724472a4ffb31e.zip gcc-529bc4103b78fa16cbd93d7947724472a4ffb31e.tar.gz gcc-529bc4103b78fa16cbd93d7947724472a4ffb31e.tar.bz2 |
PR c++/91346 - Implement P1668R1, allow unevaluated asm in constexpr.
* constexpr.c (cxx_eval_constant_expression): Handle ASM_EXPR.
(potential_constant_expression_1) <case ASM_EXPR>: Allow.
* cp-tree.h (finish_asm_stmt): Adjust.
* parser.c (cp_parser_asm_definition): Grab the locaion of "asm" and
use it. Change an error to a pedwarn. Allow asm in C++2a, warn
otherwise.
* pt.c (tsubst_expr): Pass a location down to finish_asm_stmt.
* semantics.c (finish_asm_stmt): New location_t parameter. Use it.
* g++.dg/cpp2a/inline-asm1.C: New test.
* g++.dg/cpp2a/inline-asm2.C: New test.
* g++.dg/cpp1y/constexpr-neg1.C: Adjust dg-error.
From-SVN: r274169
Diffstat (limited to 'gcc/lto-wrapper.c')
0 files changed, 0 insertions, 0 deletions