Opened 9 years ago

Last modified 7 years ago

#3837 closed defect

GCC 4.x - simulation issues — at Version 4

Reported by: Adrian Pop Owned by: Martin Sjölund
Priority: high Milestone:
Component: Build Environment Version:
Keywords: Cc:

Description (last modified by Adrian Pop)

I have a model (unfortunately non-public) that simulates differently (correctly) with gcc 4.8 but fails with division by zero with: gcc 4.9, gcc 5.x and clang.

Change History (4)

comment:1 by Adrian Pop, 9 years ago

I tried adding -fno-ipa-pure-const that we have for the compiler but it didn't help as anyway the simulation code is compiled with -O0.

comment:2 by Adrian Pop, 9 years ago

This is the OneWind model that we have in the MODRIO project.

comment:3 by Adrian Pop, 9 years ago

clang (v 3.8.0) also has the same issues as gcc 5.3.1 but with gcc 4.8 it works.
update: gcc 4.9 does not work either!

Last edited 9 years ago by Adrian Pop (previous) (diff)

comment:4 by Adrian Pop, 9 years ago

Description: modified (diff)
Summary: GCC 5.x vs GCC 4.x - simulation issuesGCC 4.x - simulation issues
Note: See TracTickets for help on using tickets.