summaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-04 07:19:19 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-04 07:19:19 +0000
commit6773ca2dba172f41bbfb132393b986bb708aa265 (patch)
tree043aea56a2a0e4e0f5f56625ff101db2e020f2d8 /gcc/local-alloc.c
parentf62198dedf161b5cc376f71565dc26daf2b2da55 (diff)
downloadgcc-6773ca2dba172f41bbfb132393b986bb708aa265.tar.gz
* local-alloc.c (function_invariant_p): Update commentary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48530 138bc75d-0d04-0410-961f-82ee72b054a4
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;