aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-format-json.cc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-09-10 06:53:31 -0700
committerNathan Sidwell <nathan@acm.org>2020-09-10 09:37:37 -0700
commitf9189e10889379ce9582592926db342109f57324 (patch)
tree4f7af5a880796e212dedee96f7b2c4ba6e1831ff /gcc/diagnostic-format-json.cc
parent1c68cf348a28a6bea253d9911e3b94eaeba64acd (diff)
downloadgcc-f9189e10889379ce9582592926db342109f57324.zip
gcc-f9189e10889379ce9582592926db342109f57324.tar.gz
gcc-f9189e10889379ce9582592926db342109f57324.tar.bz2
c++: TINFO_VAR_DECLARED_CONSTINIT -> DECL_DECLARED_CONSTINIT_P
We need to record whether template function-scopestatic decls are constinit. That's currently held on the var's TEMPLATE_INFO data. But I want to get rid of such decl's template header as they're not really templates, and they're never instantiated separately from their containing function's definition. (Just like auto vars, which don't get them for instance). This patch moves the flag into a spare decl_lang_flag. gcc/cp/ * cp-tree.h (TINFO_VAR_DECLARED_CONSTINIT): Replace with ... (DECL_DECLARED_CONSTINIT_P): ... this. * decl.c (start_decl): No need to retrofit_lang_decl for constinit flag. (cp_finish_decl): Use DECL_DECLARED_CONSTINIT_P. * pt.c (tsubst_decl): No need to handle constinit flag propagation. (tsubst_expr): Or here.
Diffstat (limited to 'gcc/diagnostic-format-json.cc')
0 files changed, 0 insertions, 0 deletions