target.h (targetm): Rename global from "target", so as not to conflict with local...
authorStan Shebs <shebs@apple.com>
Sat, 7 Jul 2001 01:07:22 +0000 (01:07 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Sat, 7 Jul 2001 01:07:22 +0000 (01:07 +0000)
        * target.h (targetm): Rename global from "target", so as not to
        conflict with local variables.
        * c-decl.c: Ditto.
        * c-typeck.c: Ditto.
        * final.c: Ditto.
        * tree.c: Ditto.
        * cp/decl.c: Ditto.
        * cp/decl2.c: Ditto.
        * cp/typeck.c: Ditto.
        * 1750a/1750a.c: Ditto.
        * a29k/a29k.c: Ditto.
        * arc/arc.c: Ditto.
        * arm/arm.c: Ditto.
        * avr/avr.c: Ditto.
        * clipper/clipper.c: Ditto.
        * convex/convex.c: Ditto.
        * d30v/d30v.c: Ditto.
        * dsp16xx/dsp16xx.c: Ditto.
        * elxsi/elxsi.c: Ditto.
        * fr30/fr30.c: Ditto.
        * h8300/h8300.c: Ditto.
        * i370/i370.c: Ditto.
        * i386/i386.c: Ditto.
        * i860/i860.c: Ditto.
        * i960/i960.c: Ditto.
        * ia64/ia64.c: Ditto.
        * m32r/m32r.c: Ditto.
        * m68hc11/m68hc11.c: Ditto.
        * m68k/m68k.c: Ditto.
        * m88k/m88k.c: Ditto.
        * mips/mips.c: Ditto.
        * ns32k/ns32k.c: Ditto.
        * pa/pa.c: Ditto.
        * pdp11/pdp11.c: Ditto.
        * romp/romp.c: Ditto.
        * rs6000/rs6000.c: Ditto.
        * sh/sh.c: Ditto.
        * sparc/sparc.c: Ditto.
        * vax/vax.c: Ditto.
        * we32k/we32k.c: Ditto.
        * doc/tm.texi: Update the manual to match.

From-SVN: r43831

48 files changed:
gcc/ChangeLog
gcc/c-decl.c
gcc/c-typeck.c
gcc/config/1750a/1750a.c
gcc/config/a29k/a29k.c
gcc/config/alpha/alpha.c
gcc/config/arc/arc.c
gcc/config/arm/arm.c
gcc/config/avr/avr.c
gcc/config/c4x/c4x.c
gcc/config/clipper/clipper.c
gcc/config/convex/convex.c
gcc/config/d30v/d30v.c
gcc/config/dsp16xx/dsp16xx.c
gcc/config/elxsi/elxsi.c
gcc/config/fr30/fr30.c
gcc/config/h8300/h8300.c
gcc/config/i370/i370.c
gcc/config/i386/i386.c
gcc/config/i860/i860.c
gcc/config/i960/i960.c
gcc/config/ia64/ia64.c
gcc/config/m32r/m32r.c
gcc/config/m68hc11/m68hc11.c
gcc/config/m68k/m68k.c
gcc/config/m88k/m88k.c
gcc/config/mcore/mcore.c
gcc/config/mips/mips.c
gcc/config/mn10200/mn10200.c
gcc/config/mn10300/mn10300.c
gcc/config/ns32k/ns32k.c
gcc/config/pa/pa.c
gcc/config/pdp11/pdp11.c
gcc/config/pj/pj.c
gcc/config/romp/romp.c
gcc/config/rs6000/rs6000.c
gcc/config/sh/sh.c
gcc/config/sparc/sparc.c
gcc/config/v850/v850.c
gcc/config/vax/vax.c
gcc/config/we32k/we32k.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/typeck.c
gcc/doc/tm.texi
gcc/final.c
gcc/target.h
gcc/tree.c

index 3d8bc4d..933f4b8 100644 (file)
@@ -1,3 +1,47 @@
+2001-07-06  Stan Shebs  <shebs@apple.com>
+
+       * target.h (targetm): Rename global from "target", so as not to
+       conflict with local variables.
+       * c-decl.c: Ditto.
+       * c-typeck.c: Ditto.
+       * final.c: Ditto.
+       * tree.c: Ditto.
+       * cp/decl.c: Ditto.
+       * cp/decl2.c: Ditto.
+       * cp/typeck.c: Ditto.
+       * 1750a/1750a.c: Ditto.
+       * a29k/a29k.c: Ditto.
+       * arc/arc.c: Ditto.
+       * arm/arm.c: Ditto.
+       * avr/avr.c: Ditto.
+       * clipper/clipper.c: Ditto.
+       * convex/convex.c: Ditto.
+       * d30v/d30v.c: Ditto.
+       * dsp16xx/dsp16xx.c: Ditto.
+       * elxsi/elxsi.c: Ditto.
+       * fr30/fr30.c: Ditto.
+       * h8300/h8300.c: Ditto.
+       * i370/i370.c: Ditto.
+       * i386/i386.c: Ditto.
+       * i860/i860.c: Ditto.
+       * i960/i960.c: Ditto.
+       * ia64/ia64.c: Ditto.
+       * m32r/m32r.c: Ditto.
+       * m68hc11/m68hc11.c: Ditto.
+       * m68k/m68k.c: Ditto.
+       * m88k/m88k.c: Ditto.
+       * mips/mips.c: Ditto.
+       * ns32k/ns32k.c: Ditto.
+       * pa/pa.c: Ditto.
+       * pdp11/pdp11.c: Ditto.
+       * romp/romp.c: Ditto.
+       * rs6000/rs6000.c: Ditto.
+       * sh/sh.c: Ditto.
+       * sparc/sparc.c: Ditto.
+       * vax/vax.c: Ditto.
+       * we32k/we32k.c: Ditto.
+       * doc/tm.texi: Update the manual to match.
+
 2001-07-06  Richard Henderson  <rth@redhat.com>
 
        * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
index 348701e..deb47d1 100644 (file)
@@ -1404,7 +1404,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level)
 
   if (DECL_P (olddecl))
     DECL_MACHINE_ATTRIBUTES (newdecl)
