This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] AArch64 AAPCS: Ignore static members


This is OK with the tiny nit below fixed.

On 01/22/2019 10:50 AM, Alan Hayward wrote:

> diff --git a/gdb/testsuite/gdb.base/infcall-nested-structs.c b/gdb/testsuite/gdb.base/infcall-nested-structs.c
> index 5c25956c50..56257e8798 100644
> --- a/gdb/testsuite/gdb.base/infcall-nested-structs.c
> +++ b/gdb/testsuite/gdb.base/infcall-nested-structs.c
> @@ -21,6 +21,10 @@
>     scalar fields, the fields can be inside nested structures, and there can
>     be empty structures around too.
>  
> +   When compiled for C++ this file also tests structures containing static
> +   members (which live in global memory).  In addition, empty structures in C++
> +   have a size of 1 (compared to 0 in C), which can effect structure padding.

Say "in GNU C" instead of "in C".  Empty structures in C is a GNU extension:
 https://gcc.gnu.org/onlinedocs/gcc/Empty-Structures.html

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]