summaryrefslogtreecommitdiff
path: root/toolchain/uClibc/patches-0.9.31/000-upstream-attribute_optimize_fix.patch
blob: 841b5b7d6faa7a7ae15604599f413d8bacf4cc66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From a115ee502fca8b1eb8ce327d764562d3ae669954 Mon Sep 17 00:00:00 2001
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Mon, 12 Apr 2010 13:09:25 +0000
Subject: attribute_optimize: fix typo with args

curious how 308f5c6e5fd56ea3d1a5512e34388aad788f1180 ever worked.. :P

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 2729d30..4615a6a 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -86,9 +86,9 @@
 #endif
 
 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
-# define attribute_optimize(lvl) __attribute__ ((optimize(x)))
+# define attribute_optimize(x) __attribute__ ((optimize(x)))
 #else
-# define attribute_optimize(lvl)
+# define attribute_optimize(x)
 #endif
 
 #define attribute_unused __attribute__ ((unused))