Debugging information in GCC preprocessor output

前端 未结 1 1143
春和景丽
春和景丽 2021-01-14 14:07

I was inspecting the preprocessed output generated by GCC, and I see a lot of these in the .i file that I generated using the -save-temps flag:

相关标签:
1条回答
  • 2021-01-14 14:26

    Based on the documentation the number before the filename is the line number. The numbers after the file name are a flag and mean the following:

    • 1 indicates the start of a new file.
    • 2 indicates returning to a file (after having included another file).
    • 3 indicates that the following text comes from a system header file, so certain warnings should be suppressed.
    • 4 indicates that the following text should be treated as being wrapped in an implicit extern "C" block.
    0 讨论(0)
提交回复
热议问题