This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/39701] [4.5 Regression] Revision 145846 caused many test failures
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2009 16:50:36 -0000
- Subject: [Bug middle-end/39701] [4.5 Regression] Revision 145846 caused many test failures
- References: <bug-39701-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from hp at gcc dot gnu dot org 2009-04-10 16:50 -------
(In reply to comment #6)
> > We know it's not NULL.
> I don't think the compiler can say so if not -fdelete-null-pointer-checks, and
> the flag is off at -O0 and -O1 (which is a separate bug and a separate patch).
Different thing. You're taking the address of a (non-weak) *object* (hence,
can't be NULL), not removing a NULL test because of an earlier *pointer*
indirection.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39701