From owner-freebsd-current Thu Jun 13 17:51:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 3AE7E37B440; Thu, 13 Jun 2002 17:51:14 -0700 (PDT) Received: from pool0043.cvx21-bradley.dialup.earthlink.net ([209.179.192.43] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17IfEK-0001hK-00; Thu, 13 Jun 2002 17:46:21 -0700 Message-ID: <3D093CB7.94D5EBC3@mindspring.com> Date: Thu, 13 Jun 2002 17:45:43 -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: Juli Mallett Cc: Alex Zepeda , 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> <3D093302.42B0E0F6@mindspring.com> <20020613172608.C62694@FreeBSD.ORG> 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 Juli Mallett wrote: > Errr, it was with 0 level optimisation that is the problem, not a real > level. Read carefully what bde said, and look at hte warnings and how > GCC deals with the code in question. > > Also, your example is very wrong, read make(1)'s section on dealing with > variables. I know my example is very wrong; though it could be used to grep for optimizer flags, where it could not be used for what I jokingly said it could be used for... I guess it was too subtle. Question: -O0 fails to produce good code; how do I check and warn if -O0 is being used? Answer: Fix -O0, or grep its use and complain about it Answer 2: Make its use an argument error to the compiler, until it is fixed Answer 3: Quit munging the Makefiles, when they will just need to be unmunged later, and the problem goes away if you change the compiler -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message