Skip to content
Snippets Groups Projects
Commit 1b9c093f authored by Jonas Wallden's avatar Jonas Wallden
Browse files

Improve compatibility with gcc 4.0.

Rev: src/code/ppc32.h:1.25
parent 220ea192
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: ppc32.h,v 1.24 2003/12/07 18:35:25 marcus Exp $ || $Id: ppc32.h,v 1.25 2005/05/24 17:35:26 jonasw Exp $
*/ */
#define PPC_INSTR_B_FORM(OPCD,BO,BI,BD,AA,LK) \ #define PPC_INSTR_B_FORM(OPCD,BO,BI,BD,AA,LK) \
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
#define PPC_REG_PIKE_FP 9 #define PPC_REG_PIKE_FP 9
#define PPC_REG_PIKE_SP 10 #define PPC_REG_PIKE_SP 10
#define PPC_REG_PIKE_INTERP 31 #define PPC_REG_PIKE_INTERP 29 /* 31 */
extern int ppc32_codegen_state, ppc32_codegen_last_pc; extern int ppc32_codegen_state, ppc32_codegen_last_pc;
void ppc32_flush_code_generator_state(void); void ppc32_flush_code_generator_state(void);
...@@ -234,11 +234,11 @@ void ppc32_decode_program(struct program *p); ...@@ -234,11 +234,11 @@ void ppc32_decode_program(struct program *p);
#define CALL_MACHINE_CODE(pc) \ #define CALL_MACHINE_CODE(pc) \
__asm__ __volatile__( " mtctr %0\n" \ __asm__ __volatile__( " mtctr %0\n" \
" mr "PPC_REGNAME(31)",%1\n" \ " mr "PPC_REGNAME(29)",%1\n" \
" bctr" \ " bctr" \
: \ : \
: "r" (pc), "r" (&Pike_interpreter) \ : "r" (pc), "r" (&Pike_interpreter) \
: "ctr", "lr", "cc", "memory", "r31", "r0", \ : "ctr", "lr", "cc", "memory", "r29", "r0", \
"r3", "r4", "r5", "r6", "r7", "r8", "r9", \ "r3", "r4", "r5", "r6", "r7", "r8", "r9", \
"r10", "r11", "r12") "r10", "r11", "r12")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment