Re: How to compress the size of a field in a structure?

2024-01-13 Thread Hanke Zhang via Gcc
Hi lain, Thanks for your thoughtful comments and concerns. The primary goal of compressing the structure fields is to achieve memory efficiency. I understand your points regarding potential issues with modifying the size and types of the structure. I guess rewriting all the corresponding statement

gcc-13-20240113 is now available

2024-01-13 Thread GCC Administrator via Gcc
Snapshot gcc-13-20240113 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20240113/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 13 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: [[gcc_struct]] potential clang compatibility concerns

2024-01-13 Thread Dan Klishch via Gcc
On Sat, Dec 2, 2023 at 4:50 PM Dan Klishch wrote: > > Hi, > > In the discussion of LLVM's PR adding `[[gnu::gcc_struct]]` support to Clang > (https://github.com/llvm/llvm-project/pull/71148), maintainers asked > me to make sure that whatever > is done there, makes sense for GCC too. > > To summari

New TLS usage in libgcc_s.so.1, compatibility impact

2024-01-13 Thread Florian Weimer via Gcc
This commit commit 8abddb187b33480d8827f44ec655f45734a1749d Author: Andrew Burgess Date: Sat Aug 5 14:31:06 2023 +0200 libgcc: support heap-based trampolines Add support for heap-based trampolines on x86_64-linux, aarch64-linux, and x86_64-darwin. Implement the __builtin_neste

Re: How to compress the size of a field in a structure?

2024-01-13 Thread Iain Sandoe via Gcc
> On 13 Jan 2024, at 07:45, Hanke Zhang via Gcc wrote: > > Hi, I'm attempting to compress the size of a field in a structure for > memory-friendly purposes. I created an IPA pass to achieve this, but I > ran into some issues as follows: > > // original > struct Foo { > long a1; > int a2; >