summaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-01-03 23:19:19 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-01-03 23:19:19 -0800
commit1eaea05433cd21e35d5b544e2215cdb7bcb389be (patch)
tree043aea56a2a0e4e0f5f56625ff101db2e020f2d8 /gcc/local-alloc.c
parent0cc5f812236a618e6ff2d4f504ff442f0b80d06f (diff)
downloadgcc-1eaea05433cd21e35d5b544e2215cdb7bcb389be.tar.gz
* local-alloc.c (function_invariant_p): Update commentary.
From-SVN: r48530
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r--gcc/local-alloc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index e66761f3c7a..1a6e3cf97fb 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -1,6 +1,6 @@
/* Allocate registers within a basic block, for GNU compiler.
Copyright (C) 1987, 1988, 1991, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of GCC.
@@ -779,6 +779,12 @@ memref_used_between_p (memref, start, end)
}
/* Return nonzero if the rtx X is invariant over the current function. */
+/* ??? Actually, the places this is used in reload expect exactly what
+ is tested here, and not everything that is function invariant. In
+ particular, the frame pointer and arg pointer are special cased;
+ pic_offset_table_rtx is not, and this will cause aborts when we
+ go to spill these things to memory. */
+
int
function_invariant_p (x)
rtx x;