InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

InterProcedural Analysis broken (CodeWarrior for MPC55XX v 2.4)?

2,290件の閲覧回数
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,261件の閲覧回数
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,261件の閲覧回数
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 件の賞賛
返信