This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
How to build gcc with address sanitizer?
- From: Qing Zhao <QING dot ZHAO at ORACLE dot COM>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 9 Dec 2019 10:58:26 -0600
- Subject: How to build gcc with address sanitizer?
Hello,
When using gcc8.2.1 to build one application, it’s out of memory during “cc1”, We suspect that there are some memory leak problem in “cc1”, therefore tried to build
Gcc with address sanitizer in order to detect the memory leak during compilation.
However, it took me a lot of time in order to build the gcc (or just “cc1”) with address sanitizer. Still cannot do this successfully till now.
Did anyone do this before? Any documentation on how to do this?
Thanks a lot for any help.
Qing