/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 |
|---|---|---|
| .. | ||
| badalloc1.C | Loading commit data... | |
| catch1.C | Loading commit data... | |
| catch10.C | Loading commit data... | |
| catch11.C | Loading commit data... | |
| catch12.C | Loading commit data... | |
| catch13.C | Loading commit data... | |
| catch14.C | Loading commit data... | |
| catch2.C | Loading commit data... | |
| catch3.C | Loading commit data... | |
| catch3p.C | Loading commit data... | |
| catch4.C | Loading commit data... | |
| catch4p.C | Loading commit data... | |
| catch5.C | Loading commit data... | |
| catch5p.C | Loading commit data... | |
| catch6.C | Loading commit data... | |
| catch6p.C | Loading commit data... | |
| catch7.C | Loading commit data... | |
| catch7p.C | Loading commit data... | |
| catch8.C | Loading commit data... | |
| catch8p.C | Loading commit data... | |
| catch9.C | Loading commit data... | |
| catch9p.C | Loading commit data... | |
| catchptr1.C | Loading commit data... | |
| cleanup1.C | Loading commit data... | |
| cleanup2.C | Loading commit data... | |
| cond1.C | Loading commit data... | |
| crash1.C | Loading commit data... | |
| crash2.C | Loading commit data... | |
| crash3.C | Loading commit data... | |
| crash4.C | Loading commit data... | |
| crash5.C | Loading commit data... | |
| crash6.C | Loading commit data... | |
| ctor1.C | Loading commit data... | |
| flow1.C | Loading commit data... | |
| fntry1.C | Loading commit data... | |
| ia64-1.C | Loading commit data... | |
| inline1.C | Loading commit data... | |
| inline2.C | Loading commit data... | |
| new1.C | Loading commit data... | |
| new2.C | Loading commit data... | |
| pdel1.C | Loading commit data... | |
| pdel2.C | Loading commit data... | |
| ptr1.C | Loading commit data... | |
| ptrmem1.C | Loading commit data... | |
| rethrow1.C | Loading commit data... | |
| rethrow2.C | Loading commit data... | |
| rethrow3.C | Loading commit data... | |
| rethrow4.C | Loading commit data... | |
| rethrow5.C | Loading commit data... | |
| rethrow6.C | Loading commit data... | |
| spec1.C | Loading commit data... | |
| spec2.C | Loading commit data... | |
| spec3.C | Loading commit data... | |
| spec4.C | Loading commit data... | |
| spec5.C | Loading commit data... | |
| spec6.C | Loading commit data... | |
| spec7.C | Loading commit data... | |
| terminate1.C | Loading commit data... | |
| terminate2.C | Loading commit data... | |
| throw1.C | Loading commit data... | |
| throw2.C | Loading commit data... | |
| tmpl1.C | Loading commit data... | |
| tmpl2.C | Loading commit data... | |
| tmpl3.C | Loading commit data... | |
| tmpl4.C | Loading commit data... | |
| tmpl5.C | Loading commit data... | |
| tmpl6.C | Loading commit data... | |
| unwind1.C | Loading commit data... | |
| vbase1.C | Loading commit data... | |
| vbase2.C | Loading commit data... | |
| vbase3.C | Loading commit data... | |
| vbase4.C | Loading commit data... |