Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2004 17:16:34 +0800
From:      David Xu <davidxu@freebsd.org>
To:        Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: World breakage: -O2 and new libthr/libc_r code
Message-ID:  <40FA3FF2.6070406@freebsd.org>
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAngAsq0iTkUuG/pC0kCDfYwEAAAAA@telia.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAngAsq0iTkUuG/pC0kCDfYwEAAAAA@telia.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40FA3FF2.6070406>