issue with gcc 4.x optimizations

Martin Quinson martin.quinson@loria.fr
Thu Jul 6 01:52:00 GMT 2006


For information, I've solved my issue. A part of my code was doing an
overflow in an array stored on the stack. It looks like %ebx is stored right
after user data, but only reused with dynamic linking and some optimizations
enabled (or so).

That is why it worked without optimization: I was overwritting a useless
value in that case.

Hoo-ray!

I am deeply sorry for this list polution.
Martin Quinson.

-- 
Oh, I am a C programmer and I'm okay.
I muck with indices and structs all day.
And when it works, I shout hoo-ray.
Oh, I am a C programmer and I'm okay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20060706/179a1262/attachment.sig>


More information about the Gcc-help mailing list