aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-12 02:40:53 +0000
committerRichard Stallman <rms@gnu.org>1992-07-12 02:40:53 +0000
commit44fe2e801cd57019e45cb0e66fd9ba6e4a8e18b2 (patch)
tree8ccb94d7809bf22a61cb164d5bdcba68ae4b9411
parente2f2127c322fb176748f82991290c474b315d0c6 (diff)
downloadgcc-44fe2e801cd57019e45cb0e66fd9ba6e4a8e18b2.zip
gcc-44fe2e801cd57019e45cb0e66fd9ba6e4a8e18b2.tar.gz
gcc-44fe2e801cd57019e45cb0e66fd9ba6e4a8e18b2.tar.bz2
entered into RCS
From-SVN: r1565
-rw-r--r--gcc/halfpic.c2
-rw-r--r--gcc/stmt.c8
-rw-r--r--gcc/varasm.c18
3 files changed, 14 insertions, 14 deletions
diff --git a/gcc/halfpic.c b/gcc/halfpic.c
index 77c392f..f691ce3 100644
--- a/gcc/halfpic.c
+++ b/gcc/halfpic.c
@@ -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),
diff --git a/gcc/stmt.c b/gcc/stmt.c
index b9cea5f..1713cc3 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -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));
diff --git a/gcc/varasm.c b/gcc/varasm.c
index d15ddb9..72148ee 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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);