summaryrefslogtreecommitdiff
path: root/examples/stubs.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-07-01 20:28:03 +0000
committerwdenk <wdenk>2004-07-01 20:28:03 +0000
commit93f6a6771ba04b217e4c8bbca9196fd16e364479 (patch)
treec0d9075172ab086e90c4991f302aca4c4f2f6d6c /examples/stubs.c
parent39539887ea7dc298c98ac1fddd38551dfa335120 (diff)
downloadu-boot-imx-93f6a6771ba04b217e4c8bbca9196fd16e364479.zip
u-boot-imx-93f6a6771ba04b217e4c8bbca9196fd16e364479.tar.gz
u-boot-imx-93f6a6771ba04b217e4c8bbca9196fd16e364479.tar.bz2
* Patches by Richard Woodruff, 10 Jun 2004:
- fix problems with examples/stubs.c for GCC >= 3.4 - fix problems with gd initialization * Enable FAT filesystem support for HMI10 board
Diffstat (limited to 'examples/stubs.c')
-rw-r--r--examples/stubs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/stubs.c b/examples/stubs.c
index 6f563ed..324a953 100644
--- a/examples/stubs.c
+++ b/examples/stubs.c
@@ -1,5 +1,9 @@
#include <exports.h>
+#ifndef GCC_VERSION
+#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
+#endif /* GCC_VERSION */
+
#if defined(CONFIG_I386)
/*
* x86 does not have a dedicated register to store the pointer to
@@ -117,7 +121,10 @@ gd_t *global_data;
* implementation. On the other hand, asm() statements with
* arguments can be used only inside the functions (gcc limitation)
*/
-static void __attribute__((unused)) dummy(void)
+#if GCC_VERSION < 3004
+static
+#endif /* GCC_VERSION */
+void __attribute__((unused)) dummy(void)
{
#include <_exports.h>
}