comparison gcc/config/h8300/h8300.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Definitions of target machine for GNU compiler. 1 /* Definitions of target machine for GNU compiler.
2 Renesas H8/300 (generic) 2 Renesas H8/300 (generic)
3 Copyright (C) 1992-2017 Free Software Foundation, Inc. 3 Copyright (C) 1992-2018 Free Software Foundation, Inc.
4 Contributed by Steve Chamberlain (sac@cygnus.com), 4 Contributed by Steve Chamberlain (sac@cygnus.com),
5 Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com). 5 Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
6 6
7 This file is part of GCC. 7 This file is part of GCC.
8 8
350 that is, each additional local variable allocated 350 that is, each additional local variable allocated
351 goes at a more negative offset in the frame. */ 351 goes at a more negative offset in the frame. */
352 352
353 #define FRAME_GROWS_DOWNWARD 1 353 #define FRAME_GROWS_DOWNWARD 1
354 354
355 /* If we generate an insn to push BYTES bytes, 355 #define PUSH_ROUNDING(BYTES) h8300_push_rounding (BYTES)
356 this says how many the stack pointer really advances by.
357
358 On the H8/300, @-sp really pushes a byte if you ask it to - but that's
359 dangerous, so we claim that it always pushes a word, then we catch
360 the mov.b rx,@-sp and turn it into a mov.w rx,@-sp on output.
361
362 On the H8/300H, we simplify TARGET_QUICKCALL by setting this to 4
363 and doing a similar thing. */
364
365 #define PUSH_ROUNDING(BYTES) \
366 (((BYTES) + PARM_BOUNDARY / 8 - 1) & -PARM_BOUNDARY / 8)
367 356
368 /* Offset of first parameter from the argument pointer register value. */ 357 /* Offset of first parameter from the argument pointer register value. */
369 /* Is equal to the size of the saved fp + pc, even if an fp isn't 358 /* Is equal to the size of the saved fp + pc, even if an fp isn't
370 saved since the value is used before we know. */ 359 saved since the value is used before we know. */
371 360