Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 23 Dec 2001 08:28:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 23 Dec 2001 08:27:55 -0500 Received: from p0173.as-l043.contactel.cz ([194.108.242.173]:1284 "EHLO devix") by vger.kernel.org with ESMTP id ; Sun, 23 Dec 2001 08:27:48 -0500 Date: Sun, 23 Dec 2001 00:35:00 +0100 (CET) From: devik X-X-Sender: To: Pavel Machek cc: Robert Love , Chris Meadors , "linux-kernel@vger.kernel.org" Subject: Re: gcc 3.0.2/kernel details (-O issue) In-Reply-To: <20011222215457.A118@elf.ucw.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > > optimization introduce are accepted. Removing the optimization may > > break those expectations. Thus the kernel requires it. > > Huh? Those expectations are *bugs*. > > Kernel will not link without optimalizations because it *needs* > inlining. Any else dependency is a *bug*. Pavel, thanks for your reply. I already started to be afraid that kernel code makes such strange expectations. Inlining. Yes it explains a lot. It is the difference between -O and -O2. BTW the kernel compiles and links without inlining (with -O). It just doesn't work ;-) Interestingly enough I have had the bad habit of using -O as compile speed up factor for pretty long time while working on 2.2.x .. devik - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/