From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82795 invoked by alias); 14 Dec 2015 09:01:30 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 82743 invoked by uid 89); 14 Dec 2015 09:01:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f179.google.com Received: from mail-qk0-f179.google.com (HELO mail-qk0-f179.google.com) (209.85.220.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 14 Dec 2015 09:01:29 +0000 Received: by qkht125 with SMTP id t125so124948464qkh.3 for ; Mon, 14 Dec 2015 01:01:27 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.129.133.69 with SMTP id v66mr19357208ywf.68.1450083687098; Mon, 14 Dec 2015 01:01:27 -0800 (PST) Received: by 10.37.195.195 with HTTP; Mon, 14 Dec 2015 01:01:27 -0800 (PST) In-Reply-To: <87mvtet8t6.fsf@tassilo.jf.intel.com> References: <20151213081911.GA320@x4> <87mvtet8t6.fsf@tassilo.jf.intel.com> Date: Mon, 14 Dec 2015 09:01:00 -0000 Message-ID: Subject: Re: [PATCH] doc: discourage use of __attribute__((optimize())) in production code From: Richard Biener To: Andi Kleen Cc: Markus Trippelsdorf , Gerald Pfeifer , GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg01364.txt.bz2 On Sun, Dec 13, 2015 at 9:03 PM, Andi Kleen wrote: > Markus Trippelsdorf writes: > >> Many developers are still using __attribute__((optimize())) in >> production code, although it quite broken. > > Wo reads documentation? @) If you want to discourage it better warn once > at runtime. We're also quite heavily using it in LTO internally now. Richard. > -Andi