X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=xlwXbynpf4KV9ggDbgqG/hr26Z0Z7ICGfAnh0D1K6Kg=; b=LWUAOQe8P7kz1pHfL6XKEaCnE+ycfTPZu8T1soRTtBEM9hOWlJrUM1TIQJIjaIZaGM lN0xeQxm/2YUOS6MEFg97NymPSKAlBWTr9iJa3GQ7VFgLtGyUZ2hN8xa2qtKIy9otFO8 HmOnIf6Q7HwyHcr/RpZ/6zEnfvz0CtnLftA6T0XWY9nfeEM/3tssa5YgSDzmEcGZv3nQ nQoKpCtRw6kKJsMwX7oGZg9RswEDNJju9ukvrLBPOFiLnjMjqSBtsVVKXcKdrW1Z62Jv 0mWt40KugyllnlxF98LKN+bu5JFvil0OiQ4RIIRnzP7fsrLR4PLuU38ytV6XG2Uzxu9e 1+gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=xlwXbynpf4KV9ggDbgqG/hr26Z0Z7ICGfAnh0D1K6Kg=; b=NJRUeCUzSCbcUMZ7k03CrpWnjeCQUUrAnor6nYSbob0IBNcD55UnFwn0xpP3JZhI3F xwgXjlDcL4c2i+wAb5aECmprgrnIVhbc5izcjdvonFbfp7YOJu36CQisVDUMmg8K5mGa VajO3Z7DQEzE6/YFbkT5yAGmUfFIxJrk4GsODczv9Dr57uIaoxkBVLsQHk7Dxei1dbvK p/WIeBYS10NfgPH92JiRcxc3Hjy6PdzCdQSzk1/Q3DLlRKZzlAygF79Or7Zy9pWHsJQ8 yVpgvWV9NY6AMpPW+/QvdHwjlLVJelFgDHXnjWdRvGSN23Io54NSNfIo+DGqONPCe5Yu VDJA== X-Gm-Message-State: AOAM532dNiAhD7tBsV7hMKFDkAWkDEbrDrC96+d5uXUjLhY+pOjSoCCr KkPXzCHzJVNHOzirfWHWZLtVBxvBfzQ= X-Google-Smtp-Source: ABdhPJzaUBvuVi0dhxJbmCS3pFQB1COhAeTfzZd59w4DJJlUvc2urd/tNeKrDk1Usaog93zb3d3ISg== X-Received: by 2002:aa7:d3cf:: with SMTP id o15mr26797385edr.265.1636365229087; Mon, 08 Nov 2021 01:53:49 -0800 (PST) Message-ID: <9788a12e-c532-b273-a13d-ae12d2eed8a7@gmail.com> Date: Mon, 8 Nov 2021 10:53:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: DJGPP build of gcc-10.3.0 and make 4.3 incompatibility Content-Language: en-US To: djgpp AT delorie DOT com References: <4016e9cd-0be1-4758-8f29-db7770508ed6n AT googlegroups DOT com> From: "J.W. Jagersma (jwjagersma AT gmail DOT com) [via djgpp AT delorie DOT com]" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 2021-11-03 15:43, Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com] wrote: > Actually gcc-10.3.0 was built for DJGPP, just not uploaded (both RPMs and DJGPP packages). Uploading could be easy. I've been waiting for djcross-gcc-10.3.0.tar.bz2, please do upload :) > gcc-11 is a different story: > > - Ada library does not compile - alignment issues which are likely to cause problems also for other languages like (c or C++) when SSE or AVX is being used (and maybe even with earlier GCC versions) What sort of alignment issues? I already ran into alignment trouble with SSE (at run-time, not compile-time). To work around it, in the linker script I put SUBALIGN(0x10) on the .text and .bss sections. For .data this is not possible because it leaves gaps in the ctors/dtors list, so I ended up linking *(.data .data.* .gnu.linkonce.d*) in .text. A bit of a hack but .text is writable. I suppose the input section alignment could be changed in binutils somewhere though. Also in libc I had to put attribute __attribute__((force_align_arg_pointer)) on __crt1_startup() to align the stack for ctors & main(). Alternatively this alignment could be performed manually in crt0.S.