(do_line): Handle the `4' flag.
From-SVN: r5781
file_change = leave_file;
else if (*bp == '3')
ip->system_header_p = 1;
+ else if (*bp == '4')
+ ip->system_header_p = 2;
else {
error ("invalid format `#line' command");
return 0;
bp++;
SKIP_WHITE_SPACE (bp);
}
+ if (*bp == '4') {
+ ip->system_header_p = 2;
+ bp++;
+ SKIP_WHITE_SPACE (bp);
+ }
if (*bp) {
error ("invalid format `#line' command");
return 0;
*line_end++ = '3';
}
/* Tell cc1plus if following text should be treated as C. */
- if (ip->system_header_p == 2) {
+ if (ip->system_header_p == 2 && cplusplus) {
*line_end++ = ' ';
*line_end++ = '4';
}