From owner-cvs-all Tue Sep 11 7:32:11 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 0D11737B401; Tue, 11 Sep 2001 07:32:05 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id AAA00669; Wed, 12 Sep 2001 00:31:57 +1000 Date: Wed, 12 Sep 2001 00:30:50 +1000 (EST) From: Bruce Evans X-X-Sender: To: "Brian F. Feldman" Cc: Mark Murray , Peter Wemm , , Subject: Re: cvs commit: src/sys/kern subr_prf.c src/sys/sys systm.h In-Reply-To: <200109101458.f8AEwQI98441@green.bikeshed.org> Message-ID: <20010912002041.J5036-100000@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 10 Sep 2001, Brian F. Feldman wrote: > Mark Murray wrote: > > > This hack brought to you by some questionable ``optimizations'' in gcc-3. > > > gcc-3 takes it apon itself to convert: > > > printf("string\n") -> puts("string"); > > > and: > > > printf("a"); -> putchar('a') > > > etc. I dont know what they've been smoking over there in gcc-land, but > > > it must be pretty good stuff. > > > > This "optimzation" on the part of GCC is extremely rude, IMVHO. Is there > > a way (#define ?) of permanently disabling it? > > > > C is not FORTRAN - there are no intrinsic functions in C. Grrrrr..... > > Agreed. Peter's original comment was absolutely justified. The _ONLY_ case > I can see this possibly being even moderately alright is if it is somehow > done in a way that makes it act like a macro definition and can be > #undefined or (called)() in one of the standard ways. Disagreed. This seems like a normal optimization to me. It's like replacing strlen("foo") by 3. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message