From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2153) id 7069B3858CDA; Tue, 9 Apr 2024 07:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7069B3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712648533; bh=4BUmfgCiyoEBJE0+J3/iUc45JL5Oi4xCQkswNSy8tKk=; h=From:To:Subject:Date:From; b=c4lbQOfZPLEardYz9yQs2AVE+4ZidiGTS+dfe6c8aUlqGWDbOsCPE4hrynxbBxzHK MgTHQV/jF3dISHN5oKrI+43utbsE7HWckOG6+bL+ekTrcBmPFAKHVbQTRA077XywOO 4Mxt3QJeA409FAvf9p1tc6PiQ+z2TuGonzh1EjpU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jakub Jelinek To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9862] libquadmath: Provide __BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN definitions X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/master X-Git-Oldrev: cfed80b9e4f562c99679739548df9369117dd791 X-Git-Newrev: 21c9fd9688d9de9562b3cb491e4ab50ce09e663a Message-Id: <20240409074213.7069B3858CDA@sourceware.org> Date: Tue, 9 Apr 2024 07:42:13 +0000 (GMT) List-Id: https://gcc.gnu.org/g:21c9fd9688d9de9562b3cb491e4ab50ce09e663a commit r14-9862-g21c9fd9688d9de9562b3cb491e4ab50ce09e663a Author: Jakub Jelinek Date: Tue Apr 9 09:40:45 2024 +0200 libquadmath: Provide __BYTE_ORDER, __LITTLE_ENDIAN and __BIG_ENDIAN definitions 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. 2024-04-09 Jakub Jelinek * sfp-machine.h (__LITTLE_ENDIAN, __BIG_ENDIAN, __BYTE_ORDER): Define if __BYTE_ORDER isn't defined. Diff: --- libquadmath/sfp-machine.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libquadmath/sfp-machine.h b/libquadmath/sfp-machine.h index e37d5b3c656..906a09e7139 100644 --- a/libquadmath/sfp-machine.h +++ b/libquadmath/sfp-machine.h @@ -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