Re: [PATCH] cpp: Correctly handle filenames with newlines

2017-10-03 Thread Matthias Klose
On 04.10.2017 00:41, Joseph Myers wrote: > On Sun, 1 Oct 2017, Rasmus Villemoes wrote: > >> 2017-10-01 Rasmus Villemoes >> >> PR preprocessor/64965 >> * gcc.c-torture/compile/pr64965.c: New test. >> >> If the current filename contains a newline character, __FILE__ would >> expan

Re: [PATCH] cpp: Correctly handle filenames with newlines

2017-10-03 Thread Joseph Myers
On Sun, 1 Oct 2017, Rasmus Villemoes wrote: > 2017-10-01 Rasmus Villemoes > > PR preprocessor/64965 > * gcc.c-torture/compile/pr64965.c: New test. > > If the current filename contains a newline character, __FILE__ would > expand to a string literal containing an actual embedde

[PATCH] cpp: Correctly handle filenames with newlines

2017-09-30 Thread Rasmus Villemoes
2017-10-01 Rasmus Villemoes PR preprocessor/64965 * gcc.c-torture/compile/pr64965.c: New test. If the current filename contains a newline character, __FILE__ would expand to a string literal containing an actual embedded newline, which is of course illegal. Similarly, even in t