[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: pcc-100407 comments
From:       Thorsten Glaser <tg () mirbsd ! de>
Date:       2010-04-10 14:46:55
Message-ID: Pine.BSM.4.64L.1004101441330.27243 () herc ! mirbsd ! org
[Download RAW message or body]

Nelson H. F. Beebe dixit:

>>> Please clarify: is that MirOS BSD #10/i386 (2008-03-16)
>>> or MirOS BSD #10-current/i386 (newer)?
>
>% uname -a
>MirBSD XXXX  10 GENERIC#1242 i386 i386 Dual-Core AMD Opteron(tm) Processor 2220
>("AuthenticAMD" 686-class, 1024KB L2 cache) Mirbsd

Hm, wtf?

tg@blau:~ $ uname -a
MirBSD blau.mirbsd.org 10 Kv#10uAB-20100328 GENERIC#1247 i386

The Kv (kernel version) is the exact patchlevel and compile time.

>There doesn't appear to be more precise versioning data available.
>
>The /bsd kernel file is dated 2010-03-10 10:38:33.641840000.

Well, #1242 and 2010-03-10 aren't so long ago, so this is #10-current.
Thanks.

>>> [for GNU/Linux AMD64 and PowerPC]
>>>  Try adding -D_GNU_SOURCE to CPPFLAGS ...
>make
>
>Nope:

:-(


>>> >> >(13) On Open Solaris, <unistd.h> and a few other header files contain
>>> >     the __NORETURN keyword extension:
>>> 
>>> Is that a keyword? On most systems, itbs in <sys/cdefs.h> or similar
>>> places and defined as __attribute__((noreturn)) or equivalent.
>>> ...
>
>I searched /usr/include/sys/*.h and found this:
>
>ccompile.h:#define  __NORETURN               __sun_attr__((__noreturn__))
>
>This is clearly a compiler-specific extension.

Did you see if __sun_attr__ is defined to __attribute__ somewhere?
If not, pcc could do that (probably at the same place where things
like __WCHAR_MAX__ are defined), and handle the Sun specific ones
(noreturn is just the same as gcc).


>>> echo w=__WCHAR_MAX__ | /tmp/pcc/bin/pcc -E - | grep ^w=65535U
>
>Here is what I get on my MirOS system:
>
>	% echo w=__WCHAR_MAX__ | pcc -E - | grep ^w=
>	w=4294967295U

This is definitively wrong. Did you compile pcc natively?

pcc-080407/os/mirbsd/ccconfig.h:
   29  * On MirBSD, wchar_t is a 16-bit unsigned short UCS-2 value.
   34 #define CPPADD          {                       \
   39         "-D__WCHAR_MAX__=65535U",               \

Hrm. Doesn't look as if it depends on cross/nativeā€¦

>It is almost 9pm here, and I'm leaving town on a weekend trip early
>tomorrow, so I'll have to continue pcc investigations next week.

Sure, have fun.
//mirabilos
-- 
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic