This is the mail archive of the gcc@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]

Re: BUG: g++ 3.x.x -fomit-frame-pointer: exception handling doesn'twork


Denis Zaitsev wrote:
When compiled without -fomit-frame-pointer, it behaves ok: it prints
'x'.  But if compiled with the option, it prints just 'Aborted',
i.e. no exception is catched at all.

Please see
http://gcc.gnu.org/bugs.html
for info on how to report bugs. This bug report is lacking so much info that it does not appear to be of any use.


You failed to mention the target. You mentioned %ebx in which we can imply that the target is x86, but it could also be x86_64. You failed to mention the gcc version. gcc 3.x.x isn't specific enough. I seriously doubt that you have tried every gcc version. Also, you failed to mention the exact options you are using, and the OS you are using.

I tried to reproduce this on the AMD64 SuSE 9.1 system on my desk. The installed compiler is gcc-3.3.3 (SuSE Linux). It works with -O, -O -fomit-frame-pointer, -m32 -O, and -m32 -O -fomit-frame-pointer. I tried it with the gcc-3.4.x branch on the same platform with the same options, and it worked for all of them.

I tried this on an x86 system using RHL 9, where the system compiler is 3.2.2 20030222 (Red Hat Linux 3.2.2-5). It works with both -O and -O -fomit-frame-pointer.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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