This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] doc: discourage use of __attribute__((optimize())) in production code
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: Markus Trippelsdorf <markus at trippelsdorf dot de>, Gerald Pfeifer <gerald at pfeifer dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 14 Dec 2015 10:01:27 +0100
- Subject: Re: [PATCH] doc: discourage use of __attribute__((optimize())) in production code
- Authentication-results: sourceware.org; auth=none
- References: <20151213081911 dot GA320 at x4> <87mvtet8t6 dot fsf at tassilo dot jf dot intel dot com>
On Sun, Dec 13, 2015 at 9:03 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Markus Trippelsdorf <markus@trippelsdorf.de> 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