From owner-freebsd-current Thu Jun 13 17: 5:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from goose.mail.pas.earthlink.net (goose.mail.pas.earthlink.net [207.217.120.18]) by hub.freebsd.org (Postfix) with ESMTP id 4727137B433 for ; Thu, 13 Jun 2002 17:05:21 -0700 (PDT) Received: from pool0043.cvx21-bradley.dialup.earthlink.net ([209.179.192.43] helo=mindspring.com) by goose.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17IeaG-00026P-00; Thu, 13 Jun 2002 17:04:57 -0700 Message-ID: <3D093302.42B0E0F6@mindspring.com> Date: Thu, 13 Jun 2002 17:04:19 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Alex Zepeda Cc: Bruce Evans , current@freebsd.org Subject: Re: Broken world in rtld-elf... References: <20020612231541.GA1543@blarf.homeip.net> <20020613121920.T1422-100000@gamplex.bde.org> <20020613191637.GA57841@blarf.homeip.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alex Zepeda wrote: > On Thu, Jun 13, 2002 at 12:26:05PM +1000, Bruce Evans wrote: > > rtld still uses asms with the old, broken/fragile "0" constraint. This > > constraint is especially broken/fragile if things are pessimized by > > compiling without optimizations. > > D'oh! > > Is there any chance of sticking a warning in the makefile if -O0 (or > whatever else would cause it to not compile) is present? GCCVERS=`gcc -v 2>&1 | grep version | cut -d " " -f 3` .if ${GCCVERS} = "3.1" .BEGIN: echo "Optimization with GCC 3.1 is often broken!" >&2 .endif Oh... you wanted to grep "-O" out of the CFLAGS and CXXFLAGS? How to do that should be obvious from the above... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message