mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-24 05:30:37 +09:00
standalone: use GCC_VERSION defined in compiler-gcc.h
Now GCC_VERSION is defined in include/linux/compiler-gcc.h (with a little different definition). Use it and delete the one in examples/standlone/stub.c. This should work on Clang too because __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ are also defined on Clang. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
fb8ffd7cfc
commit
2d5db193ee
@ -1,9 +1,6 @@
|
|||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <exports.h>
|
#include <exports.h>
|
||||||
|
#include <linux/compiler.h>
|
||||||
#ifndef GCC_VERSION
|
|
||||||
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
|
|
||||||
#endif /* GCC_VERSION */
|
|
||||||
|
|
||||||
#if defined(CONFIG_X86)
|
#if defined(CONFIG_X86)
|
||||||
/*
|
/*
|
||||||
@ -237,7 +234,7 @@ gd_t *global_data;
|
|||||||
* implementation. On the other hand, asm() statements with
|
* implementation. On the other hand, asm() statements with
|
||||||
* arguments can be used only inside the functions (gcc limitation)
|
* arguments can be used only inside the functions (gcc limitation)
|
||||||
*/
|
*/
|
||||||
#if GCC_VERSION < 3004
|
#if GCC_VERSION < 30400
|
||||||
static
|
static
|
||||||
#endif /* GCC_VERSION */
|
#endif /* GCC_VERSION */
|
||||||
void __attribute__((unused)) dummy(void)
|
void __attribute__((unused)) dummy(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user