InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

2,386 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,357 次查看
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 项奖励
回复

1,357 次查看
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 项奖励
回复