Skip to content

Commit

Permalink
[FMI] Do not optimize read_input_fmu
Browse files Browse the repository at this point in the history
The function is huge and takes a long time for clang/GCC to deal with.
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Sep 28, 2017
1 parent 5122abb commit cd1bf87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/Template/CodegenFMU.tpl
Expand Up @@ -2936,6 +2936,7 @@ case SIMCODE(modelInfo = MODELINFO(functions = functions, varInfo = vi as VARINF
<<
#include <simulation_data.h>

__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. */%>
void <%symbolName(modelNamePrefix(simCode),"read_input_fmu")%>(MODEL_DATA* modelData, SIMULATION_INFO* simulationInfo)
{
simulationInfo->startTime = <%s.startTime%>;
Expand Down

0 comments on commit cd1bf87

Please sign in to comment.