From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753966AbYIJLow (ORCPT ); Wed, 10 Sep 2008 07:44:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752002AbYIJLoo (ORCPT ); Wed, 10 Sep 2008 07:44:44 -0400 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:38977 "EHLO mail-in-04.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751453AbYIJLoo (ORCPT ); Wed, 10 Sep 2008 07:44:44 -0400 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: Building Kernel with -O0 To: "linux-os (Dick Johnson)" , "linux-os (Dick Johnson)" , Adrian Bunk , Linux kernel Reply-To: 7eggert@gmx.de Date: Wed, 10 Sep 2008 13:52:45 +0200 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@gmx.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org linux-os (Dick Johnson) wrote: > If you have to single-step through kernel procedures, you > are not writing proper code for a kernel. Furthermore, even > when using the kernel debugger, you are not executing the > exact same path that would be executed without the debugger > attached. I sometimes single-step in order to verify my (userspace) code, instead of just throwing random test data at it. It's easier and makes me feel better. OTOH, -O2 never was a problem if I used it, so I don't strongly vote for enabling -O0.