On Nov 19, 2007, at 8:48 PM, Rich Morin wrote:
> When I run "cpp -C", the evil spaces do not appear. However,
> there's no telling what options dtrace is sending to cpp. I
> looked at the dtrace man page on Leopard, and it says:
>
> -C Run the C preprocessor cpp over D programs before compiling
> them. Options can be passed to the C preprocessor using the -D,
> -U, -I, and -H options. The degree of C standard conformance
> can be selected using the -X option. Refer to the description
> of the -X option for a description of the set of tokens defined
> by the D compiler when invoking the C preprocessor.
>
> Sadly, there _is_ no description of a -X option in either the cpp or
> dtrace man page. Sigh.
I take the blame for this, the missing -X is my fault :-(.
I don't remember details, but when I first implemented the
various levels of conformance, there were serious problems
whenever __STDC__ wasn't defined. I'm thinking it may have
even been a basic gcc header that was causing problems. I
disabled it and intended to come back to it later. We all know
how well that worked :-).
I filed:
<rdar://problem/5609671> dtrace needs to support -X (cpp std
conformance control)
James M
_______________________________________________
dtrace-discuss mailing list
[email protected]