aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/docs/cp
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-05-28 23:20:29 +0200
committerThomas Schwinge <tschwinge@baylibre.com>2024-05-31 15:02:01 +0200
commitd9c90c82d900fdae95df4499bf5f0a4ecb903b53 (patch)
treed1e4dabb306a38108629d53021fd6b41e5934f93 /gcc/jit/docs/cp
parent65dbe0ab7cdaf2aa84b09a74e594f0faacf1945c (diff)
downloadgcc-d9c90c82d900fdae95df4499bf5f0a4ecb903b53.zip
gcc-d9c90c82d900fdae95df4499bf5f0a4ecb903b53.tar.gz
gcc-d9c90c82d900fdae95df4499bf5f0a4ecb903b53.tar.bz2
nvptx target: Global constructor, destructor support, via nvptx-tools 'ld'
The function attributes 'constructor', 'destructor', and 'init_priority' now work, as do the C++ features making use of this. Test cases with effective target 'global_constructor' and 'init_priority' now generally work, and 'check-gcc-c++' test results greatly improve; no more "sorry, unimplemented: global constructors not supported on this target". For proper execution test results, this depends on <https://github.com/SourceryTools/nvptx-tools/commit/96f8fc59a757767b9e98157d95c21e9fef22a93b> "ld: Global constructor/destructor support". gcc/ * config/nvptx/nvptx.h: Configure global constructor, destructor support. gcc/testsuite/ * gcc.dg/no_profile_instrument_function-attr-1.c: GCC/nvptx is 'NO_DOT_IN_LABEL' but not 'NO_DOLLAR_IN_LABEL', so '$' may apper in identifiers. * lib/target-supports.exp (check_effective_target_global_constructor): Enable for nvptx. libgcc/ * config/nvptx/crt0.c (__gbl_ctors): New weak function. (__main): Invoke it. * config/nvptx/gbl-ctors.c: New. * config/nvptx/t-nvptx: Configure global constructor, destructor support.
Diffstat (limited to 'gcc/jit/docs/cp')
0 files changed, 0 insertions, 0 deletions