This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[BUG] -frepo causes collect to fail



I'm including a small test program that shows that collect goes into
infinite loop mode when compiling something that uses -frepo. 

Please help

The output is

> gcc --version
egcs-2.91.66
> uname -a
SunOS yoho 5.5.1 Generic_103640-12 sun4u sparc SUNW,Ultra-1
> make
g++ -frepo -c a.cc
g++ -frepo -c b.cc
g++ -frepo -c c.cc
g++ -frepo -o r a.o b.o c.o
collect: recompiling b.cc
collect: recompiling c.cc
collect: recompiling b.cc
collect: recompiling c.cc
collect: recompiling b.cc
^Cmake: *** [all] Interrupt
> b.o: In function `A<int>::f(int)':
b.o(.text+0x0): multiple definition of `A<int>::f(int)'
a.o(.text+0x0): first defined here
b.o: In function `A<int>::A(void)':
b.o(.text+0x44): multiple definition of `A<int>::A(void)'
a.o(.text+0x44): first defined here
b.o: In function `A<float>::A(void)':
b.o(.text+0xa8): multiple definition of `A<float>::A(void)'
a.o(.text+0x78): first defined here
b.o: In function `A<float>::f(float)':
b.o(.text+0xdc): multiple definition of `A<float>::f(float)'
a.o(.text+0xac): first defined here
c.o: In function `A<int>::f(int)':
c.o(.text+0x0): multiple definition of `A<int>::f(int)'
a.o(.text+0x0): first defined here
c.o: In function `A<int>::A(void)':
c.o(.text+0x44): multiple definition of `A<int>::A(void)'
 <SNIP>  this goes on and on and on and ...


The program is attached below

Thanks

Phil

repo.tar.gz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]