diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2022-04-14 10:00:25 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2022-04-14 10:00:25 -0700 |
commit | 613a6fca75156aadc2e79d78a23e547d39762c1e (patch) | |
tree | 7746f8b711c23e0682e84f9f59c47fa67587c979 /gcc/ctfc.h | |
parent | 3fc22eedb033cbff1bf5a70c6a032d3c5ce2d867 (diff) | |
download | gcc-613a6fca75156aadc2e79d78a23e547d39762c1e.zip gcc-613a6fca75156aadc2e79d78a23e547d39762c1e.tar.gz gcc-613a6fca75156aadc2e79d78a23e547d39762c1e.tar.bz2 |
ctfc: get rid of the static variable in ctf_list_add_ctf_vars ()
2022-04-14 Indu Bhagat <indu.bhagat@oracle.com>
gcc/ChangeLog:
* ctfc.h (struct ctf_container): Introduce a new member.
* ctfout.cc (ctf_list_add_ctf_vars): Use it instead of static
variable.
Diffstat (limited to 'gcc/ctfc.h')
-rw-r--r-- | gcc/ctfc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -301,6 +301,8 @@ typedef struct GTY (()) ctf_container /* List of pre-processed CTF Variables. CTF requires that the variables appear in the sorted order of their names. */ ctf_dvdef_t ** GTY ((length ("0"))) ctfc_vars_list; + /* Count of pre-processed CTF Variables in the list. */ + uint64_t ctfc_vars_list_count; /* List of pre-processed CTF types. CTF requires that a shared type must appear before the type that uses it. For the compiler, this means types are emitted in sorted order of their type IDs. */ |