From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by sourceware.org (Postfix) with ESMTPS id AF6E23858D28 for ; Fri, 28 Oct 2022 17:35:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF6E23858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-13be3ef361dso7008498fac.12 for ; Fri, 28 Oct 2022 10:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=KYVyzugj9xw0MJCuaSsrK4SPNsL6VUNITm8jpAO6YsU=; b=KUcPmWWFbT8weY5ul6Eeza4reYotYea3rZjdrrB+yxpmJGkR7JqxtFMOMNp5/tIIaE Q2YYQ2Rgox8rxZJ0/1OLJf8Qznls6qzCoc0ORhJitkPxeWq42YOdmVNDhdJG+4tB2G8k pnBwqDKjot5t214hRHGh7z0VjxLJIGym9g2+W0s58YvkKyklBFEYYs6RdA1gtQL2TOG3 55m2XNmShj895isGI/xIJp4CPa4xbJWimGEQnD+M0vDg9MKwsK3PAIpBBFgMl6rNbsHW s98TcszWbYvQY8RPPaT5TFJsG7K7JehZ4K6fAFcpCymJpbK/XxIalHVGNzh+/mlXqiht JOiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KYVyzugj9xw0MJCuaSsrK4SPNsL6VUNITm8jpAO6YsU=; b=G2uC+2Dz/SOVX/X4JOZzVcM5RMU+1g9qBgiIymx5jHb6pQ9VihetpEZGpfu3Vces2z T0XB2k/+6zm1YzmbUsTUqajq5TXs+0SgFw5EVmPvocmJdDEA63zf61voEzrhJ9E4IEYK sZW6moiSNIhxhI75zwBfBQJ/xeCDCOcWjjRxoixOh6HjH3ZiQVblYrYBWlJV/Bg+UqHF jm/9PZwj6IDFO/dRsCwVPOTQErMRZ1DbSx6dy/08WcOkcuQ9TplGi7UzytfNhJeHpKoj z0/8mJBrPkz0Znc6Z9T0XxprHvv3ifInfJWL53fjBpjvLjdCq0v8omlbDbJNuAXgZzvH LLAQ== X-Gm-Message-State: ACrzQf38i9qML00DrEsKwje5yS/MGPG/g63XvpCwnbwvJWmhrZssxOT1 FzpEjcwdFqKVvBaY4e9ZF+sdVlWqECltmh2b X-Google-Smtp-Source: AMsMyM6HX8aiL5iGHV/z0veCQCeT7c2B75IcKlDsbgwBv2g0rrL3gDMnJhDn+d6f/56MFME0MNzIAg== X-Received: by 2002:a05:6870:c88d:b0:137:5344:776e with SMTP id er13-20020a056870c88d00b001375344776emr9688435oab.180.1666978536559; Fri, 28 Oct 2022 10:35:36 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:17c8:6484:1100:1451:7f3f]) by smtp.gmail.com with ESMTPSA id v10-20020a056870b50a00b0012779ba00fesm2434998oap.2.2022.10.28.10.35.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 10:35:36 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 00/11] Initial fixes for clang build support Date: Fri, 28 Oct 2022 14:35:21 -0300 Message-Id: <20221028173532.876027-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: These are some patches requires to start the glibc build support by clang, which are far from all required to have minimum support. I am also tracking the support on a personal branch [1]. [1] https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/azanella/clang Adhemerval Zanella (9): Rewrite find_cxx_header config configure.ac linux: Move hidden_proto before static inline usage on not-cancel.h intl: Fix clang -Wunused-but-set-variable on plural.c Disable use of -fsignaling-nans if compiler does not support it stdlib: Move attribute_hidden definition to function prototype at gmp.h configure: Use -Wno-ignored-attributes if compiler warns about multiple aliases alloc_buffer: Apply asm redirection before first use allocate_once: Apply asm redirection before first use nptl: Fix pthread_create.c build with clang Fangrui Song (2): stdlib/longlong.h: Remove incorrect lvalue to rvalue conversion from asm output constraints Disable __USE_EXTERN_INLINES for clang argp/Makefile | 7 +- benchtests/Makefile | 6 +- configure | 55 +++++- configure.ac | 36 +++- dirent/Makefile | 1 + include/alloc_buffer.h | 23 ++- include/allocate_once.h | 7 +- include/features.h | 2 +- include/gmp.h | 12 -- inet/Makefile | 3 + intl/Makefile | 3 +- io/Makefile | 18 +- libio/Makefile | 14 +- login/Makefile | 1 + math/Makefile | 19 +- math/libm-test-fpclassify.inc | 2 + math/libm-test-isfinite.inc | 2 + math/libm-test-isinf.inc | 2 + math/libm-test-isnan.inc | 2 + math/libm-test-isnormal.inc | 2 + math/libm-test-issubnormal.inc | 2 + math/libm-test-iszero.inc | 2 + math/test-snan.c | 10 +- misc/Makefile | 2 + nptl/pthread_create.c | 6 +- posix/Makefile | 6 +- resolv/Makefile | 1 + resource/Makefile | 3 + socket/Makefile | 10 +- stdio-common/Makefile | 2 + stdlib/Makefile | 12 ++ stdlib/gmp.h | 72 +++---- stdlib/longlong.h | 186 +++++++++--------- string/Makefile | 9 + sysdeps/aarch64/Makefile | 1 + sysdeps/arm/Makefile | 4 + sysdeps/powerpc/nofpu/Makefile | 24 +-- .../powerpc32/power4/fpu/multiarch/Makefile | 4 +- .../powerpc64/be/fpu/multiarch/Makefile | 4 +- .../powerpc64/le/fpu/multiarch/Makefile | 4 +- sysdeps/unix/sysv/linux/not-cancel.h | 30 +-- sysdeps/wordsize-64/Makefile | 5 + termios/Makefile | 1 + time/Makefile | 1 + wcsmbs/Makefile | 24 ++- wctype/Makefile | 2 + 46 files changed, 410 insertions(+), 234 deletions(-) -- 2.34.1