From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id CA529385840C for ; Tue, 17 May 2022 23:06:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CA529385840C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 24HN5woa002601; Tue, 17 May 2022 18:05:58 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 24HN5vqm002600; Tue, 17 May 2022 18:05:57 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 17 May 2022 18:05:57 -0500 From: Segher Boessenkool To: "muzungu@gmx.net" Cc: gcc-help@gcc.gnu.org Subject: Re: gcc optimization options and lto (detailed info) Message-ID: <20220517230557.GA25951@gate.crashing.org> References: <062812e4-e912-4eaf-876c-91006a6c47a6@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <062812e4-e912-4eaf-876c-91006a6c47a6@gmx.net> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2022 23:07:00 -0000 On Tue, May 17, 2022 at 08:56:20AM +0200, muzungu--- via Gcc-help wrote: > * -O combines a collection of -f It does more than that. Each -O enables many things that can be separately enabled and disabled with -f flags, but there are hundreds if not thousands other things that are sirectly controlled by optimisation level. Segher