gcc/c-family/ChangeLog: * c-common.c (binary_op_error): Convert first param from location_t to rich_location * and use it when emitting an error. * c-common.h (binary_op_error): Convert first param from location_t to rich_location *. gcc/c/ChangeLog: * c-typeck.c: Include "gcc-rich-location.h". (build_binary_op): In the two places that call binary_op_error, create a gcc_rich_location and populate it with the location of the binary op and its two operands. gcc/cp/ChangeLog: * typeck.c (cp_build_binary_op): Update for change in signature of build_binary_op. Use error_at to replace an implicit use of input_location with param "location" in "invalid operands" error. (cp_build_binary_op): Replace an error with an error_at, using "location", rather than implicitly using input_location. gcc/testsuite/ChangeLog: * g++.dg/diagnostic/bad-binary-ops.C: New test case. * gcc.dg/bad-binary-ops.c: New test case. gcc.dg/plugin/diagnostic_plugin_show_trees.c (get_range_for_expr): Remove material copied from gcc-rich-location.c (gcc_rich_location::add_expr): Likewise. From-SVN: r231884
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
aka1.C | Loading commit data... | |
bad-binary-ops.C | Loading commit data... | |
bindings1.C | Loading commit data... | |
bitfld1.C | Loading commit data... | |
bitfld2.C | Loading commit data... | |
disable.C | Loading commit data... | |
expr1.C | Loading commit data... | |
inhibit-warn-1.C | Loading commit data... | |
inhibit-warn-2.C | Loading commit data... | |
method1.C | Loading commit data... | |
parm1.C | Loading commit data... | |
pr13981.C | Loading commit data... | |
pr58979.C | Loading commit data... | |
pr59838.C | Loading commit data... | |
pr60862.C | Loading commit data... | |
pr61004.C | Loading commit data... | |
ref1.C | Loading commit data... | |
ref2.C | Loading commit data... | |
variadic1.C | Loading commit data... | |
wrong-tag-1.C | Loading commit data... |