All pastes #1927110 Raw Edit

Someone

public diff v1 · immutable
#1927110 ·published 2010-08-27 20:09 UTC
rendered paste body
From a996ad0578a70914648c3e4750b278c16bbbf2e8 Mon Sep 17 00:00:00 2001From: Lucas De Marchi <lucas.demarchi@profusion.mobi>Date: Tue, 18 May 2010 17:56:51 -0300Subject: [PATCH] Use always_inline attribute with gccThis guarantees the code will be inlined even when no optimizations werechosen. Prior behavior was not to inline when -O0 was passed or whencompiling with -fno-inline.--- src/output.cc |    2 +- 1 files changed, 1 insertions(+), 1 deletions(-)diff --git a/src/output.cc b/src/output.ccindex 4b0e4c6..65e9def 100644--- a/src/output.cc+++ b/src/output.cc@@ -1895,7 +1895,7 @@ Output::output_lookup_function () const     printf ("#ifdef __GNUC__\n"             "__inline\n"             "#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__\n"-            "__attribute__ ((__gnu_inline__))\n"+            "__attribute__ ((__always_inline__))\n"             "#endif\n"             "#endif\n"); -- 1.7.1