Index: arch/powerpc/macdefs.h =================================================================== RCS file: /cvsroot/pcc/arch/powerpc/macdefs.h,v retrieving revision 1.22 diff -u -p -r1.22 macdefs.h --- arch/powerpc/macdefs.h 8 Oct 2021 15:59:07 -0000 1.22 +++ arch/powerpc/macdefs.h 7 Nov 2022 18:39:18 -0000 @@ -1,4 +1,4 @@ -/* $Id: macdefs.h,v 1.22 2021/10/08 15:59:07 ragge Exp $ */ +/* $Id: macdefs.h,v 1.20 2018/12/02 11:11:39 ragge Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -113,6 +113,9 @@ typedef long long OFFSZ; #elif defined(MACHOABI) #define LABFMT "L%d" /* format for printing labels */ #define REGPREFIX +#elif defined(AOUTABI) +#define LABFMT ".L%d" /* format for printing labels */ +#define REGPREFIX #else #error undefined ABI #endif @@ -230,9 +233,9 @@ typedef long long OFFSZ; #define MAXREGS 64 /* XXX cannot have more than 64 */ #define RSTATUS \ - 0, /* R0 */ \ - 0, /* R1 */ \ - SAREG|TEMPREG, /* R2 */ \ + SAREG|TEMPREG, /* R0 */ \ + 0, /* R1 */ \ + 0, /* R2 */ \ SAREG|TEMPREG, /* R3 */ \ SAREG|TEMPREG, /* R4 */ \ SAREG|TEMPREG, /* R5 */ \ @@ -341,11 +344,12 @@ typedef long long OFFSZ; #define GOTREG R31 /* global offset table (PIC) */ #ifdef FPREG -#define ARGINIT (24*8) /* # bits above fp where arguments start */ +#define ARGINIT (8*8) /* # bits above sp where arguments start */ #define AUTOINIT (8*8) /* # bits above fp where automatics start */ -#define STACK_DOWN /* stack grows negatively for automatics */ +#define BACKAUTO /* stack grows negatively for automatics */ +#define BACKTEMP /* stack grows negatively for temporaries */ #else -#define ARGINIT (24*8) /* # bits above fp where arguments start */ +#define ARGINIT (8*8) /* # bits above fp where arguments start */ #define AUTOINIT (56*8) /* # bits above fp where automatics start */ #endif