+2018-11-30 David Malcolm <dmalcolm@redhat.com>
+
+ PR preprocessor/88257
+ * input.c (get_substring_ranges_for_loc): Fix indentation.
+ Bulletproof against getting a different files back from
+ linemap_resolve_location and expand_location_to_spelling_point.
+
2018-11-30 Alexander Monakov <amonakov@ispras.ru>
PR gcov-profile/88279
for start vs finish due to line-length jumps. */
if (start_ord_map != final_ord_map
&& start_ord_map->to_file != final_ord_map->to_file)
- return "start and finish are spelled in different ordinary maps";
+ return "start and finish are spelled in different ordinary maps";
+ /* The file from linemap_resolve_location ought to match that from
+ expand_location_to_spelling_point. */
+ if (start_ord_map->to_file != start.file)
+ return "mismatching file after resolving linemap";
+
location_t start_loc
= linemap_position_for_line_and_column (line_table, final_ord_map,
start.line, start.column);
+2018-11-30 David Malcolm <dmalcolm@redhat.com>
+
+ PR preprocessor/88257
+ * c-c++-common/Wformat-pr88257.c: New test.
+ * c-c++-common/Wformat-pr88257.h: New test header.
+ * c-c++-common/empty.h: New test header.
+
2018-11-30 Sam Tebbs <sam.tebbs@arm.com>
* gcc.target/arm/neon-dotprod-restriction.c: New file.
PR sanitizer/81715
* c-c++-common/asan/asan-stack-small.c: New test.
->>>>>>> .r266664
2018-11-30 Richard Biener <rguenther@suse.de>
* gcc.dg/gimplefe-34.c: New testcase.
--- /dev/null
+/* { dg-options "-Wformat -fdiagnostics-show-caret" } */
+
+#include "Wformat-pr88257.h"
+
+void test (const char *msg)
+{
+ __builtin_printf ("size: %" PRIu32 "\n", msg); /* { dg-warning "expects argument of type" } */
+ /* { dg-begin-multiline-output "" }
+ __builtin_printf ("size: %" PRIu32 "\n", msg);
+ ^~~~~~~~~ ~~~
+ |
+ const char *
+ { dg-end-multiline-output "" { target c } } */
+ /* { dg-begin-multiline-output "" }
+ # define PRIu32 "u"
+ { dg-end-multiline-output "" { target c } } */
+ /* { dg-begin-multiline-output "" }
+ __builtin_printf ("size: %" PRIu32 "\n", msg);
+ ^~~~~~~~~~~~~~~~~~~~~ ~~~
+ |
+ const char*
+ { dg-end-multiline-output "" { target c++ } } */
+}
--- /dev/null
+#pragma GCC system_header
+
+/* Whitespace is significant here, due to line numbering.
+ See the comment below.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ End of significant whitespace */
+
+#include "empty.h"
+/* The preceding include ensures a line map starts here, with a line
+ number greater than that of the usage site, to try to trigger
+ an assertion failure. */
+
+# define PRIu32 "u"