From owner-freebsd-hackers Tue Apr 25 01:08:19 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA18945 for hackers-outgoing; Tue, 25 Apr 1995 01:08:19 -0700 Received: from dkuug.dk (dkuug.dk [193.88.44.89]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id BAA18937 for ; Tue, 25 Apr 1995 01:08:00 -0700 Received: from kmd-ac.dk by dkuug.dk with UUCP id AA23663 (5.65c8/IDA-1.4.4j for FreeBSD.org!hackers); Tue, 25 Apr 1995 10:07:46 +0200 Message-Id: <199504250807.AA23663@dkuug.dk> Subject: Re: Patches to compile Kernel and Libraries with '-O3 -fomit-frame-pointer' To: julian@ref.tfs.com (Julian Elischer) Date: Tue, 25 Apr 1995 10:02:21 +0000 (GMT) From: "Soeren Schmidt" Cc: Dirk.Steinberg@gmd.de, hackers@FreeBSD.org In-Reply-To: <199504250717.AAA05801@ref.tfs.com> from "Julian Elischer" at Apr 25, 95 00:17:36 am From: sos@FreeBSD.org (Soren Schmidt) Reply-To: sos@FreeBSD.org X-Mailer: ELM [version 2.4 PL22] Content-Type: text Content-Length: 1023 X-Charset: ASCII X-Char-Esc: 29 Sender: hackers-owner@FreeBSD.org Precedence: bulk In reply to Julian Elischer who wrote: > has anyone followed up on this? No, not really, but I've compiled my system with: -O2 -m486 -fomit-frame-pointer for a long time, no problems at all except for the csu/crt* stuff which must be compiled without -fomit-frame-pointer to work. > > /usr/libexec/ld.so fails horribly when compiled with "-fomit-frame-pointer". > > I learned the hard way :-( (after compiling /bin and /sbin dynamically...). hHmm, strange, that works fine for me. > > For the kernel compile, the functions dummyinit() in in kern/init_main.c > > and dummy_cleanup() in kern/kern_xxx.c get optimized away by gcc > > when compiling with an optimization setting higher than "-O2", e.g. > > "-O3". Thats right, I've seen this too (and fixed the ugly way :-) PS: julian do you still have the patches around ?? I'd inclined to look at it... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Soren Schmidt (sos@FreeBSD.org | sos@kmd-ac.dk) FreeBSD Core Team ..