Open yanyh15 opened 1 year ago
This is likely the setting of file_info->unsetOutputInCodeGeneration () flag in https://github.com/passlab/rexompiler/blob/main/src/frontend/SageIII/sageInterface/sageBuilder.C#L4296 of function buildNondefiningFunctionDeclaration_T which is called by SageBuilder::buildFunctionRefExp that is used in omp_lowering.
The flag setting impact the return of the call UnparseLanguageIndependentConstructs::statementFromFile that is used by unparsing to decide whether to unparse an statement to a file or not.
To reproduce this bug, using the following input file and command:
Input code: hello_omp_parallel.f90:
Command to compile:
The command produces two files:
rose_hello_omp_parallel.f90
andrex_lib_hello_omp_parallel.f90
:For
rose_hello_omp_parallel.f90
(needs to be fixed as well):rex_lib_hello_omp_parallel.f90
is empty