InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

1,421 Views
JChMathae
Contributor II

Hello,

 

I am using version 2.4 of CodeWarrior for MPC55XX, and activating IPA for whole program does not work.

My very simple project links correctly with IPA set to "Off" or "File", but with "Program" linking fails with:

        Link Error   : undefined: '__init_hardware'

and other asm functions defined in __ppc_eabi_init.c

Labels (1)
0 Kudos
2 Replies

392 Views
ronco
NXP Employee
NXP Employee

Hello Jean-Christophe,

 

You're right, I've confirmed this problem in the 2.4 CodeWarrior 55xx tools and have logged it as MTWX35136 with our compiler team.

 

The good news is that the previous release, 2.3 CodeWarrior 55xx, does not exhibit this problem so that edition of CodeWarrior may provide you a way to continue working in the meantime.

0 Kudos

392 Views
ronco
NXP Employee
NXP Employee

Some additional information.  We have a workaround for the 2.4 CodeWarrior 55xx tools: use "#pragma ipa_not_complete on" or mark the dead-stripped functions as force_export by using "__attribute__((force_export))", e.g.

 

   __attribute__((force_export)) void __init_hardware(void);

 

The release notes (\Program Files\Freescale\CodeWarrior for MPC55xx V2.4\Release_Notes\Compiler_Notes\CW C-C++ Notes 4.x.txt), the "Complete Program IPA" Mode has more information.

0 Kudos