public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136]
@ 2022-06-30  4:22 Xi Ruoyao
  2022-07-25  7:06 ` PING: " Xi Ruoyao
  0 siblings, 1 reply; 2+ messages in thread
From: Xi Ruoyao @ 2022-06-30  4:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: Richard Sandiford, Yunqiang Su, Dimitrije Milosevic

In libsanitizer code, the size of some GNU libc data structure (notably,
struct stat) is hard coded.  These sizes may trigger a static assert
buidling against another libc.

Just make non-GNU libc targets UNSUPPORTED now.  If someone really cares
about those alternative libc implementations, please submit patch to
LLVM project adding the support.

libsanitizer/ChangeLog

	PR sanitizer/106136
	* configure.tgt: Change mips*-*-linux* to mips*-*-linux-gnu*
	because it fails to build with non-GNU libc.
---
 libsanitizer/configure.tgt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index fb89df4935c..54b74b60e2f 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -54,7 +54,7 @@ case "${target}" in
 	;;
   arm*-*-linux*)
 	;;
-  mips*-*-linux*)
+  mips*-*-linux-gnu*)
 	;;
   aarch64*-*-linux*)
 	if test x$ac_cv_sizeof_void_p = x8; then
-- 
2.37.0



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

end of thread, other threads:[~2022-07-25  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30  4:22 [PATCH] libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136] Xi Ruoyao
2022-07-25  7:06 ` PING: " Xi Ruoyao

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