This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/35249] miscompilation of Emacs at -O
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2008 09:14:05 -0000
- Subject: [Bug middle-end/35249] miscompilation of Emacs at -O
- References: <bug-35249-6441@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from ebotcazou at gcc dot gnu dot org 2008-03-04 09:14 -------
> The original motivation for this report was that I was trying to reproduce the
> occasional problem of error being called (a "this should never happen" sanity
> check) at this place in the code. I thought I had managed to do that with the
> bugzilla reported simple sequence of events immediately after starting emacs.
> Does your finding suggest that my supposed reproduction of the error call was
> an illusion? (And that there is no miscompilation either.)
You really need to put the breakpoint on 'error' to be sure. Source location
information is seriously shaken by optimization in the 4.x series of compilers
so I wouldn't rely on it to put breakpoints in optimized code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35249