This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jul 2017 03:07:46 +0000
- Subject: [Bug tree-optimization/81388] Incorrect code generation with -O1 -fno-strict-overflow
- Auto-submitted: auto-generated
- References: <bug-81388-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81388
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fno-strict-overflow Does not effect Pointers.
Pointers overflow is separate from integer signed overflow and it is always
undefined if the pointer overflow. That is once a pointer is non-null, adding
to it can never reach be null.