From 1eaea05433cd21e35d5b544e2215cdb7bcb389be Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 3 Jan 2002 23:19:19 -0800 Subject: [PATCH] * local-alloc.c (function_invariant_p): Update commentary. From-SVN: r48530 --- gcc/ChangeLog | 4 ++++ gcc/local-alloc.c | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 501e1552444..0c58a03cf68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-01-03 Richard Henderson + + * local-alloc.c (function_invariant_p): Update commentary. + 2002-01-04 H.J. Lu * toplev.c (rest_of_compilation): Fix a typo when calling 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; -- 2.30.2