From patchwork Sat Sep 21 06:11:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174185 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp312023ill; Fri, 20 Sep 2019 23:11:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsC+w1YGGefQXtpbQwkZ1/gs3+b3Zx/w6+cUC53illTYc+H408ifSLZJWtZw0vciPPbr9p X-Received: by 2002:a17:907:20a2:: with SMTP id pw2mr21680420ejb.163.1569046306520; Fri, 20 Sep 2019 23:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569046306; cv=none; d=google.com; s=arc-20160816; b=R/B+RPgTnDxmlfRK2n41lwsgMX5gywOaEpff88siDcyFDMxOIoxxQbpJT1Z8+GfSIM coyiBS0FGhCDZ0WiUjPMnidNqOaL64r+griAhKKOp9uP5Eelz9bPHWKLptXNbavTQTv0 z2jJR43kdvzfrc1Ckq2OeFLT45VoUKjgwkp8UY3p5hYffOoaHrrcuJj9vXRxTXRK9tPc qwsveNvFpSOr+U6j5Y6Jg8XA5xF8d1sNUiR6HIgGxas9Rxd1yMp8lP3AEMgkRC6afOoC CNTRkn2E3JzRTWkwqqbmp/WnM5SbzSk95B1SlHL8Yr4KY/gTaGWE4bdIouj5whxL338I NTKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:to:from:dkim-signature:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature; bh=kWFuWUhHq869DyFYytWD+rygHw/KXG1pOkiPgMUPqlA=; b=Uzt4RTjWIfgtMvWaHqzwik6UyzTM6AWHwgHXu7vvS0MRj2OeFtqobE6KqQpP/tBHfj muK5zx8r28kv8kQdcS5plOVo9toF8TmxROplCl2rzhqtRMiv/OhnBP67XdQCgfqSwCNV v+pbPS9SPvJz5HKkTZ0aNKTbpJg3FVzwRU1PUskh+OR0VSZV2wEMaqvDWgLf0tctCsRT GLAUbFcMGl4CD1cbY2P8tT/BTQ4Kj0u3Xx0XChnaiCrrxI/Bj9VK830ANRnv4E+P81RL Tj99vqqPqOocbTKfkiXVTk1AiH+Gsf9/92gSrsZeEACwRFVEh00WRBn47WY3JPLtPzIS eVJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=sNnaBEK0; dkim=pass header.i=@linaro.org header.s=google header.b=PjFenrVh; spf=pass (google.com: domain of gcc-patches-return-509389-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509389-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id a41si2958893edc.180.2019.09.20.23.11.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2019 23:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-509389-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=sNnaBEK0; dkim=pass header.i=@linaro.org header.s=google header.b=PjFenrVh; spf=pass (google.com: domain of gcc-patches-return-509389-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-509389-patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; q=dns; s=default; b=y6789kmIY72HjF/ SNpOGs38Rhol9TtFBhC2cSD1ADR+ap/Lbj31HGdafj2LirH3EwNFC/ttN+zMnt3M Ki/l7h7MYvMv+X7kiPZUaTKidl+NJgP/KomsY35Oe/W670PtgBp/ZpvYeCiI/YQ5 G8nrG9QnqGkuh75Jap2+f8SNZjy8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; s=default; bh=pjFKOppAJoGG+tufvP+rO I6R/bU=; b=sNnaBEK009E+eFXyq0kW2i4uYVlonFvHFR0pN/r/PAvl0T0eCmyL9 CnQIq8SNRhfP6rsPZNQvqAqp9FargZMt7iXqkGeUkGbxQHu3EEzpKvHyAEMqfQFr LhyqW7I3U+jMFXkxoUU2UgOgd9/dViq3ZhD7FMRfydj7VFIvvozXC4= Received: (qmail 49768 invoked by alias); 21 Sep 2019 06:11:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 49760 invoked by uid 89); 21 Sep 2019 06:11:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-pl1-f180.google.com Received: from mail-pl1-f180.google.com (HELO mail-pl1-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Sep 2019 06:11:24 +0000 Received: by mail-pl1-f180.google.com with SMTP id d22so2903929pls.0 for ; Fri, 20 Sep 2019 23:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=kWFuWUhHq869DyFYytWD+rygHw/KXG1pOkiPgMUPqlA=; b=PjFenrVhw/zOH8SqH8Zf3aqh1HjWcH18RMiiIzPZBAE4nGE/vSqiQcWVPacKciJ04O NN75TWsbcSYYWoxxtci6ExyBQ1hbw+MJdm1myES1s1cql+u7XlLo6asV26OtV5aZD4AS s6wA+6Jl17LLgbgzvtgZDD/hltshREKQp2X4AQOUMN4heX0Vv7wgDy6K4NQeZLbe8Dnm jWk1hN91C0pAghMEaEw5esPCU3CfVQx5nwul0ytkH+ewXgke6J7CyLHzaPhjn/FYFTSa uJjVSUfCmHA36Nye2PTIXxaN9QVg4/3V4sR6CkzCS4sGHQP8tDMFyScNoH6e0Z0oViuw 3TJg== Return-Path: Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id u9sm6387133pjb.4.2019.09.20.23.11.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 23:11:22 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Subject: [PATCH, AArch64] PR target/91833 Date: Fri, 20 Sep 2019 23:11:21 -0700 Message-Id: <20190921061121.6441-1-richard.henderson@linaro.org> Tested on aarch64-linux (glibc) and aarch64-elf (installed newlib). The existing configure claims to be generated by 2.69, but there are changes wrt the autoconf distributed with Ubuntu 18. Nothing that seems untoward though. r~ * config/aarch64/lse-init.c: Include auto-target.h. Disable initialization if !HAVE_SYS_AUXV_H. * configure.ac (AC_CHECK_HEADERS): Add sys/auxv.h. * config.in, configure: Rebuild. --- libgcc/config/aarch64/lse-init.c | 4 +++- libgcc/config.in | 8 ++++++++ libgcc/configure | 26 +++++++++++++++++++------- libgcc/configure.ac | 2 +- 4 files changed, 31 insertions(+), 9 deletions(-) mode change 100644 => 100755 libgcc/configure -- 2.17.1 diff --git a/libgcc/config/aarch64/lse-init.c b/libgcc/config/aarch64/lse-init.c index 33d29147479..1a8f4c55213 100644 --- a/libgcc/config/aarch64/lse-init.c +++ b/libgcc/config/aarch64/lse-init.c @@ -23,12 +23,14 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ +#include "auto-target.h" + /* Define the symbol gating the LSE implementations. */ _Bool __aarch64_have_lse_atomics __attribute__((visibility("hidden"), nocommon)); /* Disable initialization of __aarch64_have_lse_atomics during bootstrap. */ -#ifndef inhibit_libc +#if !defined(inhibit_libc) && defined(HAVE_SYS_AUXV_H) # include /* Disable initialization if the system headers are too old. */ diff --git a/libgcc/config.in b/libgcc/config.in index d634af9d949..59a3d8daf52 100644 --- a/libgcc/config.in +++ b/libgcc/config.in @@ -43,6 +43,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_AUXV_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H @@ -82,6 +85,11 @@ /* Define to 1 if the target use emutls for thread-local storage. */ #undef USE_EMUTLS +/* Enable large inode numbers on Mac OS X 10.5. */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS diff --git a/libgcc/configure b/libgcc/configure old mode 100644 new mode 100755 index 29f647319b4..28c7394b3f9 --- a/libgcc/configure +++ b/libgcc/configure @@ -675,6 +675,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -765,6 +766,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1017,6 +1019,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1154,7 +1165,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1307,6 +1318,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -4173,7 +4185,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -4219,7 +4231,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -4243,7 +4255,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -4288,7 +4300,7 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -4312,7 +4324,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; @@ -4424,7 +4436,7 @@ as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val for ac_header in inttypes.h stdint.h stdlib.h ftw.h \ unistd.h sys/stat.h sys/types.h \ - string.h strings.h memory.h + string.h strings.h memory.h sys/auxv.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" diff --git a/libgcc/configure.ac b/libgcc/configure.ac index b1b90d294ff..f63c5e736e5 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -207,7 +207,7 @@ AC_SUBST(long_double_type_size) AC_CHECK_HEADERS(inttypes.h stdint.h stdlib.h ftw.h \ unistd.h sys/stat.h sys/types.h \ - string.h strings.h memory.h) + string.h strings.h memory.h sys/auxv.h) AC_HEADER_STDC # Check for decimal float support.