This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/23585] [4.0 regression] mem_fun* code fine with -O1, bus error with -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]