This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/11968] Array reference is incorrectly computed for POINTERS_EXTEND_UNSIGNED
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2003 13:46:24 -0000
- Subject: [Bug middle-end/11968] Array reference is incorrectly computed for POINTERS_EXTEND_UNSIGNED
- References: <20030818160719.11968.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11968
roger at eyesopen dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From roger at eyesopen dot com 2003-11-01 13:46 -------
This issue has now been addressed on mainline by the following patch:
2003-10-31 Roger Sayle <roger@eyesopen.com>
PR middle-end/11968
* expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
confusing comment; distributivity isn't handled in expand_expr.
* fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
in distributivity, if wrap-around semantics are specified with
-fwrapv.
See http://gcc.gnu.org/ml/gcc-patches/2003-10/msg02726.html for details.