This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2005 18:40:18 -0000
- Subject: [Bug middle-end/25512] [4.1/4.2 Regression] Overflow not handled in ptr arithmetic folding
- References: <bug-25512-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from gdr at integrable-solutions dot net 2005-12-21 18:40 -------
Subject: Re: [4.1/4.2 Regression] Overflow not handled in ptr arithmetic
folding
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| One more thing, the comparision will fail with segmented memory targets like
| x86 (when using the segment register).
I don't know whether GCC supports such target (if yes, you've
potentially found a bug in GCC's implementation of total pointer
ordering as required by the C++ standard)
That is more reason for GCC to document what the mapping for the
conversion T* -> integer type.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25512