Comment #2 on issue 390 by [email protected]: Compiling with AddressSanitizer using gcc ≥4.9 breaks printng some variables in gdb on Linux
https://code.google.com/p/address-sanitizer/issues/detail?id=390

But why '-fsanitize=address' changes optimizations?

It's possible that it's something with gcc internals, but ever since I'm working on pretty big C89 project compiled on gcc-s 2.95.3-5.1 I've *never* encountered '<optimized out>' without '-O' switch, especially with a '-g' one…

That variable should not be optimized out since it's passed around and written into. Any combination of '-O' and '-g' switches doesn't stop it from „disappearing”, also making the variable volatile (!). Only disabling ASAN.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to