[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: Initial support for MirOS BSD
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2007-09-27 20:38:48
Message-ID: 46FC14D8.1040908 () ludd ! ltu ! se
[Download RAW message or body]
Hi, i almost added your patches; see comments below.
Thorsten Glaser wrote:
> @@ -90,7 +90,11 @@
> /* Default char is signed */
> #undef CHAR_UNSIGNED
> #define BOOL_TYPE CHAR /* what used to store _Bool */
> +#if TARGOS == mirbsd
>
The above #if statement don't work with any C preprocessor I know :-)
I changed it to something better.
...and for the file below I need a copyright blob (or that it is set as
public domain).
-- Ragge
> fi
> --- pcc-070920.orig/os/mirbsd/ccconfig.h Thu Jan 1 00:00:00 1970
> +++ pcc-070920/os/mirbsd/ccconfig.h Wed Sep 26 14:18:28 2007
> @@ -0,0 +1,55 @@
> +/* $Id$ */
> +
> +/*-
> + * Configuration for pcc on a MirOS BSD (i386 or sparc) target
> + */
> +
> +/* notes */
> +
> +/*-
> + * On MirBSD, "wchar_t" is a 16-bit unsigned short UCS-2 value.
> + */
> +
> +/* mi part */
> +
> +#define CPPADD { \
> + "-D__MirBSD__", \
> + "-D__OpenBSD__", \
> + "-D__unix__", \
> + "-D__STDC_ISO_10646__=200009L", \
> + "-D__WCHAR_MAX__=65535U", \
> + "-D__ELF__", \
> + NULL \
> +}
> +#define DYNLINKER { \
> + "-dynamic-linker", \
> + "/usr/libexec/ld.so", \
> + NULL \
> +}
> +#define STARTFILES { \
> + "/usr/lib/crti.o", \
> + "/usr/lib/crtbegin.o", \
> + NULL \
> +}
> +#define ENDFILES { \
> + "/usr/lib/crtend.o", \
> + "/usr/lib/crtn.o", \
> + NULL \
> +}
> +#define CRT0FILE "/usr/lib/crt0.o"
> +#define STABS
> +
> +/* md part */
> +
> +#if defined(mach_x86)
> +#define CPPMDADD { \
> + "-D__i386__", \
> + "-D__i386", \
> + "-Di386", \
> + NULL, \
> +}
> +#elif defined(mach_sparc)
> +#error pcc does not support sparc yet
> +#else
> +#error this architecture not supported by MirOS BSD
> +#endif
>
>
> Please apply. Thanks!
>
> bye,
> //mirabilos
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic