* local-alloc.c (function_invariant_p): Update commentary.
authorRichard Henderson <rth@redhat.com>
Fri, 4 Jan 2002 07:19:19 +0000 (23:19 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 4 Jan 2002 07:19:19 +0000 (23:19 -0800)
From-SVN: r48530

gcc/ChangeLog
gcc/local-alloc.c

index 501e1552444564fcfc119d8e15ce33c53e64b17b..0c58a03cf68a5a0e07b25b64752d7a5436b1936e 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-03  Richard Henderson  <rth@redhat.com>
+
+       * local-alloc.c (function_invariant_p): Update commentary.
+
 2002-01-04  H.J. Lu <hjl@gnu.org>
 
        * toplev.c (rest_of_compilation): Fix a typo when calling
index e66761f3c7a9b312258751d1614cbda23d234f57..1a6e3cf97fbdb1ef0b085246fbf576519ace1d86 100644 (file)
@@ -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)
 }
 \f
 /* 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;