summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-04 12:26:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-04 12:54:17 +0100
commit1f7e20d812ef46fa0cba492e06a8f9f5a326d3c5 (patch)
tree61acfff3dc3c439e29fcaca2e352407f13bb8049
parent0cd154039ab02799dc972d93c415e762226df1aa (diff)
sna: Define fast function attribute for old gcc or other compilers
Also written by Mark Kettenis and reported by Sedat Dilek. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index 2f5dfc77..28d33511 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -67,6 +67,8 @@
#if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
#define fast __attribute__((optimize("Ofast")))
+#else
+#define fast
#endif
#if HAS_GCC(4, 6) && defined(__OPTIMIZE__)