public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3631] testsuite: Fix analyzer_cpython_plugin.c declarations, PR testsuite/111264
@ 2023-09-01 19:01 Hans-Peter Nilsson
0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2023-09-01 19:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d3dd69706af4c086cb3385ff1f321887b91f49fb
commit r14-3631-gd3dd69706af4c086cb3385ff1f321887b91f49fb
Author: Hans-Peter Nilsson <hp@axis.com>
Date: Fri Sep 1 04:36:03 2023 +0200
testsuite: Fix analyzer_cpython_plugin.c declarations, PR testsuite/111264
Also, add missing newline at end of file.
PR testsuite/111264
* gcc.dg/plugin/analyzer_cpython_plugin.c: Make declarations
C++11-compatible.
Diff:
---
gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c
index 7af520436549..bf1982e79c37 100644
--- a/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c
+++ b/gcc/testsuite/gcc.dg/plugin/analyzer_cpython_plugin.c
@@ -477,8 +477,8 @@ pyobj_refcnt_checker (const region_model *model,
if (!ctxt)
return;
- auto region_to_refcnt = hash_map<const region *, int> ();
- auto seen_regions = hash_set<const region *> ();
+ hash_map<const region *, int> region_to_refcnt;
+ hash_set<const region *> seen_regions;
count_pyobj_references (model, region_to_refcnt, retval, seen_regions);
check_refcnts (model, old_model, retval, ctxt, region_to_refcnt);
@@ -561,7 +561,7 @@ public:
if (!ctxt)
return;
region_model *model = cd.get_model ();
- auto region_to_refcnt = hash_map<const region *, int> ();
+ hash_map<const region *, int> region_to_refcnt;
count_all_references(model, region_to_refcnt);
dump_refcnt_info(region_to_refcnt, model, ctxt);
}
@@ -1330,4 +1330,4 @@ plugin_init (struct plugin_name_args *plugin_info,
sorry_no_analyzer ();
#endif
return 0;
-}
\ No newline at end of file
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-01 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-01 19:01 [gcc r14-3631] testsuite: Fix analyzer_cpython_plugin.c declarations, PR testsuite/111264 Hans-Peter Nilsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).