This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cpp again


Hi All,

I narrowed down a problem that break my builds...

C4N1$ cat c.c
#define L "cd"
s="ab" L "ef";
s="ab"L "ef";
s="ab" L"ef";
s="ab"L"ef";

C4N1$ cc -E c.c
# 1 "c.c"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "c.c"

s="ab" "cd" "ef";
s="ab""cd" "ef";
s="ab" L"ef";
s="ab"L"ef";

C4N1$

Why the last 2 L are not expansed ? other compilers (non linux) do
expand all of them.

Thanx on advance
Cheers,
Phi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]