From owner-freebsd-current@FreeBSD.ORG Sun Jul 18 09:18:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CC1016A4CE for ; Sun, 18 Jul 2004 09:18:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02CC543D49; Sun, 18 Jul 2004 09:18:47 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from freebsd.org (davidxu@localhost [127.0.0.1]) i6I9Ij32044650; Sun, 18 Jul 2004 09:18:46 GMT (envelope-from davidxu@freebsd.org) Message-ID: <40FA3FF2.6070406@freebsd.org> Date: Sun, 18 Jul 2004 17:16:34 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eriksson References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: World breakage: -O2 and new libthr/libc_r code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2004 09:18:47 -0000 libpthread used to have the warning message when being compiled with -02, it should be fixed. David Xu Daniel Eriksson wrote: >Marcel Moolenaar's latest libthr libc_r commit seems to have broken world >for CFLAGS containing -O2. > > >===> lib/libthread_db >cc -O2 -pipe -fno-builtin -march=athlon-xp -I. -I/usr/src/lib/libthread_db >-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /u >cc -fpic -DPIC -O2 -pipe -fno-builtin -march=athlon-xp -I. >-I/usr/src/lib/libthread_db -Wsystem-headers -Werror -Wall -Wno-format-y2k >-Wno-uniniti >cc -O2 -pipe -fno-builtin -march=athlon-xp -I. -I/usr/src/lib/libthread_db >-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /u >cc -fpic -DPIC -O2 -pipe -fno-builtin -march=athlon-xp -I. >-I/usr/src/lib/libthread_db -Wsystem-headers -Werror -Wall -Wno-format-y2k >-Wno-uniniti >In file included from libpthread.h:3, > from /usr/src/lib/libthread_db/libpthread_db.c:41: >/usr/src/lib/libpthread/arch/i386/include/pthread_md.h: In function >`_kcb_get': >/usr/src/lib/libpthread/arch/i386/include/pthread_md.h:162: warning: >dereferencing type-punned pointer will break strict-aliasing rules >In file included from libpthread.h:3, > >