From owner-freebsd-current@FreeBSD.ORG Wed Jul 16 09:08:54 2003 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 C671A37B401 for ; Wed, 16 Jul 2003 09:08:54 -0700 (PDT) Received: from volatile.chemikals.org (cae88-51-013.sc.rr.com [24.88.51.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE47843FA3 for ; Wed, 16 Jul 2003 09:08:53 -0700 (PDT) (envelope-from morganw@chemikals.org) Received: from localhost (morganw@localhost [127.0.0.1]) h6GG8qM7095898; Wed, 16 Jul 2003 12:08:53 -0400 (EDT) (envelope-from morganw@chemikals.org) Date: Wed, 16 Jul 2003 12:08:52 -0400 (EDT) From: Wesley Morgan To: Christian Brueffer In-Reply-To: <20030716145027.GU1226@unixpages.org> Message-ID: <20030716120739.R92331@volatile.chemikals.org> References: <20030716145027.GU1226@unixpages.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org Subject: Re: world breakage in pam_echo 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: Wed, 16 Jul 2003 16:08:55 -0000 On Wed, 16 Jul 2003, Christian Brueffer wrote: > ===> lib/libpam/modules/pam_echo > cc -O2 -pipe -march=pentium2 -I/usr/src/lib/libpam/modules/pam_echo/../../../../contrib/openpam/include -I/usr/src/lib/libpam/modules/pam_echo/../../libpam -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -c /usr/src/lib/libpam/modules/pam_echo/pam_echo.c > /usr/src/lib/libpam/modules/pam_echo/pam_echo.c: In function `_pam_echo': > /usr/src/lib/libpam/modules/pam_echo/pam_echo.c:92: warning: dereferencing type-punned pointer will break strict-aliasing rules > *** Error code 1 I was just about to report this myself. The breakage only occurs with optimization levels of -O2 (and maybe higher). Officially -O2 is not supported for world, but in my experience there are real problems with code (warnings in this case) that do not show up until the optimizer takes a closer look at them. -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!