public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/103453] New: ASAN detection with clang
@ 2021-11-27 19:03 glisse at gcc dot gnu.org
  2021-11-27 23:33 ` [Bug libstdc++/103453] " redi at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: glisse at gcc dot gnu.org @ 2021-11-27 19:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103453

            Bug ID: 103453
           Summary: ASAN detection with clang
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---

Libstdc++ uses __SANITIZE_ADDRESS__ to detect if ASAN is enabled, but with
clang that should be __has_feature(address_sanitizer). This means that
_GLIBCXX_SANITIZE_STD_ALLOCATOR is not automatically defined, and thus defining
_GLIBCXX_SANITIZE_VECTOR has no effect.

(noticed in https://stackoverflow.com/q/70117470/1918193 )

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

end of thread, other threads:[~2022-01-05 22:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27 19:03 [Bug libstdc++/103453] New: ASAN detection with clang glisse at gcc dot gnu.org
2021-11-27 23:33 ` [Bug libstdc++/103453] " redi at gcc dot gnu.org
2021-11-30  0:21 ` pinskia at gcc dot gnu.org
2021-11-30 13:52 ` redi at gcc dot gnu.org
2021-11-30 20:11 ` cvs-commit at gcc dot gnu.org
2021-11-30 20:18 ` redi at gcc dot gnu.org
2021-12-01  1:01 ` unlvsur at live dot com
2021-12-01  1:02 ` unlvsur at live dot com
2021-12-01  1:06 ` unlvsur at live dot com
2021-12-01  1:22 ` unlvsur at live dot com
2021-12-01  4:51 ` unlvsur at live dot com
2021-12-01  8:29 ` redi at gcc dot gnu.org
2021-12-01  8:37 ` redi at gcc dot gnu.org
2022-01-05 22:06 ` cvs-commit at gcc dot gnu.org
2022-01-05 22:06 ` cvs-commit at gcc dot gnu.org
2022-01-05 22:10 ` redi at gcc dot gnu.org

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).