OSDN Git Service

entered into RCS
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jul 1992 02:40:53 +0000 (02:40 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jul 1992 02:40:53 +0000 (02:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1565 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/halfpic.c
gcc/stmt.c
gcc/varasm.c

index 77c392f..f691ce3 100644 (file)
@@ -225,7 +225,7 @@ half_pic_encode (decl)
 #endif
 
   /* If this is not an external reference, it can't be half-pic.  */
-  if (!TREE_EXTERNAL (decl) && (code != VAR_DECL || !TREE_PUBLIC (decl)))
+  if (!DECL_EXTERNAL (decl) && (code != VAR_DECL || !TREE_PUBLIC (decl)))
     return;
 
   ptr = half_pic_hash (IDENTIFIER_POINTER (asm_name),
index b9cea5f..1713cc3 100644 (file)
@@ -895,12 +895,12 @@ fixup_gotos (thisblock, stack_level, cleanup_list, first_insn, dont_jump_in)
              && (after_label == 0
                  || INSN_UID (first_insn) < INSN_UID (after_label))
              && INSN_UID (first_insn) > INSN_UID (f->before_jump)
-             && ! TREE_REGDECL (f->target))
+             && ! DECL_REGISTER (f->target))
            {
              error_with_decl (f->target,
                               "label `%s' used before containing binding contour");
              /* Prevent multiple errors for one label.  */
-             TREE_REGDECL (f->target) = 1;
+             DECL_REGISTER (f->target) = 1;
            }
 
          /* Execute cleanups for blocks this jump exits.  */
@@ -2720,7 +2720,7 @@ expand_decl (decl)
 
   if (TREE_CODE (decl) != VAR_DECL)
     return;
-  if (TREE_STATIC (decl) || TREE_EXTERNAL (decl))
+  if (TREE_STATIC (decl) || DECL_EXTERNAL (decl))
     return;
 
   /* Create the RTL representation for the variable.  */
@@ -2745,7 +2745,7 @@ expand_decl (decl)
                && TREE_CODE (type) == REAL_TYPE)
           && ! TREE_THIS_VOLATILE (decl)
           && ! TREE_ADDRESSABLE (decl)
-          && (TREE_REGDECL (decl) || ! obey_regdecls))
+          && (DECL_REGISTER (decl) || ! obey_regdecls))
     {
       /* Automatic variable that can go in a register.  */
       DECL_RTL (decl) = gen_reg_rtx (DECL_MODE (decl));
index d15ddb9..72148ee 100644 (file)
@@ -310,21 +310,21 @@ make_decl_rtl (decl, asmspec, top_level)
       DECL_RTL (decl) = 0;
 
       /* First detect errors in declaring global registers.  */
-      if (TREE_REGDECL (decl) && reg_number == -1)
+      if (DECL_REGISTER (decl) && reg_number == -1)
        error_with_decl (decl,
                         "register name not specified for `%s'");
-      else if (TREE_REGDECL (decl) && reg_number < 0)
+      else if (DECL_REGISTER (decl) && reg_number < 0)
        error_with_decl (decl,
                         "invalid register name for `%s'");
-      else if ((reg_number >= 0 || reg_number == -3) && ! TREE_REGDECL (decl))
+      else if ((reg_number >= 0 || reg_number == -3) && ! DECL_REGISTER (decl))
        error_with_decl (decl,
                         "register name given for non-register variable `%s'");
-      else if (TREE_REGDECL (decl) && TREE_CODE (decl) == FUNCTION_DECL)
+      else if (DECL_REGISTER (decl) && TREE_CODE (decl) == FUNCTION_DECL)
        error ("function declared `register'");
-      else if (TREE_REGDECL (decl) && TYPE_MODE (TREE_TYPE (decl)) == BLKmode)
+      else if (DECL_REGISTER (decl) && TYPE_MODE (TREE_TYPE (decl)) == BLKmode)
        error_with_decl (decl, "data type of `%s' isn't suitable for a register");
       /* Now handle properly declared static register variables.  */
-      else if (TREE_REGDECL (decl))
+      else if (DECL_REGISTER (decl))
        {
          int nregs;
 #if 0 /* yylex should print the warning for this */
@@ -361,7 +361,7 @@ make_decl_rtl (decl, asmspec, top_level)
          /* Can't use just the variable's own name for a variable
             whose scope is less than the whole file.
             Concatenate a distinguishing number.  */
-         if (!top_level && !TREE_EXTERNAL (decl) && asmspec == 0)
+         if (!top_level && !DECL_EXTERNAL (decl) && asmspec == 0)
            {
              char *label;
 
@@ -696,7 +696,7 @@ assemble_variable (decl, top_level, at_end)
   /* Normally no need to say anything for external references,
      since assembler considers all undefined symbols external.  */
 
-  if (TREE_EXTERNAL (decl))
+  if (DECL_EXTERNAL (decl))
     return;
 
   /* Output no assembler code for a function declaration.
@@ -947,7 +947,7 @@ assemble_external (decl)
 {
 #ifdef ASM_OUTPUT_EXTERNAL
   if (TREE_CODE_CLASS (TREE_CODE (decl)) == 'd'
-      && TREE_EXTERNAL (decl) && TREE_PUBLIC (decl))
+      && DECL_EXTERNAL (decl) && TREE_PUBLIC (decl))
     {
       rtx rtl = DECL_RTL (decl);