Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2000 19:48:33 -0400 (EDT)
From:      "Chris D. Faulhaber" <jedgar@fxp.org>
To:        freebsd-stable@FreeBSD.org
Cc:        obrien@FreeBSD.org
Subject:   More optimization issues?
Message-ID:  <Pine.BSF.4.21.0007111932550.1603-100000@earth.causticlabs.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007111932550.1603-100000>