From: Linus Torvalds Date: Wed, 20 Apr 2005 20:00:08 +0000 (-0700) Subject: Improve build: add and use -O2 instead of -O3 X-Git-Tag: v0.99~795 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2dee0609685a0a01d7fd65e6a804363c3514087c;p=git.git Improve build: add and use -O2 instead of -O3 (Nobody should use -O3. It just makes bad inlining decisions). --- diff --git a/Makefile b/Makefile index cd299f850..a244b27ac 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ # BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly # break unless your underlying filesystem supports those sub-second times # (my ext3 doesn't). -CFLAGS=-g -O3 -Wall +CFLAGS=-g -O2 -Wall CC=gcc AR=ar diff --git a/cache.h b/cache.h index eab355da5..a67b79e97 100644 --- a/cache.h +++ b/cache.h @@ -1,6 +1,7 @@ #ifndef CACHE_H #define CACHE_H +#include #include #include #include