search for: __sparc__

Displaying 20 results from an estimated 26 matches for "__sparc__".

2009 Aug 25
3
[LLVMdev] Patch: Compiling LLVM in Sparc
Hello, The current version in SVN fails to compile in sparc machines since gcc defines "sparc" as a macro in sparc machines that expands to 1 (see below) but Triple.h defines "sparc" as a enum constant. $ cpp -dM /dev/null | grep sparc #define sparc 1 #define __sparc__ 1 #define __sparc 1 The attached patch fixes this problem by renaming sparc to sparc_. Thanks, Venkatraman -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-compile-in-sparc.patch Type: application/octet-stream Size: 4049 bytes Desc: not available URL: &lt...
2009 Aug 25
0
[LLVMdev] Patch: Compiling LLVM in Sparc
...rent version in SVN fails to compile in sparc machines since > gcc defines "sparc" as a macro in sparc machines that expands to 1 > (see below) but Triple.h defines "sparc" as a enum constant. > > $ cpp -dM /dev/null | grep sparc > #define sparc 1 > #define __sparc__ 1 > #define __sparc 1 > > The attached patch fixes this problem by renaming sparc to sparc_. the same thing happens with mips: "mips" is defined to be a numerical value on mips machines, and this breaks Triple.h. Ciao, Duncan.
2009 Aug 25
4
[LLVMdev] Patch: Compiling LLVM in Sparc
...ls to compile in sparc machines since >> gcc defines "sparc" as a macro in sparc machines that expands to 1 >> (see below) but Triple.h defines "sparc" as a enum constant. >> >>  $ cpp -dM /dev/null | grep sparc >>  #define sparc 1 >>  #define __sparc__ 1 >>  #define __sparc 1 >> >>  The attached patch fixes this problem by renaming sparc to sparc_. > > the same thing happens with mips: "mips" is defined to be a numerical > value on mips machines, and this breaks Triple.h. > > Ciao, > > Duncan. >
2009 Aug 25
3
[LLVMdev] Patch: Compiling LLVM in Sparc
...e less likely to >> collide. I think just upcasing them might be good enough? > > It should, this is the pattern generally emitted by all of the backends. > >>>> >>>>  $ cpp -dM /dev/null | grep sparc >>>>  #define sparc 1 >>>>  #define __sparc__ 1 >>>>  #define __sparc 1 > > There's likely an all uppercase one as well, but afaik no camel case one. > > -eric >
2009 Aug 25
0
[LLVMdev] Patch: Compiling LLVM in Sparc
...ename the constants to be a little less likely to > collide. I think just upcasing them might be good enough? It should, this is the pattern generally emitted by all of the backends. >>> >>> $ cpp -dM /dev/null | grep sparc >>> #define sparc 1 >>> #define __sparc__ 1 >>> #define __sparc 1 There's likely an all uppercase one as well, but afaik no camel case one. -eric
2009 Aug 25
0
[LLVMdev] Patch: Compiling LLVM in Sparc
...llide. I think just upcasing them might be good enough? >> >> It should, this is the pattern generally emitted by all of the backends. >> >>>>> >>>>>  $ cpp -dM /dev/null | grep sparc >>>>>  #define sparc 1 >>>>>  #define __sparc__ 1 >>>>>  #define __sparc 1 >> >> There's likely an all uppercase one as well, but afaik no camel case one. >> >> -eric >> >
2002 Sep 13
2
[LLVMdev] Linux-x86 Compatability
Chris Lattner wrote: >>>Interesting. INT64_MAX is supposed to be provided by >>>include/Support/DataTypes.h. Do you know of a reliable preprocessor >>>symbol that can be used to determine whether we're on a linux box, or >>> >>> > > > >>Well, there is always __linux__, but that doesn't necessarily imply that >>we
2010 Mar 14
1
klibc sparc sockets foo
.../usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def index c12d525..0599dac 100644 --- a/usr/klibc/SYSCALLS.def +++ b/usr/klibc/SYSCALLS.def @@ -259,4 +259,9 @@ int sysinfo(struct sysinfo *); * system calls. */ <?!i386> long socketcall::__socketcall(int, const unsigned long *); +#if !defined(__sparc__) && !defined(__arch64__) +/* + * SPARC does not have direct syscalls for socket + */ #include "SOCKETCALLS.def" +#endif diff --git a/usr/klibc/socketcalls.pl b/usr/klibc/socketcalls.pl index e6f75ab..01993e8 100644 --- a/usr/klibc/socketcalls.pl +++ b/usr/klibc/socketcalls.pl @@...
2008 Nov 14
7
Wine on Solaris 10
Hi, Can you tell me if Wine is supported on Solaris 10? Regards Col
2003 Dec 12
2
[PATCH] ppc64 support
...map.c klibc-0.92/klibc/mmap.c --- klibc-0.92.orig/klibc/mmap.c 2002-11-15 05:07:50.000000000 +0000 +++ klibc-0.92/klibc/mmap.c 2003-12-12 21:54:45.000000000 +0000 @@ -19,7 +19,7 @@ * Prefer mmap2() over mmap(), except on the architectures listed */ -#if defined(__NR_mmap2) && !defined(__sparc__) && !defined(__ia64__) +#if defined(__NR_mmap2) && !defined(__sparc__) && !defined(__ia64__) && !defined(__powerpc64__) /* This architecture uses mmap2() */ -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG
2019 Feb 02
2
[PATCH 1/2] ia64: Fix invalid memory access in vfork
Commit 8418552 ("[klibc] ia64: Fix shared build") missed this use of the GP register, although the code appears to have been dubious anyway, assuming the address of errno was the first thing pointed to by GP. --- usr/klibc/arch/ia64/vfork.S | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/usr/klibc/arch/ia64/vfork.S b/usr/klibc/arch/ia64/vfork.S index
2020 Aug 28
0
[klibc:ia64-signal-fix] signal: Move rt_sigaction() argument mangling to arch directories
...sigaction.c b/usr/klibc/sigaction.c index 789494db..d2223843 100644 --- a/usr/klibc/sigaction.c +++ b/usr/klibc/sigaction.c @@ -8,16 +8,11 @@ #include <klibc/sysconfig.h> __extern void __sigreturn(void); -__extern int __sigaction(int, const struct sigaction *, struct sigaction *); -#ifdef __sparc__ -__extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, - void (*)(void), size_t); -#elif defined(__alpha__) -__extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, - size_t, void (*)(void)); -#else +#if _KLIBC_USE_RT_SIG __extern int __r...
2020 Aug 27
0
[klibc:master] signal: Add compile-time check on signal types
...that we have the right signal API definitions */ + (void)sizeof(char[_NSIG >= 64 ? 1 : -1]); + (void)sizeof(char[sizeof(sigset_t) * 8 >= _NSIG ? 1 : -1]); + (void)sizeof(char[offsetof(struct sigaction, sa_mask) + + sizeof(sigset_t) == sizeof(struct sigaction) + ? 1 : -1]); + # ifdef __sparc__ { void (*restorer)(void);
2004 Mar 14
0
[PATCH] fix klibc build against current kernel headers
...ifdef __NR_fork --- klibc/mmap.c +++ klibc/mmap.c 2004/03/14 15:04:55 @@ -4,8 +4,8 @@ #include <stdint.h> #include <errno.h> -#include <sys/syscall.h> #include <sys/mman.h> +#include <sys/syscall.h> #include <asm/page.h> /* For PAGE_SHIFT */ #if defined(__sparc__) -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG
2006 Feb 19
2
[patch] statfs64 sparc64 fix
From: Sjoerd Simons <sjoerd@spring.luon.net> It seems that klibc uses __sparc64__ to determine if it's compiled in 64 bit mode on sparc, unfortunatly gcc doesn't define __sparc64__ :) It does define __arch64__ though. Signed-off-by: maximilian attems <maks@sternwelten.at> --- klibc-1.2.2.orig/include/sys/vfs.h 2006-02-15 18:32:10.000000000 +0100 +++
2002 Sep 13
0
[LLVMdev] Linux-x86 Compatability
...t; > > Which will work on both Linux and Solaris without requiring platform detection. Ok, how about this:? #ifndef LLVM_SUPPORT_DATATYPES_H #define LLVM_SUPPORT_DATATYPES_H #define __STDC_LIMIT_MACROS 1 #include <inttypes.h> #ifdef __linux__ #include <endian.h> #endif #ifdef __sparc__ #include <sys/types.h> #ifdef _LITTLE_ENDIAN #define LITTLE_ENDIAN 1 #endif #endif #endif /* LLVM_SUPPORT_DATATYPES_H */ -Chris http://llvm.cs.uiuc.edu/ http://www.nondot.org/~sabre/Projects/
2002 Sep 13
1
[LLVMdev] Linux-x86 Compatability
...>> I forgot about endianness. >Ok, how about this:? > >#ifndef LLVM_SUPPORT_DATATYPES_H >#define LLVM_SUPPORT_DATATYPES_H > >#define __STDC_LIMIT_MACROS 1 >#include <inttypes.h> > >#ifdef __linux__ >#include <endian.h> >#endif > >#ifdef __sparc__ >#include <sys/types.h> >#ifdef _LITTLE_ENDIAN >#define LITTLE_ENDIAN 1 >#endif >#endif > > > #ifndef LITTLE_ENDIAN #ifndef BIG_ENDIAN #error Ooops. Fix include/llvm/Bytecode/Primitive.h for your endianness. #endif #endif >#endif /* LLVM_SUPPORT_DATATYPES_H */...
2019 Feb 02
0
[PATCH 2/2] ia64: Fix sigaction struct layout and function implementation
...;& act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL) { + sa = *act; + act = &sa; + + signal_descriptors[sig].entry = (uintptr_t)sa.sa_handler; + + sa.sa_handler = (__sighandler_t)(uintptr_t)&signal_descriptors[sig]; + } +#endif + #if _KLIBC_USE_RT_SIG # ifdef __sparc__ { @@ -61,5 +98,11 @@ int sigaction(int sig, const struct sigaction *act, struct sigaction *oact) } #endif +#ifdef __ia64__ + if (oact && oact->sa_handler != SIG_IGN && oact->sa_handler != SIG_DFL) { + oact->sa_handler = (__sighandler_t)old_entry; + } +#endif + ret...
2012 May 29
0
[klibc:master] alpha: fix signal handler setup on DEC Alpha
...rocmask(int, const sigset_t *, sigset_t *, size_t); diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c index 658c3ad..19a8a54 100644 --- a/usr/klibc/sigaction.c +++ b/usr/klibc/sigaction.c @@ -11,6 +11,9 @@ __extern int __sigaction(int, const struct sigaction *, struct sigaction *); #ifdef __sparc__ __extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, void (*)(void), size_t); +#elif defined(__alpha__) +__extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *, + size_t, void *); #else __extern int __rt_sigaction(int, const struct s...
2012 May 25
4
klibc breakage on alpha, need porterbox
Hi, is there a DD-accessible porterbox somewhere (slow would be ok, as this is smallish software) with an up-to-date sid (enough to install the recently-built libklibc-dev 2.0~rc5-1 and all other B-D of mksh 40.9.20120518-1, as well as strace and gdb-minimal)? Similarily to http://www.zytor.com/pipermail/klibc/2012-May/003229.html I found klibc-compiled programmes on Alpha to fail (SIGSEGV