Message ID | 20100216211414.GA81084@triton8.kn-bremen.de |
---|---|
State | New |
Headers | show |
Am 16.02.2010 um 22:14 schrieb Juergen Lock: > On Sun, Feb 14, 2010 at 09:13:31PM +0100, Juergen Lock wrote: >> Submitted by: Andreas Tobler <andreast@fgznet.ch> >> >> Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> >> >> --- a/tcg/ppc/tcg-target.h >> +++ b/tcg/ppc/tcg-target.h >> @@ -69,7 +69,7 @@ >> #define TCG_TARGET_CALL_STACK_OFFSET 24 >> #elif defined _AIX >> #define TCG_TARGET_CALL_STACK_OFFSET 52 >> -#elif defined __linux__ >> +#elif defined __linux__ || defined __FreeBSD__ || >> defined(__FreeBSD_kernel__) >> #define TCG_TARGET_CALL_ALIGN_ARGS 1 >> #define TCG_TARGET_CALL_STACK_OFFSET 8 >> #else > > New version using ppc _CALL_* definitions after malc's comments: > > Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> > > --- a/tcg/ppc/tcg-target.h > +++ b/tcg/ppc/tcg-target.h > @@ -65,11 +65,11 @@ enum { > /* used for function call generation */ > #define TCG_REG_CALL_STACK TCG_REG_R1 > #define TCG_TARGET_STACK_ALIGN 16 > -#if defined __APPLE__ > +#if defined _CALL_DARWIN > #define TCG_TARGET_CALL_STACK_OFFSET 24 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X v10.5 ppc: Apparently _CALL_DARWIN is not defined, so it runs into the #else. Andreas > -#elif defined _AIX > +#elif defined _CALL_AIX > #define TCG_TARGET_CALL_STACK_OFFSET 52 > -#elif defined __linux__ > +#elif defined _CALL_SYSV > #define TCG_TARGET_CALL_ALIGN_ARGS 1 > #define TCG_TARGET_CALL_STACK_OFFSET 8 > #else > >
On Tue, 6 Apr 2010, Andreas F?rber wrote: > > Am 16.02.2010 um 22:14 schrieb Juergen Lock: > > > On Sun, Feb 14, 2010 at 09:13:31PM +0100, Juergen Lock wrote: > > > Submitted by: Andreas Tobler <andreast@fgznet.ch> > > > > > > Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> > > > > > > --- a/tcg/ppc/tcg-target.h > > > +++ b/tcg/ppc/tcg-target.h > > > @@ -69,7 +69,7 @@ > > > #define TCG_TARGET_CALL_STACK_OFFSET 24 > > > #elif defined _AIX > > > #define TCG_TARGET_CALL_STACK_OFFSET 52 > > > -#elif defined __linux__ > > > +#elif defined __linux__ || defined __FreeBSD__ || > > > defined(__FreeBSD_kernel__) > > > #define TCG_TARGET_CALL_ALIGN_ARGS 1 > > > #define TCG_TARGET_CALL_STACK_OFFSET 8 > > > #else > > > > New version using ppc _CALL_* definitions after malc's comments: > > > > Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> > > > > --- a/tcg/ppc/tcg-target.h > > +++ b/tcg/ppc/tcg-target.h > > @@ -65,11 +65,11 @@ enum { > > /* used for function call generation */ > > #define TCG_REG_CALL_STACK TCG_REG_R1 > > #define TCG_TARGET_STACK_ALIGN 16 > > -#if defined __APPLE__ > > +#if defined _CALL_DARWIN > > #define TCG_TARGET_CALL_STACK_OFFSET 24 > > 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X v10.5 > ppc: Apparently _CALL_DARWIN is not defined, so it runs into the #else. Which gcc version? > > Andreas > > > -#elif defined _AIX > > +#elif defined _CALL_AIX > > #define TCG_TARGET_CALL_STACK_OFFSET 52 > > -#elif defined __linux__ > > +#elif defined _CALL_SYSV > > #define TCG_TARGET_CALL_ALIGN_ARGS 1 > > #define TCG_TARGET_CALL_STACK_OFFSET 8 > > #else > > >
Am 06.04.2010 um 19:14 schrieb malc: > On Tue, 6 Apr 2010, Andreas F?rber wrote: > >> 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac >> OS X v10.5 >> ppc: Apparently _CALL_DARWIN is not defined, so it runs into the >> #else. > > Which gcc version? powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) Andreas
On Tue, 6 Apr 2010, Andreas F?rber wrote: > Am 06.04.2010 um 19:14 schrieb malc: > > > On Tue, 6 Apr 2010, Andreas F?rber wrote: > > > > > 5da79c86a3744e3a901c7986c109dd06951befd2 broke compilation on Mac OS X > > > v10.5 > > > ppc: Apparently _CALL_DARWIN is not defined, so it runs into the #else. > > > > Which gcc version? > > powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) I guess your only option is to cook up a patch since i don't have development stuff on my Mac OS X (and i'm reluctant on reverting the aforementioned commit)
--- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -65,11 +65,11 @@ enum { /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_R1 #define TCG_TARGET_STACK_ALIGN 16 -#if defined __APPLE__ +#if defined _CALL_DARWIN #define TCG_TARGET_CALL_STACK_OFFSET 24 -#elif defined _AIX +#elif defined _CALL_AIX #define TCG_TARGET_CALL_STACK_OFFSET 52 -#elif defined __linux__ +#elif defined _CALL_SYSV #define TCG_TARGET_CALL_ALIGN_ARGS 1 #define TCG_TARGET_CALL_STACK_OFFSET 8 #else