From owner-cvs-all Mon Sep 10 7:58:54 2001 Delivered-To: cvs-all@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A552D37B406; Mon, 10 Sep 2001 07:58:44 -0700 (PDT) Received: from localhost (green@localhost) by green.bikeshed.org (8.11.4/8.11.1) with ESMTP id f8AEwQI98441; Mon, 10 Sep 2001 10:58:43 -0400 (EDT) (envelope-from green@green.bikeshed.org) Message-Id: <200109101458.f8AEwQI98441@green.bikeshed.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Mark Murray Cc: Peter Wemm , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_prf.c src/sys/sys systm.h In-Reply-To: Message from Mark Murray of "Mon, 10 Sep 2001 10:30:09 BST." <200109100930.f8A9UBE97152@grimreaper.grondar.za> From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 10 Sep 2001 10:58:26 -0400 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 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. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message