OSDN Git Service

Stop GDB mis-aligning the stack when doing inferior function calls.
[pf3gnuchains/pf3gnuchains3x.git] / gdb / config / d10v / tm-d10v.h
1 /* Target-specific definition for the Mitsubishi D10V
2    Copyright (C) 1996,1999 Free Software Foundation, Inc.
3
4    This file is part of GDB.
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
21 /* Contributed by Martin Hunt, hunt@cygnus.com */
22
23 #define GDB_MULTI_ARCH 1
24
25 extern int d10v_register_sim_regno (int reg);
26 #define REGISTER_SIM_REGNO(NR) d10v_register_sim_regno((NR))
27
28 extern CORE_ADDR d10v_stack_align (CORE_ADDR size);
29 #define STACK_ALIGN(SIZE) (d10v_stack_align (SIZE))
30
31 #define NO_EXTRA_ALIGNMENT_NEEDED 1