On 02/10/2015 19:35, Joerg Schilling wrote:
Alexander Pyhalov <[email protected]> wrote:

Note that you need the schily printf() code as Illumos does not support %r in
the libc printf.


   grep printf src/* |grep %r
^ shows nothing

Are you talking y<bout libc/src????

I tried the compile Schilly cpp with gcc. That's results on
/usr/include/asm/byteorder.h.

No, I actually got sources from http://sourceforge.net/p/schillix-on/schillix-on/ci/default/tree/usr/src/cmd/cpp/, put them in src/ subdirectory of cpp oi-userland component (and massaged them until they built, sometimes looking at Joyent sources).


If you get different results with your gcc, please chdir to cpp
and then run:

        smake -d

to get the command line.

Then use cc -E vs. gcc -E to find differences in the preprocessed version of
cpp.c

BTW: I did just run a test with my test source XXX.c and could discover that
the gcc compilation result defines one tag more than the Sun cc compilation and
this is:

        __i386__


Thanks again. After commenting

# if __i386__
/*      varloc=stsym ("__i386__"); */
# endif

I receive identical output from gcc-compiled cpp and cc-compiled cpp. They seems to differ from Sun cpp output only by spaces.
I like it...

--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department


-------------------------------------------
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