]> git.ipfire.org Git - thirdparty/gcc.git/commit
Revert 'OpenMP: Constructors and destructors for "declare target" static aggregates'
authorThomas Schwinge <tschwinge@baylibre.com>
Fri, 25 Apr 2025 14:39:39 +0000 (16:39 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 25 Apr 2025 16:08:46 +0000 (18:08 +0200)
commit14568217c74206c9c5d033050fba6fe2ab57bb05
tree74a273743655082abbe1f20659e137fbf74cb663
parentc9731fdbe4b323f563ee07b05a9a2ff153708aee
Revert 'OpenMP: Constructors and destructors for "declare target" static aggregates'

... in preparation of cherry-picking the upstream trunk changes.

This reverts commit 9127b4db9c58f48e0b47816d64e22c21404136b3.

gcc/
Revert:
2023-05-12  Julian Brown  <julian@codesourcery.com>

* omp-builtins.def (BUILT_IN_OMP_IS_INITIAL_DEVICE): New builtin.
* tree.cc (get_file_function_name): Support names for on-target
constructor/destructor functions.
gcc/cp/
Revert:
2023-05-12  Julian Brown  <julian@codesourcery.com>

* decl2.cc (tree-inline.h): Include.
(static_init_fini_fns): Bump to four entries. Update comment.
(start_objects, start_partial_init_fini_fn): Add 'omp_target'
parameter. Support "declare target" decls. Update forward declaration.
(emit_partial_init_fini_fn): Add 'host_fn' parameter. Return tree for
the created function. Support "declare target".
(OMP_SSDF_IDENTIFIER): New macro.
(partition_vars_for_init_fini): Support partitioning "declare target"
variables also.
(generate_ctor_or_dtor_function): Add 'omp_target' parameter. Support
"declare target" decls.
(c_parse_final_cleanups): Support constructors/destructors on OpenMP
offload targets.
libgomp/
Revert:
2023-05-12  Julian Brown  <julian@codesourcery.com>

* testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C: New
test.
* testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C: New
test.
* testsuite/libgomp.c++/static-aggr-constructor-destructor-3.C: New
test.
gcc/ChangeLog.omp
gcc/cp/ChangeLog.omp
gcc/cp/decl2.cc
gcc/omp-builtins.def
gcc/tree.cc
libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-1.C [deleted file]
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-2.C [deleted file]
libgomp/testsuite/libgomp.c++/static-aggr-constructor-destructor-3.C [deleted file]