On Wed, 2 Dec 2015, Jakub Jelinek wrote: > Hi! > > As the testcases show, we can happily emit e.g. > { #pragma omp single > in the -E preprocessed output, which is not valid C/C++, > the preprocessing directives have to be at the beginning of line > or there can be optional whitespace before them. But for -fpreprocessed > input there is even a stronger requirement - they have to be at the > beginning of line. > > c-ppoutput.c already had a print.printed flag for it, but it has not > been updated in all the spots where it should be. The following patch > ensures that print.printed is true if the last printed character is not a > newline (except for short chunks of code that obviously don't care about the > value of the flag). > > I've compared preprocessed dwarf2out.c before/after the patch (both -E and > -E -P), and the patch makes no difference for that case. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK. -- Joseph S. Myers jos...@codesourcery.com