[arm-gnu] removing fipa-cp-clone option from arm gnu compiler 4.5.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] removing fipa-cp-clone option from arm gnu compiler 4.5.1



Hi,

GNU compiler 4.5.1 uses -fipa-cp-clone by default on -O3. But adding compile flag -fno-ipa-cp-clone  to remove this optimization is not helping.  Generated assembly files still have function foo as  foo.clone.0 or foo.clone.1 etc in .S files.
How can we avoid compiler adding clone.* to the function names in .S files?

Arm gnu compiler version:
arm-none-eabi-gcc (Sourcery G++ Lite 2010.09-51) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.

From gcc 4.5.1 manual:
-fipa-cp-clone
Perform function cloning to make interprocedural constant propagation
stronger. When enabled, interprocedural constant propagation will perform
function cloning when externally visible function can be called with constant
arguments. Because this optimization can create multiple copies of functions, it
may significantly increase code size (see '--param ipcp-unit-growth=value').
This flag is enabled by default at '-O3'.

Regards,
Gireesh.