aboutsummaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.cc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2023-04-12 11:47:01 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 12:47:18 +0200
commit5f9e88211c6ad939cfec017a66e663d686c9c3ab (patch)
treeac7279c93aab0ea3781cda106c669623d3a8fe42 /gcc/modulo-sched.cc
parented03af4ef3b9ad0bd3b7c5c678c02253e5cb9e0f (diff)
downloadgcc-5f9e88211c6ad939cfec017a66e663d686c9c3ab.zip
gcc-5f9e88211c6ad939cfec017a66e663d686c9c3ab.tar.gz
gcc-5f9e88211c6ad939cfec017a66e663d686c9c3ab.tar.bz2
Rust: Make 'tree'-level 'MAIN_NAME_P' work
'gcc/tree.h': #define main_identifier_node global_trees[TI_MAIN_IDENTIFIER] #define MAIN_NAME_P(NODE) \ (IDENTIFIER_NODE_CHECK (NODE) == main_identifier_node) ..., which is not initialized by default, but has to be set up by every front end individually. 'MAIN_NAME_P' enables certain code optimizations, but is especially also relevant for back ends that emit additional program entry setup code for 'main'. gcc/rust/ * backend/rust-compile-base.cc (HIRCompileBase::compile_function): For 'main', initialize 'main_identifier_node'.
Diffstat (limited to 'gcc/modulo-sched.cc')
0 files changed, 0 insertions, 0 deletions