From owner-cvs-all Sun Apr 7 22: 0:27 2002 Delivered-To: cvs-all@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 77D2037B404; Sun, 7 Apr 2002 22:00:22 -0700 (PDT) Received: from naos (naos [128.130.111.28]) by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g3850GW21055; Mon, 8 Apr 2002 07:00:17 +0200 (MET DST) Date: Mon, 8 Apr 2002 07:00:16 +0200 (CEST) From: Gerald Pfeifer To: "M. Warner Losh" Cc: peter@freebsd.org, , Subject: Re: cvs commit: src/gnu/usr.bin/gperf Makefile src/gnu/usr.bin/groff/src/devices/grodvi Makefile src/gnu/usr.bin/groff/src/devices/grohtml Makefile src/gnu/usr.bin/groff/src/devices/grolbp Makefile sr In-Reply-To: <20020407.172929.32777631.imp@village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 7 Apr 2002, M. Warner Losh wrote: > Peter Wemm writes: >: Add -lstdc++ to the link args for these C++ tools so that they can be >: compiled with gcc-3.1. Somebody thought it was a good idea to move >: the implementation of new and delete from libgcc to libstdc++. This >: change doesn't harm the current compiler in the tree. > Is this a band-aid until the compiler can be fixed, or a real solution > long term? If I'm right, the problem is that the gcc driver is used to compile these C++ sources. One of the differences between gcc and g++ is that the latter automagically links in libstdc++ while the former does not. This has been the case since (at least GCC 2.95), but we did get away with it because, as Peter observed, new/delete have been in libgcc which got linked in anyway. GCC 3.0 and 3.1, however, have new/delete in libstdc++; the proper fix long-term would be using the g++ driver instead of the gcc driver for these C++ sources. Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message