This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2005 17:31:09 -0000
- Subject: [Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2
- References: <bug-23585-11161@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from mark at codesourcery dot com 2005-10-11 17:31 -------
Subject: Re: [4.0 regression] mem_fun* code fine
with -O1, bus error with -O2
giovannibajo at libero dot it wrote:
> ------- Comment #15 from giovannibajo at libero dot it 2005-10-11 17:16 -------
> Probably. But what if the problem with dereferencing p was that it is NULL,
> instead of a misalignment? Would that case be caught in reorg by something
> else?
Well, then the code would have undefined behavior, and the bus error
would be OK.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23585