-      = (*target.merge_decl_attributes) (olddecl, newdecl);
+      = (*targetm.merge_decl_attributes) (olddecl, newdecl);
 
   if (TREE_CODE (newtype) == ERROR_MARK
       || TREE_CODE (oldtype) == ERROR_MARK)
index bc9de48..9e50c37 100644 (file)
@@ -206,7 +206,7 @@ common_type (t1, t2)
     return t1;
 
   /* Merge the attributes.  */
-  attributes = (*target.merge_type_attributes) (t1, t2);
+  attributes = (*targetm.merge_type_attributes) (t1, t2);
 
   /* Treat an enum type as the unsigned integer type of the same width.  */
 
@@ -484,7 +484,7 @@ comptypes (type1, type2)
     return 1;
 
   /* 1 if no need for warning yet, 2 if warning cause has been seen.  */
-  if (! (attrval = (*target.comp_type_attributes) (t1, t2)))
+  if (! (attrval = (*targetm.comp_type_attributes) (t1, t2)))
      return 0;
 
   /* 1 if no need for warning yet, 2 if warning cause has been seen.  */
index 39a0ebb..c1412bf 100644 (file)
@@ -56,7 +56,7 @@ static void output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index 67c84ef..896f162 100644 (file)
@@ -100,7 +100,7 @@ int a29k_compare_fp_p;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Returns 1 if OP is a 8-bit constant. */
 
index 3ddd7f3..d90aec9 100644 (file)
@@ -148,7 +148,7 @@ static rtx alpha_emit_xfloating_compare
 \f
 /* Initialize the GCC target structure.  */
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Parse target option strings. */
 
index 03e77ae..7e309f8 100644 (file)
@@ -99,7 +99,7 @@ static void arc_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_VALID_DECL_ATTRIBUTE
 #define TARGET_VALID_DECL_ATTRIBUTE arc_valid_decl_attribute
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Called by OVERRIDE_OPTIONS to initialize various things.  */
 
