From owner-freebsd-hackers Thu Jan 20 3:49:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 11C04152CE for ; Thu, 20 Jan 2000 03:48:49 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id RAA20638 for ; Thu, 20 Jan 2000 17:48:18 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Date: Thu, 20 Jan 2000 17:48:17 +0600 (NS) From: Max Khon To: hackers@freebsd.org Subject: does -frepo work in gcc-devel or -current gcc? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 #include main(void) { std::vector 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