From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Fwd: LFS'ing an alpha, continued
Date: Wed, 13 Nov 2002 11:19:40 -0700 [thread overview]
Message-ID: <20021113111940.B5274@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <20021113174128.M87959@alphadriven.org>; from voodoo@alphadriven.org on Wed, Nov 13, 2002 at 12:41:28PM -0500
On Wed, Nov 13, 2002 at 12:41:28PM -0500, Peter Petrakis wrote:
> > > Are you sure it isn't rather caused by gcc optimizing
> > > printf("foo\n")
> > > to
> > > puts("foo")
> > > ?
> > >
> > > (Yes, it really does that. Pretty clever, eh?)
> >
> > Yikes, that would do it.
> >
> > Hmmm.
> >
> > My next question would be, how do we keep gcc from doing that? I
> > assume it's some spanking-new feature in gcc3...
>
> -O0 oughta do it.
The other way out would be to provide 'puts()' in a "private" library.
It can be trivially implemented in terms of 'printf()'. :-)
If built-ins from gcc3 are getting you instead then '-fno-builtin'
in compilation flags should solve the problem and there is always
also '-ffreestanding'. At least a "bootloader" part of the whole
package (there are other programs there as well) is really
"freestanding".
Michal
next prev parent reply other threads:[~2002-11-13 18:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-13 13:08 Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13 14:49 ` Falk Hueffner
2002-11-13 17:09 ` Kelledin
2002-11-13 17:41 ` Falk Hueffner
2002-11-13 17:41 ` Peter Petrakis
2002-11-13 18:19 ` Michal Jaegermann [this message]
2002-11-13 20:57 ` George France
2002-11-14 5:48 ` Creating Su Login karthikeyan
2002-11-14 17:03 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
2002-11-13 13:06 Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13 18:08 ` Michal Jaegermann
2002-11-13 0:24 Kelledin
2002-11-13 3:04 ` Michal Jaegermann
2002-11-12 23:15 Fwd: Build Errors with GlibC on an alpha Ted Goodridge
2002-11-13 0:00 ` Fwd: LFS'ing an alpha, continued Kelledin
2002-11-13 2:45 ` Michal Jaegermann
2002-11-13 3:43 ` Jon
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox