OSDN Git Service

(expand_computed_goto): Convert from ptr_mode to Pmode.
[pf3gnuchains/gcc-fork.git] / gcc / bytecode.h
1 /* Bytecode definitions for GNU C-compiler.
2    Copyright (C) 1993, 1994 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC 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, or (at your option)
9 any later version.
10
11 GNU CC 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 GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20
21 extern int output_bytecode;
22 extern int stack_depth;
23 extern int max_stack_depth;
24
25 /* Emit DI constant according to target machine word ordering */
26
27 #define bc_emit_bytecode_DI_const(CST)                          \
28 { int opcode;                                                   \
29   opcode = (WORDS_BIG_ENDIAN                                    \
30             ? TREE_INT_CST_HIGH (CST)                           \
31             : TREE_INT_CST_LOW (CST));                          \
32   bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);     \
33   opcode = (WORDS_BIG_ENDIAN                                    \
34             ? TREE_INT_CST_LOW (CST)                            \
35             : TREE_INT_CST_HIGH (CST));                         \
36   bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);     \
37 }
38
39 extern void bc_expand_expr ();
40 extern void bc_output_data_constructor ();
41 extern void bc_store_field ();
42 extern void bc_load_bit_field ();
43 extern void bc_store_bit_field ();
44 extern void bc_push_offset_and_size ();
45 extern void bc_init_mode_to_code_map ();
46
47 /* These are just stubs, so the compiler will compile for targets
48    that aren't yet supported by the bytecode generator. */
49
50 #ifndef TARGET_SUPPORTS_BYTECODE
51
52 #define MACHINE_SEG_ALIGN 1
53 #define INT_ALIGN 1
54 #define PTR_ALIGN 1
55 #define NAMES_HAVE_UNDERSCORES
56 #define BC_NOP   (0)
57 #define BC_GLOBALIZE_LABEL(FP, NAME) BC_NOP
58 #define BC_OUTPUT_COMMON(FP, NAME, SIZE, ROUNDED) BC_NOP
59 #define BC_OUTPUT_LOCAL(FP, NAME, SIZE, ROUNDED)  BC_NOP
60 #define BC_OUTPUT_ALIGN(FP, ALIGN)   BC_NOP
61 #define BC_OUTPUT_LABEL(FP, NAME)    BC_NOP
62 #define BC_OUTPUT_SKIP(FP, SIZE)     BC_NOP
63 #define BC_OUTPUT_LABELREF(FP, NAME) BC_NOP
64 #define BC_OUTPUT_FLOAT(FP, VAL)     BC_NOP
65 #define BC_OUTPUT_DOUBLE(FP, VAL)    BC_NOP
66 #define BC_OUTPUT_BYTE(FP, VAL)      BC_NOP
67 #define BC_OUTPUT_FILE ASM_OUTPUT_FILE
68 #define BC_OUTPUT_ASCII ASM_OUTPUT_ASCII
69 #define BC_OUTPUT_IDENT ASM_OUTPUT_IDENT
70 #define BCXSTR(RTX)  ((RTX)->bc_label)
71 #define BC_WRITE_FILE(FP)            BC_NOP
72 #define BC_WRITE_SEGSYM(SEGSYM, FP)  BC_NOP
73 #define BC_WRITE_RELOC_ENTRY(SEGRELOC, FP, OFFSET) BC_NOP
74 #define BC_START_BYTECODE_LINE(FP)   BC_NOP
75 #define BC_WRITE_BYTECODE(SEP, VAL, FP) BC_NOP
76 #define BC_WRITE_RTL(R, FP)          BC_NOP
77 #define BC_EMIT_TRAMPOLINE(TRAMPSEG, CALLINFO) BC_NOP
78 #define VALIDATE_STACK               BC_NOP
79
80 #endif /* !TARGET_SUPPORTS_BYTECODE */