OSDN Git Service

(memop_valid): Memory indirection now valid.
[pf3gnuchains/gcc-fork.git] / gcc / bytecode.h
index f467abc..a029f93 100644 (file)
@@ -1,5 +1,5 @@
 /* Bytecode definitions for GNU C-compiler.
-   Copyright (C) 1993 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -15,7 +15,8 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
 
 extern int output_bytecode;
@@ -24,28 +25,17 @@ extern int max_stack_depth;
 
 /* Emit DI constant according to target machine word ordering */
 
-#ifdef WORD_HIGH_ENDIAN
-
 #define bc_emit_bytecode_DI_const(CST)                                 \
 { int opcode;                                                  \
-  opcode = TREE_INT_CST_HIGH (CST);                            \
+  opcode = (WORDS_BIG_ENDIAN                                   \
+           ? TREE_INT_CST_HIGH (CST)                           \
+           : TREE_INT_CST_LOW (CST));                          \
   bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);    \
-  opcode = TREE_INT_CST_LOW (CST);                             \
+  opcode = (WORDS_BIG_ENDIAN                                   \
+           ? TREE_INT_CST_LOW (CST)                            \
+           : TREE_INT_CST_HIGH (CST));                         \
   bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);    \
 }
-         
-#else
-
-#define bc_emit_bytecode_DI_const(CST)                         \
-{ int opcode;                                                  \
-  opcode = TREE_INT_CST_LOW (CST);                             \
-  bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);    \
-  opcode = TREE_INT_CST_HIGH (CST);                            \
-  bc_emit_bytecode_const ((char *) &opcode, sizeof opcode);    \
-}
-         
-#endif
-
 
 extern void bc_expand_expr ();
 extern void bc_output_data_constructor ();
@@ -67,6 +57,7 @@ extern void bc_init_mode_to_code_map ();
 #define BC_NOP   (0)
 #define BC_GLOBALIZE_LABEL(FP, NAME) BC_NOP
 #define BC_OUTPUT_COMMON(FP, NAME, SIZE, ROUNDED) BC_NOP
+#define BC_OUTPUT_BSS(FP, NAME, SIZE, ROUNDED)    BC_NOP
 #define BC_OUTPUT_LOCAL(FP, NAME, SIZE, ROUNDED)  BC_NOP
 #define BC_OUTPUT_ALIGN(FP, ALIGN)   BC_NOP
 #define BC_OUTPUT_LABEL(FP, NAME)    BC_NOP