lkml.org 
[lkml]   [2012]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: dtc: import latest upstream dtc
Date
> Oh, that's strange.  I'm pretty sure I've used -x assembler when I've
> experimented with using cpp on dts manually before, and it seems to
> have worked.

Maybe you used "-x assembler-with-cpp"? That should work better ;-)
Or just use the "-traditional-cpp" option, i.e. "gcc -E -traditional-
cpp".

> Note that IIRC with gcc cpp, -x assembler also means
> that # won't be handled as a cpp directive except in column 0 which is
> also an advantage for us, although no longer essential with your
> escaping support. Not all cpps have an equivalent option, though.

This is how the traditional C pre-processor behaves. I don't think
this is exactly what matters for DTS, or does it ever happen that
you have a # preceded only by whitespace? The # and ## stringification
and token pasting ops will of course bite you with the ISO C pre-
processor,
indeed.


Segher



\
 
 \ /
  Last update: 2012-10-13 16:21    [W:0.087 / U:2.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site