extend.texi (Arrays and pointers implementation): Discourage relying on sign-extensio...
authorRichard Henderson <rth@redhat.com>
Sat, 11 Aug 2001 20:13:46 +0000 (13:13 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 11 Aug 2001 20:13:46 +0000 (13:13 -0700)
        * doc/extend.texi (Arrays and pointers implementation): Discourage
        relying on sign-extension of pointers.

From-SVN: r44805

gcc/ChangeLog
gcc/doc/extend.texi

index c23a962195cc36a2b44226ab95c8227e34079e1a..481c55cf8aa75111ad5417b14c4f702226f8bec5 100644 (file)
@@ -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
index 12b9e71bd5f84d74acf59bfa346c3d4dc90b890f..2951096078e4d76f15d091a5c044897edf96c464 100644 (file)
@@ -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.