index 7d18b71..48f0c5f 100644 (file)
@@ -148,7 +148,7 @@ static void  arm_set_default_type_attributes        PARAMS ((tree));
 #undef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES
 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES arm_set_default_type_attributes
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Obstack for minipool constant handling.  */
 static struct obstack minipool_obstack;
index f242aa4..303be94 100644 (file)
@@ -183,7 +183,7 @@ int avr_case_values_threshold = 30000;
 #undef TARGET_VALID_TYPE_ATTRIBUTE
 #define TARGET_VALID_TYPE_ATTRIBUTE avr_valid_type_attribute
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 void
 avr_override_options ()
index 458d1bd..6f75aa8 100644 (file)
@@ -195,7 +195,7 @@ static int c4x_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
 #undef TARGET_VALID_TYPE_ATTRIBUTE
 #define TARGET_VALID_TYPE_ATTRIBUTE c4x_valid_type_attribute_p
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Called to register all of our global variables with the garbage
    collector.  */
index 3adcff7..76320ff 100644 (file)
@@ -55,7 +55,7 @@ static int frame_size;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE clipper_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Compute size of a clipper stack frame where 'lsize' is the required
    space for local variables.  */
index 6f563e2..a0e0987 100644 (file)
@@ -73,7 +73,7 @@ static void convex_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE convex_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index e73cad0..b0709e8 100644 (file)
@@ -87,7 +87,7 @@ enum reg_class reg_class_from_letter[256];
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE d30v_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Sometimes certain combinations of command options do not make
    sense on a particular target machine.  You can define a macro
index f20754f..3240262 100644 (file)
@@ -155,7 +155,7 @@ static void dsp16xx_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE dsp16xx_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 int 
 hard_regno_mode_ok (regno, mode)
index 0939bd1..0a0e77b 100644 (file)
@@ -47,7 +47,7 @@ static void elxsi_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE elxsi_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index 3086334..3adcb09 100644 (file)
@@ -139,7 +139,7 @@ static struct fr30_frame_info       zero_frame_info;
 \f
 /* Initialize the GCC target structure.  */
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Returns the number of bytes offset between FROM_REG and TO_REG
    for the current function.  As a side effect it fills in the 
index 5fa079f..0d22818 100644 (file)
@@ -105,7 +105,7 @@ const char *h8_push_op, *h8_pop_op, *h8_mov_op;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE h8300_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Initialize various cpu specific globals at start up.  */
 
index 43b5929..8dd229f 100644 (file)
@@ -294,7 +294,7 @@ static const unsigned char ebcasc[256] =
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE i370_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Map characters from one character set to another.
    C is the character to be translated.  */
index bb337a2..69aab1a 100644 (file)
@@ -631,7 +631,7 @@ static int ix86_comp_type_attributes PARAMS ((tree, tree));
 #  define TARGET_ASM_FUNCTION_PROLOGUE ix86_osf_output_function_prologue
 #endif
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Sometimes certain combinations of command options do not make
    sense on a particular target machine.  You can define a macro
index ae72157..ead357a 100644 (file)
@@ -70,7 +70,7 @@ rtx i860_compare_op0, i860_compare_op1;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE i860_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Return non-zero if this pattern, can be evaluated safely, even if it
    was not asked for.  */
index 264f7ee..7cdb5aa 100644 (file)
@@ -98,7 +98,7 @@ static int ret_label = 0;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE i960_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Initialize variables before compiling any files.  */
 
