From patchwork Tue Apr 9 08:01:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 88225 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D230C3846400 for ; Tue, 9 Apr 2024 08:02:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 96684385841E for ; Tue, 9 Apr 2024 08:01:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 96684385841E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 96684385841E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712649704; cv=none; b=vIob+BX2BB7qQ2XkAMwivjvY8tw42OsznIzG0qgy0r8xjIbCqUrkDwOiWDQRdxEf1jhCcneTkS2hm8mz0bUCvpgogDPfrfXtIuePJZYqrXE6MNHGmxMMojd5rl5eWuKfV43CP0eJKU3lF+EyQ1+I6FCfN4f05OUKcsHgklnMgPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712649704; c=relaxed/simple; bh=vGtDCEsJO1V/dPhWhVLTkZ5vaWSgBWVqADCqmeY0+3M=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=oQVcicDEGSTUqfgMSNX9cenNRKHeXxg+BeplgksaeEvgjSKfI1521KmV9SyhjmlO74p2G6dvzAWbUHOctdOH3+XJpTIx/ago281WItT/Z2Kmk3o/W4cT4O0Ui44GuZ62JyHF3REAYEount1NizPuRV7EFaGK1rukL6LTzrOKKkA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712649692; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=HSnlD9TkXopaZyjzGZM2Hgm2G5z4cq9zDspOa01YQAM=; b=NGGMr9sXfqQvG9hvDUC2DntGCx2DrIMN1Dmt0VnEupKNULKvQAhnY9wFM8b3GFc6qxW1v2 jywcNVI0u6LwXbfKlBhA6z/SjEhj8YcGPN/J/lp8Zs6qDBicOgJJlLsZirix9OAtZGEXQo xRINoWiIJ3y3G/TctOVZ4AqNnJhwhso= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-265-kRqJS7yON_iIwioZ7vLh9Q-1; Tue, 09 Apr 2024 04:01:30 -0400 X-MC-Unique: kRqJS7yON_iIwioZ7vLh9Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5CC3F3C000A2 for ; Tue, 9 Apr 2024 08:01:30 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2274E202B162 for ; Tue, 9 Apr 2024 08:01:30 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 43981Oh71300240 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 9 Apr 2024 10:01:24 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 43981OCY1300239 for gcc-patches@gcc.gnu.org; Tue, 9 Apr 2024 10:01:24 +0200 Date: Tue, 9 Apr 2024 10:01:24 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] libquadmath: Provide __BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN definitions Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Hi! My earlier libquadmath change apparently broke mingw32 build, while on Linux is included and defines these, on Mingw apparently that isn't the case, while soft-fp wants a guarantee that sfp-machine.h defines these. Tested on x86_64-linux, committed to trunk. 2024-04-09 Jakub Jelinek * sfp-machine.h (__LITTLE_ENDIAN, __BIG_ENDIAN, __BYTE_ORDER): Define if __BYTE_ORDER isn't defined. Jakub --- libquadmath/sfp-machine.h.jj 2024-04-09 08:16:53.705743788 +0200 +++ libquadmath/sfp-machine.h 2024-04-09 09:36:39.059229830 +0200 @@ -18,6 +18,11 @@ #define _FP_NANSIGN_Q 1 #define _FP_KEEPNANFRACP 1 #define _FP_TININESS_AFTER_ROUNDING 0 +#ifndef __BYTE_ORDER +#define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ +#define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ +#define __BYTE_ORDER __BYTE_ORDER__ +#endif #define _FP_DECL_EX \ unsigned int fp_roundmode __attribute__ ((unused)) = FP_RND_NEAREST; #define FP_ROUNDMODE fp_roundmode