Udo Grabowski via illumos-discuss <[email protected]> wrote:

> This one ?
> <http://docs.oracle.com/cd/E19205-01/819-5267/6n7c46dnd/index.html>
>
> "2.5.4 #error
> The #error directive no longer continues compilation after issuing a warning. 
> The previous behavior of the directive was to issue a warning and continue 
> compilation. The new behavior, consistent with other compilers, is to issue 
> an 
> error message and immediately halt compilation. The compiler quits and 
> reports 
> the failure."
>
> But why it's reported as "undefined control" ?

Because the K&R cpp does not understand it.

The Schily cpp knows about #error and forwards it to the compiler. This is an 
intended difference that is not important for dtrace, as dtrace calls cpp
with the right command line that prevents the #error from being seen.

Jörg

-- 
 EMail:[email protected]                    (home) Jörg Schilling D-13353 Berlin
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'


-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to