index 296306b..2588612 100644 (file)
@@ -149,7 +149,7 @@ static void ia64_function_epilogue PARAMS((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE ia64_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Return 1 if OP is a valid operand for the MEM of a CALL insn.  */
 
index 12dad0d..006e7be 100644 (file)
@@ -76,7 +76,7 @@ static void  m32r_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE m32r_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Called by OVERRIDE_OPTIONS to initialize various things.  */
 
index a05eae5..2019109 100644 (file)
@@ -213,7 +213,7 @@ static int nb_soft_regs;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE m68hc11_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 int
 m68hc11_override_options ()
index 5df64bf..ffe7ed9 100644 (file)
@@ -86,7 +86,7 @@ int m68k_last_compare_had_fp_operands;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE m68k_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Sometimes certain combinations of command options do not make
    sense on a particular target machine.  You can define a macro
index 3cb8890..80867f2 100644 (file)
@@ -72,7 +72,7 @@ static void m88k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE m88k_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Determine what instructions are needed to manufacture the integer VALUE
    in the given MODE.  */
index c578175..e1f0f33 100644 (file)
@@ -142,7 +142,7 @@ static int        mcore_valid_decl_attribute   PARAMS ((tree, tree,
 #undef TARGET_VALID_DECL_ATTRIBUTE
 #define TARGET_VALID_DECL_ATTRIBUTE mcore_valid_decl_attribute
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Adjust the stack and return the number of bytes taken to do it.  */
 static void
index 94308af..e07f246 100644 (file)
@@ -446,7 +446,7 @@ enum reg_class mips_char_to_class[256] =
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE mips_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Return truth value of whether OP can be used as an operands
    where a register or 16 bit unsigned integer is needed.  */
index 55c9fa5..45432ac 100644 (file)
@@ -68,7 +68,7 @@ static int out_of_line_epilogue;
 \f
 /* Initialize the GCC target structure.  */
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Indicate this file was compiled by gcc and what optimization
    level was used.  */
index f472867..decbe6d 100644 (file)
@@ -53,7 +53,7 @@ Boston, MA 02111-1307, USA.  */
 \f
 /* Initialize the GCC target structure.  */
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 void
 asm_file_start (file)
index ca84f6e..9ad3b0c 100644 (file)
@@ -77,7 +77,7 @@ static void ns32k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE ns32k_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index 0423383..36aad1b 100644 (file)
@@ -116,7 +116,7 @@ int n_deferred_plabels = 0;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE pa_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 void
 override_options ()
index 2fdf0b0..97d23fe 100644 (file)
@@ -61,7 +61,7 @@ static void pdp11_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE pdp11_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Nonzero if OP is a valid second operand for an arithmetic insn.  */
 
index 1e0d3a8..02ef9a2 100644 (file)
@@ -127,7 +127,7 @@ int pj_stuff_on_line;
 \f
 /* Initialize the GCC target structure.  */
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* printf to the asm_out_file, with special format control characters
    for decoding operands.  
index 3fd24b5..27a1706 100644 (file)
@@ -59,7 +59,7 @@ static void romp_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE romp_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Return 1 if the insn using CC0 set by INSN does not contain
    any unsigned tests applied to the condition codes.
index 9c77e7a..21c9f18 100644 (file)
@@ -175,7 +175,7 @@ static char alt_reg_names[][8] =
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE rs6000_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Override command line options.  Mostly we process the processor
    type and sometimes adjust other TARGET_ options.  */
index 63c0f16..db8de65 100644 (file)
@@ -163,7 +163,7 @@ static void sh_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE sh_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Print the operand address in x to the stream.  */
 
index ad63e33..197242d 100644 (file)
@@ -192,7 +192,7 @@ enum processor_type sparc_cpu;
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE sparc_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Validate and override various options, and do some machine dependent
    initialization.  */
index 88d6f3f..10f33e2 100644 (file)
@@ -86,7 +86,7 @@ static int v850_interrupt_p = FALSE;
 #undef TARGET_VALID_DECL_ATTRIBUTE
 #define TARGET_VALID_DECL_ATTRIBUTE v850_valid_decl_attribute
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Sometimes certain combinations of command options do not make
    sense on a particular target machine.  You can define a macro
index 50d9f70..57f14e8 100644 (file)
@@ -42,7 +42,7 @@ static void vax_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_PROLOGUE
 #define TARGET_ASM_FUNCTION_PROLOGUE vax_output_function_prologue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index 1a4fe88..462b598 100644 (file)
@@ -44,7 +44,7 @@ static void we32k_output_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
 #undef TARGET_ASM_FUNCTION_EPILOGUE
 #define TARGET_ASM_FUNCTION_EPILOGUE we32k_output_function_epilogue
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 \f
 /* Generate the assembly code for function entry.  FILE is a stdio
    stream to output the code to.  SIZE is an int: how many units of
index 350422b..f6edc2c 100644 (file)
@@ -3484,7 +3484,7 @@ duplicate_decls (newdecl, olddecl)
   /* Copy all the DECL_... slots specified in the new decl
      except for any that we copy here from the old type.  */
   DECL_MACHINE_ATTRIBUTES (newdecl)
-    = (*target.merge_decl_attributes) (olddecl, newdecl);
+    = (*targetm.merge_decl_attributes) (olddecl, newdecl);
 
   if (TREE_CODE (newdecl) == TEMPLATE_DECL)
     {
index 802ad49..5b0abfc 100644 (file)
@@ -2456,16 +2456,16 @@ import_export_class (ctype)
   if (CLASSTYPE_INTERFACE_ONLY (ctype))
     return;
 
-  if ((*target.valid_type_attribute) (ctype,
-                                     TYPE_ATTRIBUTES (ctype),
-                                     get_identifier ("dllimport"),
-                                     NULL_TREE)
+  if ((*targetm.valid_type_attribute) (ctype,
+                                      TYPE_ATTRIBUTES (ctype),
+                                      get_identifier ("dllimport"),
+                                      NULL_TREE)
       && lookup_attribute ("dllimport", TYPE_ATTRIBUTES (ctype)))
     import_export = -1;
-  else if ((*target.valid_type_attribute) (ctype,
-                                          TYPE_ATTRIBUTES (ctype),
-                                          get_identifier ("dllexport"),
-                                          NULL_TREE)
+  else if ((*targetm.valid_type_attribute) (ctype,
+                                           TYPE_ATTRIBUTES (ctype),
+                                           get_identifier ("dllexport"),
+                                           NULL_TREE)
           && lookup_attribute ("dllexport", TYPE_ATTRIBUTES (ctype)))
     import_export = 1;
 
index 43f38f3..1cf76e5 100644 (file)
@@ -212,7 +212,7 @@ qualify_type_recursive (t1, t2)
       tree b1;
       int type_quals;
       tree tgt;
-      tree attributes = (*target.merge_type_attributes) (t1, t2);
+      tree attributes = (*targetm.merge_type_attributes) (t1, t2);
 
       if (TREE_CODE (tt1) == OFFSET_TYPE)
        {
@@ -343,7 +343,7 @@ type_after_usual_arithmetic_conversions (t1, t2)
 
   /* In what follows, we slightly generalize the rules given in [expr]
      so as to deal with `long long'.  First, merge the attributes.  */
-  attributes = (*target.merge_type_attributes) (t1, t2);
+  attributes = (*targetm.merge_type_attributes) (t1, t2);
 
   /* If only one is real, use it as the result.  */
   if (code1 == REAL_TYPE && code2 != REAL_TYPE)
@@ -549,7 +549,7 @@ common_type (t1, t2)
     return type_after_usual_arithmetic_conversions (t1, t2);
 
   /* Merge the attributes.  */
-  attributes = (*target.merge_type_attributes) (t1, t2);
+  attributes = (*targetm.merge_type_attributes) (t1, t2);
 
   /* Treat an enum type as the unsigned integer type of the same width.  */
 
@@ -999,7 +999,7 @@ comptypes (t1, t2, strict)
   if (strict & COMPARE_NO_ATTRIBUTES)
     attrval = 1;
   /* 1 if no need for warning yet, 2 if warning cause has been seen.  */
-  else if (! (attrval = (*target.comp_type_attributes) (t1, t2)))
+  else if (! (attrval = (*targetm.comp_type_attributes) (t1, t2)))
      return 0;
 
   /* 1 if no need for warning yet, 2 if warning cause has been seen.  */
index 71b5a91..b76b040 100644 (file)
@@ -55,8 +55,8 @@ through the macros defined in the @file{.h} file.
 @cindex target hooks
 @cindex target functions
 
-@deftypevar {struct gcc_target} target
-The target @file{.c} file must define the global @code{target} variable
+@deftypevar {struct gcc_target} targetm
+The target @file{.c} file must define the global @code{targetm} variable
 which contains pointers to functions and data relating to the target
 machine.  The variable is declared in @file{target.h};
 @file{target-def.h} defines the macro @code{TARGET_INITIALIZER} which is
@@ -72,7 +72,7 @@ macros for which the default definition is inappropriate.  For example:
 #undef TARGET_VALID_TYPE_ATTRIBUTE
 #define TARGET_VALID_TYPE_ATTRIBUTE @var{machine}_valid_type_attribute_p
 
-struct gcc_target target = TARGET_INITIALIZER;
+struct gcc_target targetm = TARGET_INITIALIZER;
 @end smallexample
 @end deftypevar
 
index f40492b..7509fbe 100644 (file)
@@ -1630,7 +1630,7 @@ final_start_function (first, file, optimize)
     }
 
   /* First output the function prologue: code to set up the stack frame.  */
-  (*target.asm_out.function_prologue) (file, get_frame_size ());
+  (*targetm.asm_out.function_prologue) (file, get_frame_size ());
 
   /* If the machine represents the prologue as RTL, the profiling code must
      be emitted when NOTE_INSN_PROLOGUE_END is scanned.  */
@@ -1773,7 +1773,7 @@ final_end_function (first, file, optimize)
 
   /* Finally, output the function epilogue:
      code to restore the stack frame and return to the caller.  */
-  (*target.asm_out.function_epilogue) (file, get_frame_size ());
+  (*targetm.asm_out.function_epilogue) (file, get_frame_size ());
 
 #ifdef SDB_DEBUGGING_INFO
   if (write_symbols == SDB_DEBUG)
index 9515aff..11d0a0e 100644 (file)
@@ -33,9 +33,9 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    includes target.h and target-def.h, and overrides any inappropriate
    defaults by undefining the relevant macro and defining a suitable
    replacement.  That file should then contain the definition of
-   "target" like so:
+   "targetm" like so:
 
-   struct gcc_target target = TARGET_INITIALIZER;
+   struct gcc_target targetm = TARGET_INITIALIZER;
 
    Doing things this way allows us to bring together everything that
    defines a target to GCC.  By supplying a default that is
@@ -83,4 +83,4 @@ struct gcc_target
   void (* set_default_type_attributes) PARAMS ((tree type));
 };
 
-extern struct gcc_target target;
+extern struct gcc_target targetm;
index fdae851..a48724b 100644 (file)
@@ -435,7 +435,7 @@ make_node (code)
 
       /* Default to no attributes for type, but let target change that.  */
       TYPE_ATTRIBUTES (t) = NULL_TREE;
-      (*target.set_default_type_attributes) (t);
+      (*targetm.set_default_type_attributes) (t);
 
       /* We have not yet computed the alias set for this type.  */
       TYPE_ALIAS_SET (t) = -1;
@@ -2759,8 +2759,8 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
     {
       tree decl_attrs = DECL_MACHINE_ATTRIBUTES (decl);
 
-      if ((*target.valid_decl_attribute) (decl, decl_attrs, attr_name,
-                                         attr_args))
+      if ((*targetm.valid_decl_attribute) (decl, decl_attrs, attr_name,
+                                          attr_args))
        {
          tree attr = lookup_attribute (IDENTIFIER_POINTER (attr_name),
                                        decl_attrs);
@@ -2783,8 +2783,8 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
     }
 
   type_attrs = TYPE_ATTRIBUTES (type);
-  if ((*target.valid_type_attribute) (type, type_attrs, attr_name,
-                                     attr_args))
+  if ((*targetm.valid_type_attribute) (type, type_attrs, attr_name,
+                                      attr_args))
     {
       tree attr = lookup_attribute (IDENTIFIER_POINTER (attr_name),
                                    type_attrs);
@@ -2818,8 +2818,8 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
      by putting the attribute on the function type.  */
   else if (POINTER_TYPE_P (type)
           && TREE_CODE (TREE_TYPE (type)) == FUNCTION_TYPE
-          && (*target.valid_type_attribute) (TREE_TYPE (type), type_attrs,
-                                             attr_name, attr_args))
+          && (*targetm.valid_type_attribute) (TREE_TYPE (type), type_attrs,
+                                              attr_name, attr_args))
     {
       tree inner_type = TREE_TYPE (type);
       tree inner_attrs = TYPE_ATTRIBUTES (inner_type);