diff options
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/a29k/tm-a29k.h | 4 | ||||
-rw-r--r-- | gdb/config/m88k/tm-m88k.h | 5 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips.h | 8 | ||||
-rw-r--r-- | gdb/config/sparc/tm-sp64.h | 5 | ||||
-rw-r--r-- | gdb/config/sparc/tm-sparc.h | 5 |
5 files changed, 17 insertions, 10 deletions
diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h index 24a3e08..5fecca1 100644 --- a/gdb/config/a29k/tm-a29k.h +++ b/gdb/config/a29k/tm-a29k.h @@ -60,7 +60,9 @@ CORE_ADDR skip_prologue (); #define INNER_THAN < -/* Stack must be aligned on 32-bit word boundaries. */ +/* Stack must be aligned on 32-bit boundaries when synthesizing + function calls. */ + #define STACK_ALIGN(ADDR) (((ADDR) + 3) & ~3) /* Sequence of bytes for breakpoint instruction. */ diff --git a/gdb/config/m88k/tm-m88k.h b/gdb/config/m88k/tm-m88k.h index a441612..3c0acd9 100644 --- a/gdb/config/m88k/tm-m88k.h +++ b/gdb/config/m88k/tm-m88k.h @@ -589,7 +589,10 @@ extern void m88k_push_dummy_frame(); pc = text_end; \ } -#define STACK_ALIGN(addr) (((addr)+7) & -8) +/* Stack must be aligned on 64-bit boundaries when synthesizing + function calls. */ + +#define STACK_ALIGN(addr) (((addr) + 7) & -8) #define STORE_STRUCT_RETURN(addr, sp) \ write_register (SRA_REGNUM, (addr)) diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 95b9f07..841b7fe 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -339,12 +339,12 @@ extern void mips_find_saved_regs PARAMS ((struct frame_info *)); /* Things needed for making the inferior call functions. */ -/* Stack has strict alignment. However, use PUSH_ARGUMENTS - to take care of it. */ -/*#define STACK_ALIGN(addr) (((addr)+3)&~3)*/ +/* Stack must be aligned on 32-bit boundaries when synthesizing + function calls. We don't need STACK_ALIGN, PUSH_ARGUMENTS will + handle it. */ #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ - sp = mips_push_arguments(nargs, args, sp, struct_return, struct_addr) + sp = mips_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)) extern CORE_ADDR mips_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR)); diff --git a/gdb/config/sparc/tm-sp64.h b/gdb/config/sparc/tm-sp64.h index 3cef0fc..c35a458 100644 --- a/gdb/config/sparc/tm-sp64.h +++ b/gdb/config/sparc/tm-sp64.h @@ -24,10 +24,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "sparc/tm-sparc.h" -/* Stack has strict alignment. */ +/* Stack must be aligned on 128-bit boundaries when synthesizing + function calls. */ #undef STACK_ALIGN -#define STACK_ALIGN(ADDR) (((ADDR)+15)&-16) +#define STACK_ALIGN(ADDR) (((ADDR) + 15 ) & -16) /* Number of machine registers. */ diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index 663f6d9..b428657 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -106,9 +106,10 @@ extern CORE_ADDR sparc_pc_adjust PARAMS ((CORE_ADDR)); #define INNER_THAN < -/* Stack has strict alignment. */ +/* Stack must be aligned on 64-bit boundaries when synthesizing + function calls. */ -#define STACK_ALIGN(ADDR) (((ADDR)+7)&-8) +#define STACK_ALIGN(ADDR) (((ADDR) + 7) & -8) /* Sequence of bytes for breakpoint instruction (ta 1). */ |