https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120061
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Unfortunately the 14 patch regresses +FAIL: c-c++-common/analyzer/named-constants-via-macros-traditional.c (test for warnings, line 13) +FAIL: c-c++-common/analyzer/named-constants-via-macros-traditional.c (test for warnings, line 14) +FAIL: c-c++-common/analyzer/named-constants-via-macros-traditional.c (test for warnings, line 15) +FAIL: c-c++-common/analyzer/named-constants-via-macros-traditional.c (test for excess errors) +FAIL: c-c++-common/cpp/line-4.c -Wc++-compat scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: gcc.dg/cpp/trad/Wunused.c (test for warnings, line 17) +FAIL: gcc.dg/cpp/trad/Wunused.c (test for excess errors) +FAIL: gcc.dg/cpp/trad/builtins.c (test for excess errors) +UNRESOLVED: gcc.dg/cpp/trad/builtins.c compilation failed to produce executable and +FAIL: c-c++-common/cpp/line-4.c -std=gnu++11 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++14 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++17 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++20 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++23 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++26 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n +FAIL: c-c++-common/cpp/line-4.c -std=gnu++98 scan-file #define bill\\\\(\\\\) 2\\\\n# 0 "<command-line>" 2\\\\n# 1 "[^\\\\n]*/line-4.c"\\\\nint line1;\\\\n with the problem being in the to_line = SOURCE_LINE (from, linemap_included_from (map - 1)) + 1; hunk, where in line-4.c that yields to_line = 1 instead of 0 after getting back from <command line> and similarly differences from -traditional-cpp. So, perhaps that case needs to be conditionalized on from[1].reason == LC_RENAME.