Alexander Pyhalov <[email protected]> wrote:
> >> --- /usr/include/asm/byteorder.h (Sun cpp)
> >> +++ /usr/include/asm/byteorder.h (Schilix cpp)
> >> @@ -1,4 +1,6 @@
> >> -typedef signed char int8_t;
> >> +typedef struct _label_t { long val[6]; } label_t;
> >> +typedef unsigned char lock_t;
> >> +typedef char int8_t;
> >
> > This looks strange....
> >
> > /usr/include/asm/byteorder.h is a direct copy of
> > usr/src/uts/intel/asm/byteorder.h.
> >
> > cpp is not used to create that file and the content you are talking of
> > is not in that file.
> >
> > Or are you givng the output from processing asm/byteorder.h with cpp?
> >
>
> Yes, these are results from preprocessing asm/byteorder.h with cpp
So you get something that differs significantly from the latest OpenSolaris
sources.
Please provide more information on the problem!
The "reference" output you send cannot be created by the Sun cpp....
Note that "Sun cpp" is a K&R cpp as is my cpp, so you cannot expect something
like e.g. "signed char" on it's output as the Sun provided include files know
about K&R and avoid to output tokens not available with K&R. This lets me
assume that you did something the wrong way to create the "reference" content.
Also note that if I just call "suncpp /usr/include/sys/types.h", I get a
warning:
"/usr/include/sys/isa_defs.h", line 476: undefined control
which is this line:
#else
#error "ISA not supported"
#endif
So there is something undefined that should be defined. Looking at sys/types.h,
it seems the problem is that the K&R cpp defines i386 but not __i386 or
__i386__.
Note that suncpp defines the only the following tags on x86:
"sun", "unix", "i386", "__LINE__", "__FILE__", "__BUILTIN_VA_ARG_INCR"
My cpp #defines exactly the same tags...
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