> On Jan 20, 2025, at 16:19, Joseph Myers <josmy...@redhat.com> wrote: > > On Sat, 18 Jan 2025, Kees Cook wrote: > >> Gaining access to global variables is another gap Linux has -- e.g. we >> have arrays that are sized by the global number-of-cpus variable. :) > > Note that it's already defined that counted_by takes an identifier for a > structure member (i.e. not an expression, not following the name lookup > rules used in expressions). So some different syntax that only takes an > expression and not an identifier interpreted as a structure member would > be needed for anything that allows use of a global variable. If we need to add such syntax for counted_by (I,e, an expresson), can we still keep the same attribute Name, all we need a new attribute name for the new syntax? Qing > > -- > Joseph S. Myers > josmy...@redhat.com >
- [GCC16 stage 1][RFC][PATCH 2/3] Convert a pointer reference ... Qing Zhao
- [GCC16 stage 1][RFC][C][PATCH 3/3] Use the counted_by attrib... Qing Zhao
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "counted_by&q... Bill Wendling
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "counted_by&q... Martin Uecker
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "counted... Qing Zhao
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "cou... Bill Wendling
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "... Kees Cook
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend &... Joseph Myers
- Re: [GCC16 stage 1][RFC][PATCH 0/3]ext... Qing Zhao
- Re: [GCC16 stage 1][RFC][PATCH 0/3... Joseph Myers
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "cou... Joseph Myers
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "... Bill Wendling
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend &... Martin Uecker
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend "... Qing Zhao
- Re: [GCC16 stage 1][RFC][PATCH 0/3]extend &... Joseph Myers
- Re: [GCC16 stage 1][RFC][PATCH 0/3]ext... Martin Uecker
- Re: [GCC16 stage 1][RFC][PATCH 0/3... Joseph Myers
- Re: [GCC16 stage 1][RFC][PATCH 0/3... Martin Uecker
- Re: [GCC16 stage 1][RFC][PATCH 0/3... Martin Uecker