public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Can gcc itself be tested with ubsan? If so, how?
@ 2021-09-27 23:00 Gary Oblock
  2021-09-28  6:35 ` Erick Ochoa
  0 siblings, 1 reply; 6+ messages in thread
From: Gary Oblock @ 2021-09-27 23:00 UTC (permalink / raw)
  To: gcc

I tried just adding "-fsanitize=undefined" to my CXX_FLAGS and got
a bunch of errors like this:

/usr/bin/ld: ../libcody/libcody.a(server.o): in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/9/bits/basic_string.h:150: undefined reference to `__ubsan_handle_type_mismatch_v1'

They all seemed library related.

Can ubsan be used on the compiler itself?

Thanks,

Gary




CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to Ampere Computing or its subsidiaries. It is to be used solely for the purpose of furthering the parties' business relationship. Any unauthorized review, copying, or distribution of this email (or any attachments thereto) is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-01 20:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-27 23:00 Can gcc itself be tested with ubsan? If so, how? Gary Oblock
2021-09-28  6:35 ` Erick Ochoa
2021-09-28  6:47   ` Toon Moene
2021-09-28 10:53     ` Eric Gallager
2021-09-29 18:55     ` Gary Oblock
2021-10-01 20:11       ` Gary Oblock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).