From owner-freebsd-stable Tue Jul 11 16:48:41 2000 Delivered-To: freebsd-stable@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id B776E37B98B; Tue, 11 Jul 2000 16:48:36 -0700 (PDT) (envelope-from jedgar@fxp.org) Received: from earth.causticlabs.com (oca-u1-36.hitter.net [207.192.78.36]) by pawn.primelocation.net (Postfix) with ESMTP id 0DBCB9B1C; Tue, 11 Jul 2000 19:48:34 -0400 (EDT) Date: Tue, 11 Jul 2000 19:48:33 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: jedgar@earth.causticlabs.com To: freebsd-stable@FreeBSD.org Cc: obrien@FreeBSD.org Subject: More optimization issues? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG While porting another program, I found the following: Using the default CXXFLAGS (-O -pipe): $ g++ -O -pipe ud2cd.cc -o ud2cd /tmp/ccOo2151.o(.gnu.linkonce.d._vt$Q37context20do_hunks__7context.2_11_prep_spa ce+0xc): undefined reference to `fn__Q37context20do_hunks__7context.2_11_prep_sp aceRC6string.671' /tmp/ccOo2151.o(.gnu.linkonce.d._vt$Q57context20do_hunks__7context.4_17_two_piec e_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.5_10_prep_p lus+0xc): undefined reference to `fn__Q57context20do_hunks__7context.4_17_two_pi ece_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.5_10_prep _plusRC6string.643' /tmp/ccOo2151.o(.gnu.linkonce.d._vt$Q57context20do_hunks__7context.2_17_two_piec e_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.3_11_prep_m inus+0xc): undefined reference to `fn__Q57context20do_hunks__7context.2_17_two_p iece_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.3_11_pre p_minusRC6string.633' /tmp/ccOo2151.o(.gnu.linkonce.d._vt$Q57context20do_hunks__7context.0_17_two_piec e_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.1_12_prep_e xclam+0xc): undefined reference to `fn__Q57context20do_hunks__7context.0_17_two_ piece_buffer60done__Q37context20do_hunks__7context.1_17_two_piece_buffer.1_12_pr ep_exclamRC6string.614' $ Without CXXFLAGS: $ g++ ud2cd.cc -o ud2cd $ The sources are at: ftp://ftp.ilog.fr/pub/Users/haible/gnu/diffconvert-1.2.tar.gz Is a source problem or another optimization issue? FreeBSD earth.causticlabs.com 4.0-STABLE FreeBSD 4.0-STABLE #3: Fri Jul 7 21:12:17 EDT 2000 jedgar@earth.causticlabs.com:/usr/src/sys/compile/EARTH i386 Note: This happens on RELENG_4 before and after the binutils update. CFLAGS and CXXFLAGS are not set in /etc/make.conf ----- Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message