Recommended developer options when compiling GCC from source

I’m trying to pin down a runtime memory corruption error with gfortran, and there are (or used to be) some optional components that could be built-in to gcc/gfortran when building GCC from source. I recall seeing recommendations somewhere from gfortran developers about how to enable and use these options specifically in regards to diagnosing gfortran bugs, but I’m unable to locate that now. I believe one of the options was -enable=libsanitizer, but I think that was just one piece. Suggestions? (@kargl ?)

Since @kargl left the forum, if no one answers here you may also want to email the gfortran developers list.

Since @kargl left the forum […]

I’m sorry to learn that. I usually found his comments to be very helpful.

1 Like

There is a lot of -fsanitizer options on this page: