From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 8E7E63857C43 for ; Tue, 20 Oct 2020 08:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8E7E63857C43 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=none smtp.mailfrom=ro@cebitec.uni-bielefeld.de Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 0EACCA8A8A; Tue, 20 Oct 2020 10:26:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at CeBiTec.Uni-Bielefeld.DE Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TP7QW_e94ZI2; Tue, 20 Oct 2020 10:26:35 +0200 (CEST) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4fddb2f4.dip0.t-ipconnect.de [79.221.178.244]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 3E9D3A85F4; Tue, 20 Oct 2020 10:26:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=CeBiTec.Uni-Bielefeld.DE; s=20200306; t=1603182395; bh=W+YWXxMXP2gTASWRHntqAfvIuYTIzCDIO3YStpW5wn0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cVUrSdZRVjsckG0bWAqGoZLsQH5jHCdL2QrgoTznHPGZOK2EYVLwL5LwWnbCxXIzP cNxF49MJ+bFRa8l9zNouHaMpHQzh8ph1gJndBFjGRFNT4tDPGJrtLTon5cxGjHWaXl D0IB0vvlMCh95dokvdbOJ4vTWgpDl7m/gRyvRhyGw/2S3OxOlhvFjvSW797QrLXaAH 3qqRSxrgsx72f1ib556u2sWUzOoNuED9FC7vwg90tuJlKWEe0yhVCn6i6XTH93fByg ZALZpKbeLRIfCKQyoJKucSbw0Yx9GQ1orPLCcuCETS5uPWTLd1IG2Xq9TnWZ5F3Xbw h04MGYxxZUr5g== From: Rainer Orth To: Alexandre Oliva Cc: Andreas Schwab , gcc-patches@gcc.gnu.org Subject: Re: [Ada,FYI] revamp ada.numerics.aux References: <877drm4kfu.fsf@igel.home> Date: Tue, 20 Oct 2020 10:26:33 +0200 In-Reply-To: (Alexandre Oliva's message of "Mon, 19 Oct 2020 08:52:18 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3796.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 08:26:39 -0000 --=-=-= Content-Type: text/plain Hi Alexandre, > On Oct 19, 2020, Andreas Schwab wrote: > >> -nostdinc a-nallfl.ads -o a-nallfl.o >> a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on return value >> a-nallfl.ads:48:13: warning: intrinsic binding type mismatch on argument 1 >> a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin >> it binds > > Thanks for the report. Ada's Standard.Long_Long_Float is mapped to C > double rather than long double on this target. > > Here's a workaround, for aarch64-* and ppc*-linux-gnu, where I've > observed the mismatch so far. your patch similarly broke sparc*-sun-solaris* bootstrap. The attached snippet on top of this workaround fixes that. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=M.patch diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -1466,6 +1468,7 @@ endif ifeq ($(strip $(filter-out sparc% sun solaris%,$(target_cpu) $(target_vendor) $(target_os))),) LIBGNAT_TARGET_PAIRS = \ a-intnam.ads