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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
find -type f | xargs grep %function
./interception/interception.h:       ".type  "
SANITIZER_STRINGIFY(TRAMPOLINE(func)) ", %function\n"         \
./builtins/assembly.h:#define SYMBOL_IS_FUNC(name) .type name,%function
./sanitizer_common/sanitizer_asm.h:# define ASM_TYPE_FUNCTION(symbol) .type
symbol, %function
./hwasan/hwasan_tag_mismatch_aarch64.S:.type __hwasan_tag_mismatch, %function
./hwasan/hwasan_tag_mismatch_aarch64.S:.type __hwasan_tag_mismatch_v2,
%function

I'm open to a local patch.
Shall we use @ except on aarch64/arm (sparc-svr4 not being supported in
libsanitizer I think), something else?
Though, builtins/assembly.h already has SYMBOL_IS_FUNC macro which ought to
DTRT, except that it is for *.S files and not for inline asm where things
should be stringified.

Reply via email to