Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2024 15:55:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 280936] cannot build world with ASAN enabled
Message-ID:  <bug-280936-29464-kqWeO07iK0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280936-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280936-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280936

--- Comment #10 from Dimitry Andric <dim@FreeBSD.org> ---
Right, I knew I had seen this before:
https://github.com/llvm/llvm-project/issues/87923 [After 7740565f56ce,
"Assertion failed: (isa<Function>(Callee) || isa<GlobalAlias>(Callee)),
function analyzeAllUses" with -asan-use-stack-safety]

This looks like the same sort of thing. The minimized test case I arrived at
now was slightly different:

typedef int uint32_t;
void sysarch(int, void *);
#define DEFINE_UIFUNC(qual, ret_type, name, args)=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
\
  ret_type name args __attribute__((ifunc(#name "_resolver")));=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
\
  ret_type(*name##_resolver(uint32_t cpu_feature2)) args
int __fillcontextx2_xfpu() {
  int xfpu;
  sysarch(2, &xfpu);
  return 0;
}
int __fillcontextx2_noxfpu();
DEFINE_UIFUNC(, int, __fillcontextx2, (char *)) {
  return cpu_feature2 ? __fillcontextx2_xfpu : __fillcontextx2_noxfpu;
}
void __fillcontextx(char *ctx) { __fillcontextx2(ctx); }

I'll need do ping the assignee of the upstream bug again.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280936-29464-kqWeO07iK0>