While inspecting a different issue, an inserted "#warning" was not displayed with pcc
Attached is a testcase and a proposed patch for <pcc>/cc/cpp/token.c
The codepath in the testcase can be modified with -DWARN_INSIDE_IF
PCC is still a bit different with the proposed patch, but i see no need to imitate that behaviour yet:
- gcc remove the comments in a warning
- gcc bail out on unterminated quotes
- gcc convert TAB and SPACE in the warning text to a single space
Why has <pcc>/cc/cpp/scanner.l similar code?
When is scanner.l used?
By by ... Detlef