Hello
The compiler may invoke some so called runtime library functions to implement some functionality,
The run time library file that needs to be linked to the application can be found in
{Install}\MCU\Help\PDF\MCU_ColdFire_Compiler.pdf.
Look in chapter 18 Coldfire Runtime Libraries section EWL for C and C++ Development for more information o which
library to use in your configuration,
The function __clear() is used to initialized a block of memory with 0. It is used when you have a local variable of type
array or structure that is initialized with 0 inside of a function.
I did a quick test on a small sample project created using the wizard and I am able to link a project with a local
variable of type struct initialized to 0.
The compiler uses the function __clear from run time library without any issue.
There seem to be an issue with your project.
Best way to progress on this one might be to submit a service request for that and to provide the whole project to our support engineers.
Click here to submit a service request.
Make sure to attach a reproducible project and installed product information to the service request.
CrasyCat