Date: Thu, 20 Jan 2000 17:48:17 +0600 (NS) From: Max Khon <fjoe@iclub.nsu.ru> To: hackers@freebsd.org Subject: does -frepo work in gcc-devel or -current gcc? Message-ID: <Pine.BSF.4.21.0001201725400.17893-100000@iclub.nsu.ru>
next in thread | raw e-mail | index | archive | help
hi, there! This small program does not build with both -current gcc (gcc version 2.95.2 19991024 (release), I built collect2 for it manually) and gcc-devel (gcc version 2.96 20000110 (experimental)) --- cut here --- CXX=g++ -frepo LD=g++ foo: foo.o $(LD) -o $* $> clean: rm -f foo.o foo foo.rpo --- cut here --- --- cut here --- #include <string> #include <vector> main(void) { std::vector<std::string> v; std::string s = "foo"; v.push_back(s); return 0; } --- cut here --- When I tried to compile the same program on Solaris (gcc 2.95.1) and Linux (gcc 2.95.2) everything went ok but I noticed that collect2 recompiles foo.cc twice. On FreeBSD foo.cc gets recompiled only once and on the second pass collect2 bails out in tlink.c:do_tlink after scan_linker_output() call. I need -frepo because I'm porting quite large project to FreeBSD and -frepo is used there heavily. However porting it to Linux was not that hard. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0001201725400.17893-100000>