Re: GCC build errors

2021-12-12 Thread Jonathan Wakely via Gcc
On Mon, 13 Dec 2021, 01:16 Jamie Lee via Gcc, wrote: > Hello, > > I am attempting to build GCC 11.2.0 in a chroot environment, for use in > some projects. > Unfortunately, I am running into errors in the chroot environment, and I'm > not sure what's going on. > > When building GCC, I am getting t

Re: Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-12 Thread Andrew Pinski via Gcc
On Sun, Dec 12, 2021 at 9:04 PM Nayan Deshmukh via Gcc wrote: > #include > #include > #include > struct A { > int a; > uint64_t b; > int c = -1; > }; The question becomes is the above a standard layout class or not. I Noticed clang does not change the rules for layout between C++11 and C

Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-12 Thread Nayan Deshmukh via Gcc
Hello, When I tried to link two modules which were compiled with different c++ standards, I observed that the offset of some fields of struct were different when the same struct was accessed from both the modules. The issue is due to the use of tail padding to allocate member variables in some

GCC build errors

2021-12-12 Thread Jamie Lee via Gcc
Hello, I am attempting to build GCC 11.2.0 in a chroot environment, for use in some projects. Unfortunately, I am running into errors in the chroot environment, and I'm not sure what's going on. When building GCC, I am getting these errors: /usr/bin/ld: .libs/gets-chk.o: in function `__gets_ch

gcc-12-20211212 is now available

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