comparison gcc/config/m68k/m68k.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 GCC for Motorola 680x0/ColdFire. 1 /* Definitions of target machine for GCC for Motorola 680x0/ColdFire.
2 Copyright (C) 1987-2017 Free Software Foundation, Inc. 2 Copyright (C) 1987-2018 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify 6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
466 /* Stack layout; function entry, exit and calling. */ 466 /* Stack layout; function entry, exit and calling. */
467 467
468 #define STACK_GROWS_DOWNWARD 1 468 #define STACK_GROWS_DOWNWARD 1
469 #define FRAME_GROWS_DOWNWARD 1 469 #define FRAME_GROWS_DOWNWARD 1
470 470
471 /* On the 680x0, sp@- in a byte insn really pushes a word. 471 #define PUSH_ROUNDING(BYTES) m68k_push_rounding (BYTES)
472 On the ColdFire, sp@- in a byte insn pushes just a byte. */
473 #define PUSH_ROUNDING(BYTES) (TARGET_COLDFIRE ? BYTES : ((BYTES) + 1) & ~1)
474 472
475 #define FIRST_PARM_OFFSET(FNDECL) 8 473 #define FIRST_PARM_OFFSET(FNDECL) 8
476 474
477 /* On the m68k the return value defaults to D0. */ 475 /* On the m68k the return value defaults to D0. */
478 #define FUNCTION_VALUE(VALTYPE, FUNC) \ 476 #define FUNCTION_VALUE(VALTYPE, FUNC) \
866 864
867 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ 865 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
868 ( fputs (".lcomm ", (FILE)), \ 866 ( fputs (".lcomm ", (FILE)), \
869 assemble_name ((FILE), (NAME)), \ 867 assemble_name ((FILE), (NAME)), \
870 fprintf ((FILE), ",%u\n", (int)(ROUNDED))) 868 fprintf ((FILE), ",%u\n", (int)(ROUNDED)))
871
872 #define FINAL_PRESCAN_INSN(INSN, OPVEC, NOPERANDS) \
873 m68k_final_prescan_insn (INSN, OPVEC, NOPERANDS)
874 869
875 /* On the 68000, we use several CODE characters: 870 /* On the 68000, we use several CODE characters:
876 '.' for dot needed in Motorola-style opcode names. 871 '.' for dot needed in Motorola-style opcode names.
877 '-' for an operand pushing on the stack: 872 '-' for an operand pushing on the stack:
878 sp@-, -(sp) or -(%sp) depending on the style of syntax. 873 sp@-, -(sp) or -(%sp) depending on the style of syntax.