/gcc/cp 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com> * typeck.c (cxx_sizeof_or_alignof_type): Add location_t parameter and use it throughout. (cxx_sizeof_expr): Likewise. (cxx_alignof_expr): Likewise. (cxx_sizeof_or_alignof_expr): Likewise. (cxx_alignas_expr): Update call. * decl.c (fold_sizeof_expr): Likewise. * pt.c (tsubst_copy): Likewise. (tsubst_copy_and_build): Likewise. * except.c (build_throw): Add location_t parameter and use it. (expand_end_catch_block): Update call. * parser.c (cp_parser_unary_expression): Update cxx_sizeof_or_alignof_type and cxx_sizeof_or_alignof_expr calls, pass the compound location. (cp_parser_throw_expression): Likewise pass the combined location to build_throw. * cp-tree.h: Update declarations. * semantics.c (finish_handler_parms): Use DECL_SOURCE_LOCATION. * decl2.c (check_classfn): Likewise. * except.c (is_admissible_throw_operand_or_catch_parameter): Exploit cp_expr_loc_or_input_loc in one place. * except.c (create_try_catch_expr): Remove, unused. /libcc1 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com> * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw and cxx_sizeof_or_alignof_expr calls. (plugin_build_unary_type_expr): Likewise for cxx_sizeof_or_alignof_type. /gcc/testsuite 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/diagnostic/alignof2.C: New. * g++.dg/diagnostic/alignof3.C: Likewise. * g++.dg/diagnostic/incomplete-type-1.C: Likewise. * g++.dg/warn/Wcatch-value-3b.C: Likewise. * g++.dg/cpp0x/alignof3.C: Check location(s) too. * g++.dg/cpp1z/decomp-bitfield1.C: Likewise. * g++.dg/cpp1z/has-unique-obj-representations2.C: Likewise. * g++.dg/expr/sizeof3.C: Likewise. * g++.dg/ext/flexary6.C: Likewise. * g++.dg/ext/vla4.C: Likewise. * g++.dg/template/sizeof11.C: Likewise. * g++.dg/warn/Wcatch-value-1.C: Likewise. * g++.dg/warn/Wcatch-value-2.C: Likewise. * g++.dg/warn/Wcatch-value-3.C: Likewise. * g++.old-deja/g++.brendan/sizeof1.C: Likewise. * g++.old-deja/g++.brendan/sizeof3.C: Likewise. * g++.old-deja/g++.brendan/sizeof4.C: Likewise. * g++.old-deja/g++.eh/ctor1.C: Likewise. * g++.old-deja/g++.jason/ambig1.C: Likewise. * g++.old-deja/g++.other/sizeof4.C: Likewise. From-SVN: r279543
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
anew1.C | Loading commit data... | |
anew2.C | Loading commit data... | |
anew3.C | Loading commit data... | |
anew4.C | Loading commit data... | |
assign1.C | Loading commit data... | |
assign2.C | Loading commit data... | |
bitfield1.C | Loading commit data... | |
bitfield10.C | Loading commit data... | |
bitfield11.C | Loading commit data... | |
bitfield12.C | Loading commit data... | |
bitfield13.C | Loading commit data... | |
bitfield14.C | Loading commit data... | |
bitfield2.C | Loading commit data... | |
bitfield3.C | Loading commit data... | |
bitfield4.C | Loading commit data... | |
bitfield5.C | Loading commit data... | |
bitfield6.C | Loading commit data... | |
bitfield7.C | Loading commit data... | |
bitfield8.C | Loading commit data... | |
bitfield9.C | Loading commit data... | |
bool1.C | Loading commit data... | |
bool2.C | Loading commit data... | |
bool3.C | Loading commit data... | |
bool4.C | Loading commit data... | |
bound-mem-fun.C | Loading commit data... | |
call1.C | Loading commit data... | |
call2.C | Loading commit data... | |
call3.C | Loading commit data... | |
call4.C | Loading commit data... | |
call5.C | Loading commit data... | |
cast1.C | Loading commit data... | |
cast10.C | Loading commit data... | |
cast11.C | Loading commit data... | |
cast2.C | Loading commit data... | |
cast3.C | Loading commit data... | |
cast4.C | Loading commit data... | |
cast6.C | Loading commit data... | |
cast7.C | Loading commit data... | |
cast8.C | Loading commit data... | |
cast9.C | Loading commit data... | |
comma1.C | Loading commit data... | |
compound-asn1.C | Loading commit data... | |
cond1.C | Loading commit data... | |
cond10.C | Loading commit data... | |
cond11.C | Loading commit data... | |
cond12.C | Loading commit data... | |
cond13.C | Loading commit data... | |
cond14.C | Loading commit data... | |
cond15.C | Loading commit data... | |
cond16.C | Loading commit data... | |
cond17.C | Loading commit data... | |
cond2.C | Loading commit data... | |
cond3.C | Loading commit data... | |
cond4.C | Loading commit data... | |
cond6.C | Loading commit data... | |
cond7.C | Loading commit data... | |
cond8.C | Loading commit data... | |
cond9.C | Loading commit data... | |
const1.C | Loading commit data... | |
copy1.C | Loading commit data... | |
crash-1.C | Loading commit data... | |
crash2.C | Loading commit data... | |
delete1.C | Loading commit data... | |
delete2.C | Loading commit data... | |
div-by-zero1.C | Loading commit data... | |
dtor1.C | Loading commit data... | |
dtor2.C | Loading commit data... | |
dtor3.C | Loading commit data... | |
dtor4.C | Loading commit data... | |
enum1.C | Loading commit data... | |
for1.C | Loading commit data... | |
for2.C | Loading commit data... | |
incomplete1.C | Loading commit data... | |
lval1.C | Loading commit data... | |
lval2.C | Loading commit data... | |
lval3.C | Loading commit data... | |
lval4.C | Loading commit data... | |
member-of-incomplete-type-1.C | Loading commit data... | |
minmax.C | Loading commit data... | |
overflow1.C | Loading commit data... | |
pmf-1.C | Loading commit data... | |
pmf-2.C | Loading commit data... | |
pmf-3.C | Loading commit data... | |
pr19355-1.C | Loading commit data... | |
pr29066.C | Loading commit data... | |
ptr-arith1.C | Loading commit data... | |
ptrmem1.C | Loading commit data... | |
ptrmem10.C | Loading commit data... | |
ptrmem4.C | Loading commit data... | |
ptrmem5.C | Loading commit data... | |
ptrmem6.C | Loading commit data... | |
ptrmem6a.C | Loading commit data... | |
ptrmem7.C | Loading commit data... | |
ptrmem8.C | Loading commit data... | |
ptrmem9.C | Loading commit data... | |
return1.C | Loading commit data... | |
sizeof1.C | Loading commit data... | |
sizeof2.C | Loading commit data... | |
sizeof3.C | Loading commit data... | |
static_cast1.C | Loading commit data... | |
static_cast2.C | Loading commit data... | |
static_cast3.C | Loading commit data... | |
static_cast4.C | Loading commit data... | |
static_cast5.C | Loading commit data... | |
static_cast6.C | Loading commit data... | |
static_cast7.C | Loading commit data... | |
static_cast8.C | Loading commit data... | |
stdarg1.C | Loading commit data... | |
stdarg2.C | Loading commit data... | |
stdarg3.C | Loading commit data... | |
stmt-expr-1.C | Loading commit data... | |
string-1.C | Loading commit data... | |
string-2.C | Loading commit data... | |
unary1.C | Loading commit data... | |
unary2.C | Loading commit data... | |
unary3.C | Loading commit data... | |
unary4.C | Loading commit data... | |
volatile1.C | Loading commit data... |