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 ?

[935 byte] By [DarkStara] at [2007-11-27 1:21:47]
# 1
This looks like a compiler bug, but it's hard to diagnose without more information. Is there some way we could get the source files?
igba at 2007-7-11 23:59:52 > top of Java-index,Development Tools,Solaris and Linux Development Tools...