This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 10/10] Add --enable-ubsan
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> + Enable or disable the undefined behavior sanitizer. Release
>> + versions of gdb disable this by default, but development versions
Eli> "GDB", capitalized, I guess?
Done.
>> +`--enable-ubsan'
>> + Enable the GCC undefined behavior sanitizer. By default this is
>> + disabled in GDB releases, but enabled when building from git.
>> + The undefined behavior sanitizer checks for C++ undefined
>> + behavior. It has a performance cost, so if you are looking at
>> + GDB's performance, you should disable it.
Eli> Does this require some minimal version of g++? If so, I think we
Eli> should mention that. And what about testing for this support at
Eli> configure time?
It was in GCC 4.9. It is tested at configure time. I've updated the
text & will send a new patch.
>> +# ac_fn_cxx_try_link LINENO
>> +# -------------------------
[..]
Eli> Is this hunk related to the issue at hand?
Yes, I think it's part of configure expansion of the new test.
Tom