(xop_mulv2div2di3_low): Remove insn_and_split pattern.
(xop_mulv2div2di3_high): Ditto.
+2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR c++/53289
+ * diagnostic.h (diagnostic_context): Add last_location.
+ * diagnostic.c (diagnostic_initialize): Initialize it.
+ (diagnostic_show_locus): Use it.
+
2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
* doc/extend.texi (Function Attributes): Point xref to section
context->option_enabled = NULL;
context->option_state = NULL;
context->option_name = NULL;
+ context->last_location = UNKNOWN_LOCATION;
context->last_module = 0;
context->x_data = NULL;
context->lock = 0;
if (!context->show_caret
- || diagnostic->location <= BUILTINS_LOCATION)
+ || diagnostic->location <= BUILTINS_LOCATION
+ || diagnostic->location == context->last_location)
return;
+ context->last_location = diagnostic->location;
s = expand_location_to_spelling_point (diagnostic->location);
line = location_get_source_line (s);
if (line == NULL)
/* Auxiliary data for client. */
void *x_data;
+ /* Used to detect that the last caret was printed at the same location. */
+ location_t last_location;
+
/* Used to detect when the input file stack has changed since last
described. */
const struct line_map *last_module;