OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / config / mn10300 / mn10300.h
index b10f450..a0e17d8 100644 (file)
@@ -1,7 +1,7 @@
 /* Definitions of target machine for GNU compiler.
    Matsushita MN10300 series
    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-   2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+   2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
    Contributed by Jeff Law (law@cygnus.com).
 
    This file is part of GCC.
         }                                      \
       else if (TARGET_AM33)                    \
         builtin_define ("__AM33__=1");         \
+                                               \
+      builtin_define (TARGET_ALLOW_LIW ?       \
+                     "__LIW__" : "__NO_LIW__");\
+                                               \
     }                                          \
   while (0)
 
-enum processor_type
-{
-  PROCESSOR_MN10300,
-  PROCESSOR_AM33,
-  PROCESSOR_AM33_2,
-  PROCESSOR_AM34
-};
+#ifndef MN10300_OPTS_H
+#include "config/mn10300/mn10300-opts.h"
+#endif
 
-extern enum processor_type mn10300_processor;
 extern enum processor_type mn10300_tune_cpu;
 
 #define TARGET_AM33    (mn10300_processor >= PROCESSOR_AM33)
@@ -72,10 +71,6 @@ extern enum processor_type mn10300_tune_cpu;
 #define PROCESSOR_DEFAULT PROCESSOR_MN10300
 #endif
 
-/* Print subsidiary information on the compiler version in use.  */
-
-#define TARGET_VERSION fprintf (stderr, " (MN10300)");
-
 \f
 /* Target machine storage layout */
 
@@ -310,19 +305,6 @@ enum reg_class
   { 0xffffffff, 0xfffff } /* ALL_REGS */                       \
 }
 
-/* The following macro defines cover classes for Integrated Register
-   Allocator.  Cover classes is a set of non-intersected register
-   classes covering all hard registers used for register allocation
-   purpose.  Any move between two registers of a cover class should be
-   cheaper than load or store of the registers.  The macro value is
-   array of register classes with LIM_REG_CLASSES used as the end
-   marker.  */
-
-#define IRA_COVER_CLASSES                                      \
-{                                                              \
-  GENERAL_REGS, FP_REGS, MDR_REGS, LIM_REG_CLASSES             \
-}
-
 /* The same information, inverted:
    Return the class number of the smallest class containing
    reg number REGNO.  This could be a conditional expression
@@ -575,10 +557,6 @@ do {                                                                            \
 } while (0)
 \f
 
-/* Nonzero if the constant value X is a legitimate general operand.
-   It is given that X satisfies CONSTANT_P or is a CONST_DOUBLE.  */
-#define LEGITIMATE_CONSTANT_P(X) mn10300_legitimate_constant_p (X)
-
 /* Zero if this needs fixing up to become PIC.  */
 
 #define LEGITIMATE_PIC_OPERAND_P(X) \