Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit cd1bf87

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
[FMI] Do not optimize read_input_fmu
The function is huge and takes a long time for clang/GCC to deal with.
1 parent 5122abb commit cd1bf87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Compiler/Template/CodegenFMU.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,6 +2936,7 @@ case SIMCODE(modelInfo = MODELINFO(functions = functions, varInfo = vi as VARINF
29362936
<<
29372937
#include <simulation_data.h>
29382938

2939+
__attribute__((optimize(0),optnone))<%/* This function is very simple and doesn't need to be optimized. GCC/clang spend way too much time looking at it. */%>
29392940
void <%symbolName(modelNamePrefix(simCode),"read_input_fmu")%>(MODEL_DATA* modelData, SIMULATION_INFO* simulationInfo)
29402941
{
29412942
simulationInfo->startTime = <%s.startTime%>;

0 commit comments

Comments
 (0)