[llvm-commits] [test-suite] r105015 - /test-suite/trunk/MultiSource/Applications/aha/aha.c

Dan Gohman gohman at apple.com
Fri May 28 16:50:08 PDT 2010


On May 28, 2010, at 4:14 PM, Dale Johannesen wrote:

> 
> On May 28, 2010, at 4:00 PMPDT, Dan Gohman wrote:
> 
>> Author: djg
>> Date: Fri May 28 18:00:20 2010
>> New Revision: 105015
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=105015&view=rev
>> Log:
>> Use static inline instead of inline, to avoid depending on language mode
>> and inline level.
> 
> Why do we want to do this?  It should work either way, and if performance comparisons look funny because something is inlined differently, that seems like useful information indicating we should look at the inlining heuristics.

In C99 mode, the compiler isn't required to emit definitions for
such inline functions, so at -O0 this program didn't link. With
static, this program will compile as intended regardless of the
language mode.

Dan





More information about the llvm-commits mailing list