Date: Tue, 11 Sep 2001 10:46:49 -0400 From: "Brian F. Feldman" <green@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> Cc: "Brian F. Feldman" <green@FreeBSD.org>, Mark Murray <mark@grondar.za>, Peter Wemm <peter@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_prf.c src/sys/sys systm.h Message-ID: <200109111446.f8BEknK07078@green.bikeshed.org> In-Reply-To: Your message of "Wed, 12 Sep 2001 00:30:50 %2B1000." <20010912002041.J5036-100000@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> wrote: > On Mon, 10 Sep 2001, Brian F. Feldman wrote: > > > Mark Murray <mark@grondar.za> 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. So you don't take issues at all with GCC not only implementing the C language per se but implementing actual C library routines, no matter how standard they may be, in the compilation step? -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109111446.f8BEknK07078>