Optimization produces duplicate symbols
Hi,
Studio11 f95 8.2 Patch 121020-03 2006/07/26
produces more and more multiple symbol definitions when choosing higher
and higher optimizations:
ld: fatal: symbol `__ABSCO_BRANCH$LB_NEW$1' is multiply-defined:
(file objects/SunOS_4.1.4/modules/nmrtabco_m.o type=OBJT; file objects/SunOS_4.1.4/modules/abco_m.o type=OBJT);
It seems the module name is stripped from all those duplicates, Absco_Branch
is a subroutine and lb_new the variable, and both routines are variants
with the same name residing in different modules. It compiles without flaws up
to -O3, -O4/5 produce duplicates.
Is this an effect of inlining, which then accidently strips the module prefix from
the global symbol ? If so, we would consider this to be a bug.
Is there a workaround (except lowering optimization) like hand selected global
prefixing with a compiler option ?

