summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-11 20:13:46 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-08-11 20:13:46 +0000
commit23fa08a2e17962ce4d215f4b0739d06914efaeef (patch)
tree6c8e6180ed905d2fccefcf0d62b5b1a181460120
parent24536536ac51aad219a3cb9f6d13e36c851418a9 (diff)
downloadppe42-gcc-23fa08a2e17962ce4d215f4b0739d06914efaeef.tar.gz
ppe42-gcc-23fa08a2e17962ce4d215f4b0739d06914efaeef.zip
* doc/extend.texi (Arrays and pointers implementation): Discourage
relying on sign-extension of pointers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44805 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c23a962195c..481c55cf8aa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-11 Richard Henderson <rth@redhat.com>
+
+ * doc/extend.texi (Arrays and pointers implementation): Discourage
+ relying on sign-extension of pointers.
+
2001-08-11 H.J. Lu <hjl@gnu.org>
* config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 12b9e71bd5f..2951096078e 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -202,7 +202,9 @@ IEC 60559 conformant implementation (F.9).}
vice versa (6.3.2.3).}
A cast from pointer to integer discards most-significant bits if the
-pointer representation is larger than the integer type, sign-extends
+pointer representation is larger than the integer type,
+sign-extends@footnote{Future versions of GCC may zero-extend, or use
+a target-defined @code{ptr_extend} pattern. Do not rely on sign extension.}
if the pointer representation is smaller than the integer type, otherwise
the bits are unchanged.
@c ??? We've always claimed that pointers were unsigned entities.
OpenPOWER on IntegriCloud