Commit ce8d906
v3: keep V3/C fallback bug-report output off stdout so
send_prepared_c_error_bug_report and submit_v3_compiler_error_bug_report printed
the bug-report banner, the uploaded C/V context, and status lines with println.
For `v -o - source.v`, V1 has already written the generated C to stdout in
builder.cc; appending the report there corrupts the documented `-o -` output for
exactly the programs that needed the compatibility fallback (and the upload
succeeding made it worse, since that path prints the most text).
Emit all report diagnostics on stderr (eprintln), matching the fallback notice,
which was already on stderr. Covers both the generated-C path
(send_prepared_c_error_bug_report + print_c_error_bug_report_context +
print_report_lines) and the V3 internal-error path
(submit_v3_compiler_error_bug_report). Adds an e2e test that a `-o -` fallback
build keeps stdout as pure generated C while the report goes to stderr.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>v -o - stays valid C (PR #28131 review)1 parent f8c4282 commit ce8d906
2 files changed
Lines changed: 91 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1650 | 1720 | | |
1651 | 1721 | | |
1652 | 1722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
184 | 187 | | |
185 | | - | |
| 188 | + | |
186 | 189 | | |
187 | | - | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
474 | 477 | | |
475 | 478 | | |
476 | 479 | | |
477 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
478 | 484 | | |
479 | 485 | | |
480 | | - | |
| 486 | + | |
481 | 487 | | |
482 | | - | |
483 | | - | |
| 488 | + | |
| 489 | + | |
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| |||
1242 | 1248 | | |
1243 | 1249 | | |
1244 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
1245 | 1253 | | |
1246 | | - | |
| 1254 | + | |
1247 | 1255 | | |
1248 | 1256 | | |
1249 | | - | |
| 1257 | + | |
1250 | 1258 | | |
1251 | 1259 | | |
1252 | | - | |
| 1260 | + | |
1253 | 1261 | | |
1254 | 1262 | | |
1255 | 1263 | | |
1256 | 1264 | | |
1257 | 1265 | | |
1258 | | - | |
| 1266 | + | |
1259 | 1267 | | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
1263 | | - | |
| 1271 | + | |
1264 | 1272 | | |
1265 | 1273 | | |
1266 | 1274 | | |
| |||
0 commit comments